Enter Network Password dialog - stumped

From: Larry Marshall (larrym@marshap.com)
Date: 12/29/02


From: larrym@marshap.com (Larry Marshall)
Date: 28 Dec 2002 17:13:34 -0800


When using a file delete method (File.Delete(strFileName)), the Enter
Network Password dialog box is launched. I can't understand why this
would be. The aspnet user has full control rights over the directory
in which the file to be deleted resides (FolderC), full control over
the document (012.DOC), Read & Execute, List, Read and Write
privileges over Folder B and A.

Any ideas on what I am missing?

If I cancel out of the dialog, the following message appears:

Exception Details: System.UnauthorizedAccessException: Access to the
path "d:\inetpub\wwwroot\FolderA\FolderB\FolderC\012.DOC" 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.