Access to the path 'D:\wwwfiles\csva-vsca\5802_1924\' is denied.
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.UnauthorizedAccessException: Access to the path 'D:\wwwfiles\csva-vsca\5802_1924\' is denied.
ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.
To grant ASP.NET access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.
Source Error:
Line 2070: LienPDFOriginal = PathOriginal & "AnnexeB_E.pdf"
Line 2071: If Not IO.Directory.Exists(PathNew) Then
Line 2072: IO.Directory.CreateDirectory(PathNew)
Line 2073: End If
Line 2074: LienPDFSortie = PathNew & String.Format("PVA#{0}_AnnexeB_E_Demande#{1}_no{2}.pdf", noPVA, noDemande, noFormulaire)
Source File: D:\wwwroot\tcwwwqcdev\Quebec\CSVA-VSCA\App_Code\PDF.vb Line: 2072
Stack Trace:
[UnauthorizedAccessException: Access to the path 'D:\wwwfiles\csva-vsca\5802_1924\' is denied.]
System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +7716639
System.IO.Directory.InternalCreateDirectory(String fullPath, String path, DirectorySecurity dirSecurity) +7569557
System.IO.Directory.CreateDirectory(String path, DirectorySecurity directorySecurity) +150
System.IO.Directory.CreateDirectory(String path) +6
PDF.ANNEXEB_E(Int32 idForm, Int32 idDemande, Int32 idPVA, String PathOriginal, String PathNew) in D:\wwwroot\tcwwwqcdev\Quebec\CSVA-VSCA\App_Code\PDF.vb:2072
Bases_Services_Cea_Soumission_Base.sendEmail() in D:\wwwroot\tcwwwqcdev\Quebec\CSVA-VSCA\Bases\Services\Soumission_Base.ascx.vb:244
Bases_Services_Cea_Soumission_Base.btnSubmit_Click(Object sender, EventArgs e) in D:\wwwroot\tcwwwqcdev\Quebec\CSVA-VSCA\Bases\Services\Soumission_Base.ascx.vb:55
System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) +111
System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +79
System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565
Partager