EDN Admin
Well-known member
Hai,
I am using .net 2.0 frame work with WIN 2000 Server,
the following error occured while trying to convert & write XML document from DataSet obj.
ERROR:
Access to the path "C:WINNTsystem32Cusromers.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:WINNTsystem32Cusromers.xml" is denied. The ASP.NET process is not authorized to access the requested resource. For security reasons the default ASP.NET process identity is {machinename}ASPNET, which has limited privileges. Consider granting access rights to the resource to the ASP.NET process identity. ** 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 "{machinename}ASPNET" user. Highlight the ASP.NET account, and check the Write box in the Allow column .**
Source Error:
Line 47: XmlDataDocument doc=new XmlDataDocument(ds);
Line 48: Xml1.Document=doc;
Line 49: doc.Save("Cusromers.xml");
Line 50: }
Line 51:
Source File: c:inetpubwwwrootless3cwebform1.aspx.cs Line: 49
Pls, watch the error msg with **, I tried to do according to the msg, but I couldnt find Add anywhere under Security tab.
Should I configure, IIS server or else other thing.
To overcome this problem, What Should I do?
anybody, pls assist me...
thanks...
View the full article
I am using .net 2.0 frame work with WIN 2000 Server,
the following error occured while trying to convert & write XML document from DataSet obj.
ERROR:
Access to the path "C:WINNTsystem32Cusromers.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:WINNTsystem32Cusromers.xml" is denied. The ASP.NET process is not authorized to access the requested resource. For security reasons the default ASP.NET process identity is {machinename}ASPNET, which has limited privileges. Consider granting access rights to the resource to the ASP.NET process identity. ** 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 "{machinename}ASPNET" user. Highlight the ASP.NET account, and check the Write box in the Allow column .**
Source Error:
Line 47: XmlDataDocument doc=new XmlDataDocument(ds);
Line 48: Xml1.Document=doc;
Line 49: doc.Save("Cusromers.xml");
Line 50: }
Line 51:
Source File: c:inetpubwwwrootless3cwebform1.aspx.cs Line: 49
Pls, watch the error msg with **, I tried to do according to the msg, but I couldnt find Add anywhere under Security tab.
Should I configure, IIS server or else other thing.
To overcome this problem, What Should I do?
anybody, pls assist me...
thanks...
View the full article