IIS-ASP.NET environment configuration common error _ Nomads

Source: Internet
Author: User

Reprinted please famous source http://hi.baidu.com/nomads

/======================================================== =============================================/
/= 1: script resource access is not enabled =/
/======================================================== =============================================/

**************************
* <1>: Error Description *
**************************

This page cannot be displayed
You attempt to execute CGI, ISAPI, or other executable programs from the directory, but this directory does not allow execution of programs.
--------------------------------------------------------------------------------
Please try the following operations:
If you believe that the directory should allow access, contact the website administrator.
HTTP Error 403.1-Access prohibited: Access denied.
Internet Information Service (IIS)

**************************
* <2>: solution *
**************************

Modify IIS website Configuration
Property --> Home Directory --> select script resource access, and select pure script/pure script or executable file for execution permission

 

/======================================================== =============================================/
/= 2: Different. Net versions =/
/======================================================== =============================================/

**************************
* <1>: Error Description *
**************************

"/" Indicates a server error in the 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: Unrecognized attribute "type ".
Source error:
Row 2: <configuration>
Row 3: <configSections>
Row 4: <sectionGroup name * "system. web. extensions "type *" System. web. configuration. systemWebExtensionsSectionGroup, System. web. extensions, Version * 3.5.0.0, Culture * neutral, PublicKeyToken * 31BF3856AD364E35 ">
Row 5: <sectionGroup name * "scripting" type * "System. Web. Configuration. ScriptingSectionGroup, System. Web. Extensions, Version * 3.5.0.0, Culture * neutral, PublicKeyToken * 31BF3856AD364E35">
Row 6: <section name * "scriptResourceHandler" type * "System. web. configuration. scriptingScriptResourceHandlerSection, System. web. extensions, Version * 3.5.0.0, Culture * neutral, PublicKeyToken * 31BF3856AD364E35 "requirePermission *" false "allowDefinition *" MachineToApplication "/>
Source File: D: \ Web \ web. config line: 4
--------------------------------------------------------------------------------
Version: Microsoft. NET Framework Version: 1.1.4322.2407; ASP. NET version: 1.1.4322.2407

**************************
* <2>: solution *
**************************

Modify IIS website Configuration
Attribute --> ASP. NET --> modify the version of ASP. NET to be consistent with or higher than the current version of the website!
<Example: change version 1.1.4322.2407 to 2.0.50727>

 

/======================================================== =============================================/
/= 3: User Permissions =/
/======================================================== =============================================/

**************************
* <1>: Error Description *
**************************

"/" Indicates a server error in the application.
--------------------------------------------------------------------------------
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.
Source error:
An unhandled exception is generated during the execution of the current Web request. You can use the following exception stack trace information to determine the cause and location of the exception.
Stack trace:
[HttpException (0x80004005): The current identifier (nt authority \ network service) is not against "C: \ WINDOWS \ Microsoft. NET \ Framework \ v2.0.50727 \ Temporary ASP.. NET Files.]
System. Web. HttpRuntime. SetUpCodegenDirectory (CompilationSection compilationSection) + 3570267
System. Web. HttpRuntime. HostingInit (HostingEnvironmentFlags hostingFlags) + 218
[HttpException (0x80004005): The current identifier (nt authority \ network service) is not against "C: \ WINDOWS \ Microsoft. NET \ Framework \ v2.0.50727 \ Temporary ASP.. NET Files.]
System. Web. HttpRuntime. FirstRequestInit (HttpContext context) + 3465427
System. Web. HttpRuntime. EnsureFirstRequestInit (HttpContext context) + 69
System. Web. HttpRuntime. ProcessRequestInternal (HttpWorkerRequest wr) + 279
--------------------------------------------------------------------------------
Version: Microsoft. NET Framework Version: 2.0.50727.1433; ASP. NET version: 2.0.50727.1433

**************************
* <2>: solution *
**************************

Find the current. Net folder, modify the Temporary ASP. NET Files attribute --> Security --> Add a network service user and set the write permission
For example, in C: \ WINDOWS \ Microsoft. NET \ Framework \ v2.0.50727 \
Modify Temporary ASP. NET Files attributes --> Security --> Add a network service user and set write permission

 

/======================================================== =============================================/
/= 4: [xp sp2 iis5.1 asp.net] Service unavailable or unable to display XML =/
/======================================================== =============================================/

**************************
* <1>: Error Description *
**************************

A:
The server application is unavailable.
The Web application you are attempting to access on this Web server is currently unavailable. Please click "refresh" in the Web browser to try your request again.
Administrator Note: you can find the error details for the specific request failure cause in the system event log of the Web server. Check this log item to find out the cause of this error.
B:
The XML page cannot be displayed.
XML input cannot be viewed using the XSL style sheet. Correct the error and click Refresh or try again later.
--------------------------------------------------------------------------------
The name must start with an invalid character. An error occurred while processing the resource 'HTTP: // localhost/default. aspx. Row 1st, Location: 2
<= @ Page language * "C =" autoeventwireup * "true" inherits * "_ Default, App_Web_a4g5ncyg" masterpagefile *"~ /ContentMaster. maste...

**************************
* <2>: solution *
**************************

Cause: the ASP. NET account is not registered in iis (xp piracy problem)
A: stop iis service iisreset/stop
B: Go to the framework 2.0 directory, for example, C: \ WINDOWS \ Microsoft. NET \ Framework \ v2.0.50727> RUN aspnet_regiis.exe-I
C: restart the iisreset/start service.

**> Running example:
C: \ Documents ents and Settings \ Administrator> iisreset/stop
Stopping...
Internet Service stopped successfully
C: \ Documents ents and Settings \ Administrator> cd C: \ WINDOWS \ Microsoft. NET \ Framework \ v2.0.50727
C: \ WINDOWS \ Microsoft. NET \ Framework \ v2.0.50727> aspnet_regiis.exe-I
Start installing ASP. NET (2.0.50727 ).
...............
ASP. NET (2.0.50727) installation is complete.
C: \ WINDOWS \ Microsoft. NET \ Framework \ v2.0.50727> iisreset/start
Starting...
Internet service started successfully
C: \ WINDOWS \ Microsoft. NET \ Framework \ v2.0.50727>

 

/======================================================== =============================================/
/= 5: some images on the webpage cannot be displayed =/
/======================================================== =============================================/

**************************
* <1>: Error Description *
**************************

The webpage cannot be normally displayed. The image attribute is unavailable.

**************************
* <2>: solution *
**************************

Cause: the image folder <Images> or image is not shared.
Solution: Find the website image folder in the website directory and set sharing to Web Sharing.

Reprinted please famous source http://hi.baidu.com/nomads

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.