Asp.net encountered an error when processing the configuration file required to provide services to the request

Source: Internet
Author: User

Ladies and gentlemen, today I encountered an error:ProgramFor net3.5, other pages can be used. There are only two pages with the following error prompted:

CopyCode The Code is as follows: the server error in the "/PDD" 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: 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:
Line 125: cookieless = "false" timeout = "20"/>
Line 126: -->
Row 127: <sessionstate mode = "inproc" stateconnectionstring = "TCPIP = 127.0.0.1: 42424" sqlconnectionstring = "Data Source = 127.0.0.1; trusted_connection = yes "cookieless =" false "timeout =" 120 "/>
Row 128: <! -- Role: Configure ASP. net http Runtime Library settings. This section can be declared at the computer, site, application, and subdirectory level.
Row 129: Example: controls the maximum size of files uploaded by a user to 4 MB, the maximum time to upload is 60 seconds, and the maximum number of requests is 100

Source File: C: \ Program Files \ PDD \ PRO \ WEB. config row: 127

Query through the network :-----------------------------------------------------------------------------Copy codeThe Code is as follows: 1. Start-management tools-Computer Management (win2003 location, similar to other operating systems)
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.
(Open c: \ winnt \ microsoft.net \ framework \ v1.1.4322 \ config \ machine. config in notepad.
Search for username = "machine" in "processmodel" and change it to username = "system ")

Still unsolved

I think: The program can run elsewhere. It proves that the virtual directories in IIS, net3.5, and directory permissions are set properly and should be fine.
Is there a problem with modifying a section in Web. config?
Quickly find a web. config file and replace the Web. config file in the directory. Open the software ............

Ah! The problem persists.

Searching on the Internet and looking at it constantly, I accidentally saw the word "Web. config must be placed in the root directory ." I read the file "source file: C: \ Program Files \ PDD \ PRO \ WEB. config row: 127" again indicated by the error message"
Oh? The error web. config is no longer in the root directory. I checked the Directory and found that there is a web. config under the root directory, and a web. config under the pro directory. The two pages I encountered an error are under the pro directory.
Delete the Web. config file under the pro directory to solve the problem.

It took me three hours to solve this error. Look back, And I'm depressed! When only one file is added, the error prompt points to other places.

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.