Uninstall IIS, corresponding system version, internal error handling on server 500

Source: Internet
Author: User

Run inetmgr on IIS

Remove the check box before IIS and click Next to uninstall IIS.

Iis5.1 for Windows xp_sp1, xp_sp2, and xp_sp3 Systems

Iis5.0 for Windows 2000

IIS 2003 for Windows Server 6.0

Windows Server 2008 and Vista are applicable to IIS 7.0.

Iis http 500 internal server error server unable to load application '/lm/W3SVC ''/lm/W3SVC'' cannot find the specified metadata

Running Environment: Windows XP SP2
Symptom:
[1] "HTTP 500-internal server error" occurs when you browse the host's. Net script"

[2] view computer system events and find that a warning is displayed every time you browse the. NET script:

Event Type: Warning
Event Source: w3svc
Event Type: None
Event ID: 36
Date: 2006-9-4
Event: 15:48:51
User: N/
COMPUTER: fitmos
Description:
The server cannot load the application '/lm/w3svc '. The error is 'the specified metadata cannot be found. '.

View the information on the network and find that it is related to the DTs service.
Enter the command "services. MSC ", looking for the DTC service (full name: Distributed Transaction Coordinator), found that the Service list does not have this service, go to c: \ windows \ system32 to find the MSDTC directory, in addition, wamreg.dlland asptxn.dllare available in c: \ windows \ system32 \ inetsrv, and msdtc.exe is also available in system32. it seems that the MSDTC Service is not installed.

Run the command to install MSDTC-install
Run services. MSC and find that the DTC service is already in the list. set it to "automatic" and start it.
Make sure that the MSDTC Service has been started properly in the Event Viewer. [This step is critical. If not, restart your computer.]
The following command can be run only after MSDTC is started. Otherwise, the command will fail.
Cd % WINDIR % \ system32 \ inetsrv
Rundll32 wamreg. dll, createiispackage

Regsvr32 asptxn. dll

(Note that createiispackage is case sensitive .)

At this time, refresh the ASPX page to be run. That's great. It can be displayed normally !!

This article from the csdn blog, reproduced please indicate the source: http://blog.csdn.net/wingfay/archive/2007/10/27/1848088.aspx

System. badimageformatexception: the format of the file 'gppbghost.exe 'is invalid

When you use installutil to install the service, the following error is prompted:

System. badimageformatexception: the format of the file 'gppbghost.exe 'is invalid

This problem is mainly caused by the version of installutil. If the called installutil version is 1.1, this problem occurs. If it is 2.0.50727, this problem can be solved. Therefore, you can manually call c: \ windows \ Microsoft. net \ framework \ v2.0.50727 \ installutil.exe or c: \ windows \ microsoft. net \ framework \ v1.1.4322 \ to C: \ WINDOWS \ Microsoft. net \ framework \ v2.0.50727 \

 

 

Exception details: system. Web. Hosting. hostingenvironmentexception: An error occurred while accessing the IIS metadatabase. solution:

 

An error occurred while accessing the IIS metadatabase.

Similarly, this command can also be used to grant IIS operation permissions to new users in the operating system.

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. Hosting. hostingenvironmentexception:Access IIS Metabase failed.

The process account used to run ASP. NET must haveIISMetadatabase (for exampleIIS: // Servername/W3SVC) readAccessPermission. How to modify metadatabasePermissionSee http://support.microsoft.com /? Kbid = 267904.

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.

 

Common solutions:

The running method is as follows:
1. Start --> Run --> Enter cmd to run
2. After opening the DOS window, enter the above folder in the DOS window
3. Enter aspnet_regiis.exe-I-enable

 

 

 

However, this does not solve my problem. After many times, Google found that it was indeed caused by permission issues.

Solution:

Switch cmd to the system directory. The following example uses the system installed in c: \ windows.

Run cmd

CD to directory

C: \ widows \ Microsoft. NET \ framework \ v2.0.50727

Input

Aspnet_regiis-ga ASPnet

Get the prompt.

 

Similarly, this command can also be used to grant IIS operation permissions to new users in the operating system.

 

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.