R
Rémi
Howdy.
I've got a permissions issue I can't figure out; I've been searching
for info and haven't found anything to help me.
I'm testing an ASP.Net 2.0 application that allows a user to upload
files, and delete them later. The upload works fine; the file gets
saved to the proper directory. The delete does not. Here's the info:
* * *
Access to the path 'F:\My App\Path\SubDir\materials\' 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 'F:\Terra Cognita\Operations\Projects\IRC
E-zine\ProjectFiles\NewWebPublisher\webInterface\ads\materials\' 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 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.
* * *
It's the call to System.IO.File.Delete that causes the exception.
Seems straightforward enough. Except that when I check the folder's
permissions in Windows Explorer (I'm testing on my local machine),
"ASP.NET Machine Account" and "Internet Guest Account" both have full
control on that specific directory. (I started off by giving them
"Delete Subfolders and Files" permissions on that directory, but when
that didn't work...)
Can *anyone* help me figure this out? It's driving me to drink.
Windows 2000, IIS 5.0, Microsoft .NET Framework Version:2.0.50727.42;
ASP.NET Version:2.0.50727.42.
Regards,
Remi.
I've got a permissions issue I can't figure out; I've been searching
for info and haven't found anything to help me.
I'm testing an ASP.Net 2.0 application that allows a user to upload
files, and delete them later. The upload works fine; the file gets
saved to the proper directory. The delete does not. Here's the info:
* * *
Access to the path 'F:\My App\Path\SubDir\materials\' 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 'F:\Terra Cognita\Operations\Projects\IRC
E-zine\ProjectFiles\NewWebPublisher\webInterface\ads\materials\' 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 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.
* * *
It's the call to System.IO.File.Delete that causes the exception.
Seems straightforward enough. Except that when I check the folder's
permissions in Windows Explorer (I'm testing on my local machine),
"ASP.NET Machine Account" and "Internet Guest Account" both have full
control on that specific directory. (I started off by giving them
"Delete Subfolders and Files" permissions on that directory, but when
that didn't work...)
Can *anyone* help me figure this out? It's driving me to drink.
Windows 2000, IIS 5.0, Microsoft .NET Framework Version:2.0.50727.42;
ASP.NET Version:2.0.50727.42.
Regards,
Remi.