asp.net the solution to "Access denied" in the component below. Practical Tips
Source: Internet
Author: User
Sometimes, when we debug the ASP.net program, it will be very painful to meet. A certain component access was denied. When you restart IIS, the computer logoff does not work. The error message at this time is generally similar to the following way:
Server error in '/' Application.
--------------------------------------------------------------------------------
Configuration error
Description: An error occurred while processing the configuration file required to provide services to the request. Please check the specific error details below and modify the configuration file appropriately.
Parser Error message: Access Denied: "CSDN." Authentication ".
SOURCE Error:
Row 196: <add assembly= "System.EnterpriseServices, version=1.0.5000.0, Culture=neutral, PublicKeyToken= b03f5f7f11d50a3a "/>
Row 197: <add assembly= "System.Web.Mobile, version=1.0.5000.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a"/ >
Row 198: <add assembly= "*"/>
Line 199: </assemblies>
Row: </compilation>
Source file: C:\windows\microsoft.net\framework\v1.1.4322\Config\machine.config Line: 198
Assembly Load Trace: The following information helps determine the assembly "CSDN." Authentication "failed to load reason.
= = = 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 in 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 the new URL File:///F:/MyDevelop/AD/Code/ADManageWeb/bin/CSDN.Authentication.DLL.
Log:policy not being applied to reference in 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 information: Microsoft. NET Framework Version: 1.1.4322.2300; asp.net version: 1.1.4322.2300
The most common cause of this is Indexing Service services. The workaround is to deactivate the Indexing Service, or configure the ASP.net temporary directory to be unaffected by the Indexing Service.
The steps to configure the ASP.net temporary directory to be unaffected by the Indexing Service services are as follows:
1, start--management tools--Computer Management (Win2003 location, similar to other operating systems) turn on Computer Management
2. Expand Computer Management The services and Applications node in the left tree, expand the Indexing Service node under it, expand the System node under it, and then expand the directory node below it.
3, on the right side of the computer Management we can see the configured Indexing Service directory.
4, on the "Directory" node right click on the mouse, select "New"--"directory"
5. In the Add Directory dialog box, enter the asp.net temporary file directory in the entry box. The default should be:
C:\<windir>\microsoft.net\framework\<version number>\temporary asp.net Files directory.
<version number> refers to the. NET version you are dealing with.
6, in the "included in the index?" "option, select" No "
7, click "OK" button
8. Right-click on the Indexing Service node to restart Indexing Service.
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