[ VLSE @ 31.07.2007. 17:52 ] @
Server Error in '/WebApplication1' Application. -------------------------------------------------------------------------------- Access to the path "c:\inetpub\wwwroot\WebApplication1\Entries\Entry.xml" 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 "c:\inetpub\wwwroot\WebApplication1\Entries\Entry.xml" 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 write 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 70: { Line 71: String filepath=EntryFilePath+"\\" +filename; Line 72: FileStream file = new FileStream(filepath, FileMode.Open); Line 73: XmlSerializer serializer=new XmlSerializer(typeof(Entry)); Line 74: Entry newEntry=(Entry)serializer.Deserialize(file); Source File: c:\inetpub\wwwroot\webapplication1\global.asax.cs Line: 72 Stack Trace: [UnauthorizedAccessException: Access to the path "c:\inetpub\wwwroot\WebApplication1\Entries\Entry.xml" is denied.] System.IO.__Error.WinIOError(Int32 errorCode, String str) +393 System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, Boolean bFromProxy) +888 System.IO.FileStream..ctor(String path, FileMode mode) +52 WebApplication1.Global.LoadEntry(String filename) in c:\inetpub\wwwroot\webapplication1\global.asax.cs:72 WebApplication1.WebForm1.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\webapplication1\webform1.aspx.cs:34 System.Web.UI.Control.OnLoad(EventArgs e) +67 System.Web.UI.Control.LoadRecursive() +35 System.Web.UI.Page.ProcessRequestMain() +750 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032 |