Server Error in '/' Application.

Could not find a part of the path 'E:\http_imoments\apdata\apbook\apl_download\install\apbook_1690_v_3_11_0_23.exe'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.DirectoryNotFoundException: Could not find a part of the path 'E:\http_imoments\apdata\apbook\apl_download\install\apbook_1690_v_3_11_0_23.exe'.

Source Error:


Line 99:         StringBuilder stbr = new StringBuilder();
Line 100:        int buffSize = 0;
Line 101:        FileStream outfile = new FileStream(applname, FileMode.Create, FileAccess.Write);
Line 102:        try
Line 103:        {

Source File: e:\http_imoments\apweb\apbook\downloads\dn_appl.aspx    Line: 101

Stack Trace:


[DirectoryNotFoundException: Could not find a part of the path 'E:\http_imoments\apdata\apbook\apl_download\install\apbook_1690_v_3_11_0_23.exe'.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +281
   System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) +1242
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access) +125
   ASP.apbook_downloads_dn_appl_aspx.CreateApplicationFile(String applname, String codigo_prof, Boolean inclouPlantilles) in e:\http_imoments\apweb\apbook\downloads\dn_appl.aspx:101
   ASP.apbook_downloads_dn_appl_aspx.Descarrega_Aplicacio(String codigo_prof, Boolean inclouPlantilles) in e:\http_imoments\apweb\apbook\downloads\dn_appl.aspx:316
   ASP.apbook_downloads_dn_appl_aspx.Page_Load(Object sender, EventArgs e) in e:\http_imoments\apweb\apbook\downloads\dn_appl.aspx:32
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4700.0