I searched this forum but didn't find an answer, which really surprises me.

In my ANP.NET code, I am trying to write to a file, but am getting an error:

Access to the path "c:\inetpub\wwwroot\ASPNutshell\Blog6-7b\Blog.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\ASPNutshell\Blog6-7b\Blog.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.
Well, the message is wrong. There is no security tab in the properties window accessed through Explorer. My searchnig revealed that you have to change it in IIS, but apparently I don't know how to do that. I checked the write box on the Files tab in the properties window, but that doesn't seem to do it. I also granted write privileges to the application directory but that didn't work either.

The problem is I don't really know IIS, so any pointers you can give me will be great. Also, are there any good resources on the inner workings of IIS?

Thanks.