The current identity (nt authority \ network service) does not have the write access permission"

Source: Internet
Author: User

The current identity (nt authority \ network service) does not have the write access permission for "C: \ WINDOWS \ Microsoft. NET \ Framework \ v2.0.50727 \ Temporary ASP. NET Files.

Note: An unhandled exception occurs during the execution of the current Web request. Check the stack trace information for details about the error and the source of the error in the code.

Exception details: System. web. httpException: The current identifier (nt authority \ network service) is not against "C: \ WINDOWS \ Microsoft. NET \ Framework \ v2.0.50727 \ Temporary ASP.. NET Files

Check whether the. net installation environment is normal and the permission is normal. The problem still cannot be solved. Can't you reinstall it? Finally, I found a solution on the Internet.

Run: C: \ WINDOWS \ Microsoft. NET \ Framework \ v2.0.50727 \ aspnet_regiis-I-enable

The system displays that. net is being installed. Everything will return to normal later.

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: the section registered as allowDefinition = 'machinetoapplication' outside the application level is incorrect. This error may occur if the virtual directory is not configured as an application in IIS.

Source error:

Row 24: identifies the passed user.

Row 25: -->

Row 26: <authentication mode = "Windows"/>

Row 27: <! --

Row 28: if an unprocessed error occurs during request execution,

Source File: D: \ Desktop materials \ Mr Xiao debugging \ yipurchased website project Source Code \ web. config line: 26

Other configuration errors are displayed:

The Section registered as allowDefinition = 'machinetoapplication' outside the application level is incorrect. This error may occur if the virtual directory is not configured as an application in IIS. (D: \ Desktop materials \ Mr. Xiao debugging \ yipurchased website project Source Code \ web. config line 39)

 

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

Version: Microsoft. NET Framework Version: 2.0.50727.832; ASP. NET version: 2.0.50727.832

It is set in IIS and cannot be run in VS 2005 environment. The same error! Help me

 

Linjone»

Cause: allowDefinition = "MachineToApplication" in Machine. config ".

Solution 1: Set allowDefinition to Everywhere. It is recommended that you do not change the Machine. config file. Otherwise, other errors may occur.

Solution 2: <authentication mode = "Forms"> is application-level and cannot be in the web. config directory of the subdirectory.

Set it to the application-level web. config, and use the <authorization> section in the subdirectory to control access.

Namely: <system. web>

<Authorization>

<Deny users = "? "/>

</Authorization>

</System. web>

Web. config in the root directory:

<Authentication mode = "Forms">

<Forms loginUrl = "~ /Admin/login. aspx "name =" login "/>

</Authentication>

<Authorization>

<Allow users = "*"/>

</Authorization>

(Solution 3: (I think about it recently) configure the admin sub-directory as an application. It should be correct, but it has not been tested and needs to be tested before verification .)

 

MAOGE1987»

1. If no application name exists in IIS, create it first. If not, set C: \ WINDOWS \ Microsoft. NET \ work \ v2.0.50727 \ CONFIG \ machine. change all allowDefinition = "MachineToApplication" in config to allowDefinition = "Everywhere"

2. Right-click the virtual directory corresponding to the website, select properties, and click Create after the application name.

I couldn't find it as they said. In the end, I understood that

Point your virtual directory to the folder where web. config is located, because some configuration sections of web. config can only appear in the virtual directory and directory of the website.

Anyqu»

Create virtual directory

Dnnyyq»

I have tried the operations of the above brothers before and it is useless. So I came to csdn to ask

Jinquan_xu»

Check whether there are multiple WEB pages. CONFIG

Rf001»

I also encountered this kind of error and expected the answer ......

Alan0128»

Analysis: The program directory is not set as a virtual directory.

Open the management tool-Internet Information Service, find my asp.net folder under my website, right-click and select Properties, click here in "application settings" to create, allocate the same program pool as the site. OK. OK.

I tried it and confirmed it could be solved.

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.