Server Error in '/' Application.

Access to the path '\\WDP\DFS\44\3\2\4\4445953423\user\sites\2192204.site\www\log\DayCorpSites.ini' 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 '\\WDP\DFS\44\3\2\4\4445953423\user\sites\2192204.site\www\log\DayCorpSites.ini' 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 File 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 1:  <%@ Page language="c#" Codebehind="main.aspx.cs" AutoEventWireup="false" Inherits="thomas_day.us.main" %>
Line 2:  
Line 3:  <% ProcessMainRequests(); %>

Source File: \\wdp\dfs\44\3\2\4\4445953423\user\sites\2192204.site\www\thomas-day\main.aspx    Line: 3

Stack Trace:


[UnauthorizedAccessException: Access to the path '\\WDP\DFS\44\3\2\4\4445953423\user\sites\2192204.site\www\log\DayCorpSites.ini' is denied.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +7939687
   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) +1162
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) +65
   System.IO.StreamWriter.CreateFile(String path, Boolean append) +62
   System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize) +58
   System.IO.StreamWriter..ctor(String path, Boolean append) +33
   System.IO.File.CreateText(String path) +37
   thomas_day.us.Ini.IniIncrement(String sFQual, String sName) +947
   thomas_day.us.main.ProcessMainRequests() +494
   ASP.thomas_day_main_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in \\wdp\dfs\44\3\2\4\4445953423\user\sites\2192204.site\www\thomas-day\main.aspx:3
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +256
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   System.Web.UI.Page.Render(HtmlTextWriter writer) +29
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1266


Version Information: Microsoft .NET Framework Version:2.0.50727.8974; ASP.NET Version:2.0.50727.8974