« Previous Next »

Thread: HTTP Error 500.0 - Internal Server Error

Last post 05-26-2008 3:26 PM by hawaythelads. 1 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (2 items)

Sort Posts:

  • 05-26-2008, 3:40 AM

    HTTP Error 500.0 - Internal Server Error

    I'm using IIS 7 on my Vista Ultimate machine.
    If i load a page using the url http://localhost/SampleServer i get the error below:

    If i run the page from my Visua Studio .Net 2005 which mean using the internal IIS server like so
    http://localhost:11576/SampleServer  it does work:)

    Any ideas??? How to configure IIS 7??

    Server Error in Application "Default Web Site/SampleServer"


    HTTP Error 500.0 - Internal Server Error

    Description: This application is running in an application pool that uses the Integrated .NET mode. This is the preferred mode for running ASP.NET applications on the current and future version of IIS.

    In this mode, the application should not specify ASP.NET module components in the <system.web>/<httpModules> configuration section. Instead, it should use the <system.webServer>/<modules> configuration section to load ASP.NET module components. You have the following options:

    1) Migrate the application to work with the Integrated .NET mode (PREFERRED).

    You can migrate the application configuration, including the contents of the <httpModules> configuration section, by using the following from a command line window (the window must be running as Administrator):

    %systemroot%\system32\inetsrv\APPCMD.EXE migrate config "Default Web Site/SampleServer"

    After you migrate your application, it will run in both Classic and Integrated .NET modes, as well as on downlevel platforms.

    2) Move this application to an application pool using the Classic .NET mode.

    You can move the application to the default application pool using the Classic .NET mode by running the following from an command line window (the window must be running as Administrator):

    %systemroot%\system32\inetsrv\APPCMD.EXE set app "Default Web Site/SampleServer" /applicationPool:"Classic .NET AppPool"

    Alternatively, you can use any other application pool on your system that is running in the Classic .NET mode. You can also use the IIS Administration tool to move this application to another application pool.

    It is preferred that you migrate this application by using option 1 to take advantage of the benefits provided by the Integrated .NET mode.

    Error Code: 0x80070032

    Notification: BeginRequest

    Module: ConfigurationValidationModule

    Requested URL: http://localhost:80/SampleServer

    Physical Path: C:\inetpub\wwwroot\SampleServer Logon User: Not yet determined

    Logon Method: Not yet determined

    Handler: StaticFile

    Most likely causes:

    • IIS received the request; however, an internal error occurred during the processing of the request. The root cause of this error depends on which module handles the request and what was happening in the worker process when this error occurred.
    • IIS was not able to access the web.config file for the Web site or application. This can occur if the NTFS permissions are set incorrectly.
    • IIS was not able to process configuration for the Web site or application.
    • The authenticated user does not have permission to use this DLL.
    • The request is mapped to a managed handler but the .NET Extensibility Feature is not installed.

    What you can try:

    • Ensure that the NTFS permissions for the web.config file are correct and allow access to the Web server's machine account.
    • Check the event logs to see if any additional information was logged.
    • Verify the permissions for the DLL.
    • Install the .NET Extensibility feature if the request is mapped to a managed handler.
    • Create a tracing rule to track failed requests for this HTTP status code. For more information about creating a tracing rule for failed requests, click here.

    More Information... This error means that there was a problem while processing the request. The request was received by the Web server, but during processing a fatal error occurred, causing the 500 error.

    Microsoft Knowledge Base Articles:

    • 294807
  • 05-26-2008, 3:26 PM In reply to

    Re: HTTP Error 500.0 - Internal Server Error

    Hi You have two options here to get you going. 1) leave your application running in Classic Mode. In order to enable this go to the IIS Manager and select the site in which your application is running i.e. Default Web Site. The select the application SampleServer - now on the right hand side of the manager is the actions pane. Select Advanced Settings, you will then get a window with options, Under General select the Application Pool property and change to Classic .Net AppPool. Then click ok, ok again and then try browsing your application - you should be able to run it now. However the second option is the preferred option to fully take advantage of the integrated pipeline in IIS7. The error message you have received gives you the details of what to do. To make it clearer what you should do if you wish to migrate your web.config settings and run your application on IIS7 in full integrated mode do the following. first always to be safe take a backup of your web.config (however I must point out I have never had issues with the following process) run a command prompt as administrator (elevated mode) Then enter the following command as detailed in the error message: c:\windows\system32\inetsrv\APPCMD.EXE migrate config "Default Web Site/SampleServer" replacing c for the drive letter on which your windows installation is located. and press enter to run the migration. The error message presents this latter option as option 1 and the option 2 is the command line version of what I have detailed in 1) just described in instructions of how to use the manager ui. I hope this helps
    Andrew Westgarth

    MVP for Internet Information Services (IIS) - https://mvp.support.microsoft.com/profile/Andrew.Westgarth

    Blog: http://www.andrewwestgarth.co.uk/blog
    Twitter: http://www.twitter.com/apwestgarth

    VBUG Chairman and North East Regional Coordinator
    VBUG - Developing the Developer! - http://www.vbug.com
Page 1 of 1 (2 items)