In asp.net, the component "Access Denied" is displayed.

Source: Internet
Author: User

Sometimes, when we debug the ASP.net program, it will be very painful. Access to a certain component is denied. At this time, Restarting IIS does not work when the computer logs out. At this time, the error message is generally similar to the following method:

"/" Indicates a server error in the application.
--------------------------------------------------------------------------------
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: "CSDN. Authentication ".
Source error:
Row 196: <add assembly = "System. EnterpriseServices, Version = 1.0.5000.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a"/>
Line 197: <add assembly = "System. Web. Mobile, Version = 1.0.5000.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a"/>
Row 198: <add assembly = "*"/>
Row 199: </assemblies>
Row 200: </compilation>

Source File: c: \ windows \ microsoft.net \ framework \ v1.1.4322 \ Config \ machine. config row: 198
Assembly loading tracking: The following information helps determine the reason why the assembly "CSDN. Authentication" cannot be loaded.
=== Pre-bind state information ===
LOG: DisplayName = CSDN. Authentication
(Partial)
LOG: Appbase = file: // F:/MyDevelop/AD/Code/ADManageWeb
LOG: Initial PrivatePath = bin
Calling assembly: (Unknown ).
===
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind ).
LOG: Post-policy reference: CSDN. Authentication
LOG: Attempting download of new URL file: // C:/WINDOWS/Microsoft. NET/Framework/v1.1.4322/Temporary ASP. NET Files/root/3151f96f/581ce000/CSDN. authentication. DLL.
LOG: Attempting download of new URL file: // C:/WINDOWS/Microsoft. NET/Framework/v1.1.4322/Temporary ASP. NET Files/root/3151f96f/581ce000/CSDN. authentication/CSDN. authentication. DLL.
LOG: Attempting download of new URL file: // F:/MyDevelop/AD/Code/ADManageWeb/bin/CSDN. Authentication. DLL.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind ).
LOG: Post-policy reference: CSDN. Authentication, Version = 1.0.1965.30523, Culture = neutral, PublicKeyToken = null
--------------------------------------------------------------------------------
Version: Microsoft. NET Framework Version: 1.1.4322.2300; ASP. NET version: 1.1.4322.2300

The most common cause is the Indexing service. The solution is to disable the Indexing service, or configure the temporary directory of ASP.net not to be affected by the Indexing service.

To configure the temporary directory of ASP.net not affected by the Indexing service, follow these steps:

1. Start-management tools-Computer Management (similar to other operating systems in Win2003)
2. Expand the "service and application" node in the left-side tree of Computer Management, then expand the "Index Service" node under it, and then expand the "System" node under it, expand the "directory" node under it.
3. On the right of Computer Management, we can see the configured index service directory.
4. Right-click the "directory" node and choose "New"> "directory"
5. In the "add directory" dialog box, enter the temporary file directory of ASP.net in the input box. The default value is:
C: \ <WINDIR> \ Microsoft. NET \ Framework \ <Version Number> \ Temporary ASP. NET Files directory.
<Version Number> indicates the. net Version to be processed.
6. Is it included in the index ?" Select "no"
7. Click OK.
8. Right-click the "Index Service" node and restart the Index Service.

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.