Previous Next

Thread: Newbie: still not grok'ing 500 errors

Last post 07-04-2008 4:44 PM by e1ny. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 07-01-2008, 10:14 AM

    • e1ny
    • Top 25 Contributor
    • Joined on 12-10-2007, 9:50 PM
    • Posts 128

    Newbie: still not grok'ing 500 errors

    Hi All: I'm struggling with some basic configuration concepts in IIS7. I have a dozen other websites running ASP and .NET on this server.

    I wanted to run the latest version of blogengine.net...I extracted the zip to my "websites directory", created a new website with the extracted folder as the root, assigned a binding IP and hostname, and when I try to browse I get a 500 error. Can't even pull up a .txt file.

    I change the website to point to a new directory and put a simple html file in it...that I can browse. I set up an application in this new website pointing to the blogengine.net directory, and get the 500 errors again when I try to browse that directory.

    I enable tracing, and I'm getting:

    ModuleName ConfigurationValidationModule
    Notification 1
    HttpStatus 500
    HttpReason Internal Server Error
    HttpSubStatus 22
    ErrorCode 2147942450
    ConfigExceptionInfo
    Notification BEGIN_REQUEST
    ErrorCode The request is not supported. (0x80070032)

    What am I missing in my setup? I keep stumbling into this problem but don't really understand the cause.

  • 07-01-2008, 10:47 AM In reply to

    • e1ny
    • Top 25 Contributor
    • Joined on 12-10-2007, 9:50 PM
    • Posts 128

    Re: Newbie: still not grok'ing 500 errors

    FWIW: I changed the application to use the "Classic .NET AppPool" and now I'm getting more informative errors...I still don't really understand the difference of the pools though, and would welcome that clarification.

    .net is now returning a permissions error which I can probably solve...but also I note that the "Exception Details" makes suggestions for IIS 5 and IIS 6 but not IIS 7...is that because I'm in effect running in "IIS 6 Mode" when "classic Asp.net" is selected as the app pool? (There is no ASP.NET account on the server)

    Access to the path 'D:\websites\BlogEngine.NET\App_Data\datastore\extensions\CodeFormatterExtension.xml' is denied.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.UnauthorizedAccessException: Access to the path 'D:\websites\BlogEngine.NET\App_Data\datastore\extensions\CodeFormatterExtension.xml' is denied.

    ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.

    To grant ASP.NET access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.

  • 07-04-2008, 4:44 PM In reply to

    • e1ny
    • Top 25 Contributor
    • Joined on 12-10-2007, 9:50 PM
    • Posts 128

    Re: Newbie: still not grok'ing 500 errors

    OK, I persisted and found out that if I switched to classic pool, I then got a meaningful .net permissions error.

    Just to review, I have all the websites on this server in a folder outside of InetPub. When I set up a new website, I grant anonymous access to the folder and assign the usual bindings. When I check permissions on that folder, the only permissions I see are:

    • creator owner
    • system
    • administrators
    • users

    I compared that to wwwroot, and saw that Network service was assigned full control to InetPub, so I gave Network Service "modify" permissions on the new directory (actually one "new directory/App_Data"), and now it works.

    If, however, I switch back to the App Pool created when I set up the website, I'm back to 500 errors. Can someone explain to me what's going on here? Is it a problem with application, or webconfig, or something else? I don't understand why which pool I use makes a difference?

Page 1 of 1 (3 items)
Page view counter