ASP. NET publish error, modify

Source: Internet
Author: User

1. HTTP error 500.21-internal Server error handler "pagehandlerfactory-integrated" has an error module in its module list "Managedpipelinehandler "

Environment: WIN7 64 System, install Vs2012,then Install SQL Server 2008 First, and finally turn on IIS features.

When developing with VS2012, local debugging works fine, but when you publish a Web site to IIS tonight, you are prompted with an error message when you browse:

HTTP Error 500.21-internal Server error handler "pagehandlerfactory-integrated" has an error module in its module list "Managedpipelinehandler"

Search on the Internet, many people say can be run by command aspnet_regiis.exe to repair, but I get the result is pop-up information tells me Aspnet_regiis.exe is not a valid running program

Command prompt, run as Administrator->%windir%\microsoft.net\framework\v4.0.30319\aspnet_regiis.exe-i
1. Start and All Programs, Microsoft Visual Studio, Visual Studio Tools, VS2012 x64 compatible tools command Prompt 2. Enter the following command successively:  cd\windows\microsoft.net\framework64\v4.0.30319\setupcache  carriage return  setup.exe/repair/x86/x64/ Ia64/norestart  Enter the  . Net Framework Repair Boot interface appears, select Repair. After it is repaired, restart IIS. It's OK,  iisreset.

2. failed to write to output file "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP. files\root\106f9ae8\cc0e1169\ App_global.asax.haz99mum.dll "--" access denied

The local development environment is fine, but publishing to the server appears: failed to write output file "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP. NET Files\root\ 106f9ae8\cc0e1169\app_global.asax.haz99mum.dll "--" denied access. "Error

Workaround: 1, the usual workaround: Because the temp directory under the system directory does not have the appropriate permissions to do so, do the following:c:\windows\temp--> properties---safe----Add Network  The read and write permissions of the service user can be resolved. 2. Open Server System C drive, open window, right-click Temp Property Security Edit Add Iis_iusrs user Control permission to add modify and Write permissions. This is the solution for Windows Server R2 Standard Edition SP1 64-bit Chinese version. (Mine is the problem. This solves, the above network service does not have the line) above methods have tried, all not, so, or add the C:\Windows\temp to everyone's read and write permission on it.

3.HTTP error 403.14-forbidden WEB server is configured to not list contents of this directory

WORKAROUND: Set the default page

4.HTTP error 500.23-internal Server error detected an ASP. NET setting that is not applicable in integrated managed pipeline mode.

WORKAROUND:    Configure the application pool on IIS7 and change the schema of the program pool to "classic"

5.HTTP error 404.2-not Found. The page you requested cannot be provided because of the ISAPI and CGI Restrictions list settings on the WEB server.

Environment: Win7 + IIS7.0 Workaround:    IIS root node, right "ISAPI and CGI restrictions", set the Forbidden Dotnet version entry to allow

Other:

installation and configuration of IIS under Win7

Open Control Panel--programs and features--turn Windows features on or off-->internet information services

Hook up the >FTP server

Hook Up >web management tool

Hook up > World Wide Web Services

Hook up > Common HTTP Features

Hook Up > Performance function

Hook up > Application development features >asp.net

Save

  

ASP. NET publish error, modify

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.