Bucky
Contributor
Upon trying to save an XmlDocument file, ASP.NET tells me that
access is denied and that I cannot save over a file. This is the error:
Now I'm on Windows XP Pro, and nowhere do I see a place to
change the security options for the file. I also looked in the
ASP.NET service options in admin tools, but no luck.
How do I allow my ASP.NET app access to save the file?
access is denied and that I cannot save over a file. This is the error:
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.
Now I'm on Windows XP Pro, and nowhere do I see a place to
change the security options for the file. I also looked in the
ASP.NET service options in admin tools, but no luck.
How do I allow my ASP.NET app access to save the file?