« Previous Next »

Thread: Help! Classic ASP on IIS7

Last post 07-22-2008 8:48 PM by ksingla. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 07-20-2008, 1:54 PM

    • firecow
    • Not Ranked
    • Joined on 07-20-2008, 5:48 PM
    • Posts 2

    Help! Classic ASP on IIS7

    I have hosting with Godaddy Windows PLan.

    It is IIS7. So everytime scripts have error, it only shows generic 500 error. I do n't knowhow to track error without detailed error line.

    And their tech recommend me to add web.config file on root as below codes:

    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
        <system.web>
            <customErrors mode="Off"/>
    </configuration>

     

    I upload this file to root. If script has error, it still shows 500 error. I also tried intergrated mode or Classsic mode. it sitill have same error.

    Is ther e anybody know how to resolve this problem? It spends me one week working on this issue.

    Help pls. 

  • 07-20-2008, 3:08 PM In reply to

    • ksingla
    • Top 10 Contributor
    • Joined on 06-14-2006, 3:02 AM
    • Redmond, WA
    • Posts 863

    Re: Help! Classic ASP on IIS7

    system.web/customErrors section will only affect aspx responses only. Can you try putting following in web.config?

    <configuration>
      <system.webServer>
        <httpErrors errorMode="Detailed"/>
      </system.webServer>
    </configuration>

    You probably do not want to enable detailed errors for ever. Once you are done debugging 500 error, you should change errorMode to "DetailedLocalOnly".

    -Kanwal-

    Follow me on twitter at http://twitter.com/kjsingla
  • 07-20-2008, 5:01 PM In reply to

    • firecow
    • Not Ranked
    • Joined on 07-20-2008, 5:48 PM
    • Posts 2

    Re: Help! Classic ASP on IIS7

     Then it shows different error:

    An error occurred on the server when processing the URL. Please contact the system administrator.

    If you are the system administrator please click here to find out more about this error.

     

    But I am not administrator. It is hosting server. Any other better idea? Thanks a lot. 

     

  • 07-22-2008, 8:48 PM In reply to

    • ksingla
    • Top 10 Contributor
    • Joined on 06-14-2006, 3:02 AM
    • Redmond, WA
    • Posts 863

    Re: Help! Classic ASP on IIS7

    Your hoster probably doesn't have system.webServer/httpErrors section delegated. Not sure if your hoster allows you to change system.webServer/asp section configuration but you can try putting following in your web.config.

    <configuration>
     <system.webServer>
      <asp scriptErrorSentToBrowser="true" />
     </system.webServer>
    </configuration>

    Follow me on twitter at http://twitter.com/kjsingla
Page 1 of 1 (4 items)
Microsoft Communities