Asp.net: Common Access Denied

Source: Internet
Author: User
Preface

It has been almost two years since I first came into contact with Asp.net. In the past two years, I have encountered a lot of problems, and I don't know how many overnight calls I have made, gradually understand and understand the HTML syntax, client script, and Asp.net architecture from the blank. I would like to share some of my experiences with you. Of course, you are also welcome to give any comments and comments!

I will gradually write 《Asp.net. In these articles, the structure, programming mode, web control development, UI, page status maintenance, and cache of Web applications will be involved. Let me talk about it today:

Asp.net: Common Access Denied

In Asp.net, one of the most common problems is Access denied ). For example:

Configuration Error

Note:An error occurred while processing the configuration file required to provide services to the request. Check the following error details and modify the configuration file as appropriate.

Analyzer error message:Access Denied: "MyApp ".

Source error:

Row 256: <add Assembly = "system. enterpriseservices, version = 1.0.5000.0, culture = neutral, publickeytoken = b03f5f7f11d50a3a "/> line 257: <add Assembly =" system. web. mobile, version = 1.0.5000.0, culture = neutral, publickeytoken = b03f5f7f11d50a3a "/> row 258: <add Assembly =" * "/> row 259: </assemblies> row 260:

Source file:C: \ windows \ microsoft.net \ framework \ v1.1.4322 \ config \ machine. configRow:258

In addition, an access denied error says that a directory under C: \ WINDOWS \ Microsoft. NET \ framework \ v1.1.4322 \ temporary ASP. NET files cannot be accessed. There are many causes of these errors, including the change of the bin directory or web. config and insufficient permission to access the file system.

If the bin directory or web. config is changed, an article on the msdn website says that Microsoft Index services (Indexing Service) is running. For details, visit:PRB: Access Denied error when you make code modifications with index services running.

But you also need to pay attention to some other issues,

  • Check the file system access permission in the bin directory. Generally, you only need to ensure that the users container has the "read and run", "list folder directories", and "read" permissions.
  • If you are prompted that you cannot access c: \ windows \ Microsoft. net \ framework \ v1.1.4322 \ temporary ASP. net files \..., temporary ASP. add everyone to the access permission list of the. NET Files directory and set it to have all permissions. Then, after accessing this web application, delete everyone from the access permission list in the temporary ASP. NET Files directory.

In summary, the methods mainly include:

  • Disable or set the Indexing Service;
  • Check the access permission of the bin directory;
  • Set the access permission for the temporary ASP. NET Files directory.
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.