Everyone, I encountered an error today: the program is net3.5 and other pages can be used, but there are only 2 two pages that prompt the following error:
Copy the codeThe code is as follows:
Server error in the "/pdd" application.
--------------------------------------------------------------------------------
Configuration error
Description: An error occurred while processing the configuration file required to provide the service to the request. Please check the specific error details below and modify the configuration file appropriately.
Analyzer Error Message: It is wrong to use a section registered as allowDefinition='MachineToApplication' outside the application level. This error can be caused if the virtual directory is not configured as an application in IIS.
Source error:
Line 125: cookieless="false" timeout="20" />
Line 126: -->
Line 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"/>
Line 128: <!--Function: Configure HTTP runtime settings. This section can be declared at the computer, site, application, and subdirectory levels.
Line 129: Example: The maximum number of files uploaded by users is 4M, the maximum time is 60 seconds, and the maximum number of requests is 100
Source file: C:\Program Files\pdd\pro\ Line: 127
Queryed through the Internet: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Copy the codeThe code is as follows:
1. Start -- Management Tools -- Computer Management (the location of Win2003, similar to other operating systems) Open Computer Management
2. Expand the "Services and Applications" node in the left tree on Computer Management, then expand the "Index Services" node below, then expand the "System" node below, and then expand the "Catalog" node below.
3. On the right side of computer management, we can see the configured index service directory.
4. Right-click the mouse on the "Catalog" node and select "New"--"Catalog"
5. In the "Add Directory" dialog box, pass the temporary file directory entered in the input box. The default should be:
c:\<WINDIR>\\Framework\<Version Number>\Temporary Files directory.
<Version Number> refers to the .net version you want to deal with.
6. In the "Included in Index?" option, select "No"
7. Click the "OK" button
8. Right-click on the "Index Service" node and restart the index service.
(Open with Notepad c:\winnt\\framework\v1.1.4322\Config\
Find userName="machine" in "processModel" and change it to userName="System" )
Still not solved :(
I think: the program can run elsewhere, so it proves that the virtual directories in iis, net3.5, and directory permissions are all set normally, so there should be no problem.
Could it be that when modifying the information inside, a problem occurred when modifying a section inside?
When I thought about it, I quickly did it, found a file that confirmed that there was no problem, and replaced the file in the directory. So I opened the software……
Why! The problem remains.
I kept searching and looking online, and I accidentally saw a word "must be placed in the root directory." I looked at the file indicated by the error prompt again "Source file: C:\Program Files\pdd\pro\ Line: 127"
oh? The error occurred no longer in the root directory. When I was looking at the directory, I found that there is one in the root directory and one in the pro directory. And the two pages I made the error happen to be in the pro directory.
Delete the files in the pro directory and solve the problem.
This error took me 3 hours to resolve. Looking back, I feel depressed! There is only one file, but the error prompt pointed to other places.