XP under ASP.net access denied

Source: Internet
Author: User
Tags iis resource stack trace

A server error in the "/asp" application.

--------------------------------------------------------------------------------

Access to the path "C:\BegASPNET\ch14\MyCalendar.xml" was denied.

Note: An unhandled exception occurred during the execution of the current WEB request. Check the stack trace for more information about the error and where the error occurred in the code.

Exception Details: system.unauthorizedaccessexception: Access to the path "C:\BegASPNET\ch14\MyCalendar.xml" was denied.

ASP.net is not authorized to access the requested resource. Consider granting the ASP.NET request identity access to this resource. ASP.net has a base process identity that is used when the application has no impersonation (typically, on IIS 5, on IIS 6 for network services). If the application is being emulated, the identity will be anonymous (typically IUSR_machinename) or authenticated request users.

To grant ASP.net write access to a file, right-click the file in Explorer, select Properties, and then select the Security tab. Click Add to add the appropriate user or group. Highlight the ASP.net account, and select the box that corresponds to the required access rights.

This clearly tells me that my asp.net does not have permission to write operation XML file ... This problem is difficult to say, in 2000, under 2003 is very easy small case, but I use XP. XP is a fool-type (smart?) OS, I can't find the small label I want in the folder attribute ("Security"), what does that mean? This means I'm not going to be able to manipulate the XML document, I'm going to give up my idea!!!! When I set up a class and decided to adopt the approach that most people use, the pro finally found out:

Explorer-Tools menu-Folder Options-View tabs, remove the "Use Simple file sharing" Check ... Oh, my God!!!

XP is not for developers to use ... Conclusion!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.