Hi,
i've just tested this at one computer
i've published a site using the 'build' > 'publish web site' menu to the localhost
it runs. but, when a function of my site to upload a file and save it, and error occured saying
Access to the path 'Course/course8' 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 'Course/course8' 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 , 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.
i thought that ASPNET account doesn't have write privilege in wwwroot. but, what actually happening is the it's trying to create the 'course'+ID directory under the 'WINDOWS/system32' folder. i knew it because it works find in ASP .NET development server, and i trace until i found that it was there.
i don't know if it work like this at other computers. but, how could i create a new directory under wwwroot's subfolder (in a matter of permission) and save an uploaded file there?
thx