asp.net error in processing the configuration file required to service the request _ Practical Tips

Source: Internet
Author: User

Gentlemen, we have a mistake today: The program is available for net3.5 other pages, except that there are 22 pages that suggest the following error:

Copy Code code as follows:

A server error in the "/PDD" 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: Using a section registered as allowdefinition= ' machinetoapplication outside the application level is incorrect. This error can be caused if the virtual directory is not configured as an application in IIS.
SOURCE Error:
Line 125:cookieless= "false" timeout= "/>"
Row 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="/>
Row 128: <!--role: Configure ASP.net HTTP runtime settings. This section can be declared at the computer, site, application, and subdirectory levels.
Line 129: Example: Control user upload file maximum is 4M, the longest time is 60 seconds, the maximum number of requests is 100

Source file: C:\Program Files\pdd\pro\web.config Line: 127

Queries over the network:-----------------------------------------------------------------------------
Copy Code code 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.
(Available Notepad to open C:\winnt\microsoft.net\framework\v1.1.4322\Config\machine.config
Look for Username= "machine" in "ProcessModel" to change it to Username= "System")

It's still not settled:(

I think: the other parts of the program can be run, which proves that the virtual directory in IIS, and net3.5, as well as directory permissions are set to normal, should be no problem.
Is it the time to modify the information inside the web.config, to change the inside of a section of the problem?
Think about it quickly, find a Web.config file that confirms no problem, and replace the Web.config file in the directory. So open the software .....

Hey! The problem remains.


On the internet constantly searching, constantly looking, occasionally saw a word "web.config must be placed in the root directory." "I looked again at the error prompted the file" source file: C:\Program Files\pdd\pro\web.config line: 127 "
Oh? The web.config of the error is no longer in the root directory. I looked at the directory and found that there was a web.config in the root directory and a web.config in the pro directory. And the 2 pages that I went wrong, right in the Pro directory.
Remove the Web.config file in the Pro directory and solve the problem.


It took me a 3 hours to solve the mistake in a full time. Look back again, another I depressed! With just one more file, the wrong hints are pointing elsewhere.

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.