« Previous Next »

Thread: IIS7 Vista Ultimate cannot run .asp file-error 500

Last post 07-01-2009 7:14 AM by Leo Tang - MSFT. 8 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (9 items)

Sort Posts:

  • 06-26-2009, 10:19 AM

    • lsh4159
    • Not Ranked
    • Joined on 06-26-2009, 5:35 AM
    • Posts 4

    IIS7 Vista Ultimate cannot run .asp file-error 500

     Hi,

    I am new in asp and iis.  i m using IIS7, Vista Ultimate, when i run a login html page and type the userid and password then submit, then go to login.asp. the problem coming, login.asp here.

    error 500.....and have this message "An error occurred on the server when processing the URL. Please contact the system administrator"

    i have turn the "send error to browser" to "true"

     i follow the Failed Request Tracing stated in this forum step by step but i do not have this folder ==>%SystemDrive%\Inetpub\FailedRequestLogFiles\W3SVCnnn folder in my inetpub

    this is i get from logfile before i tracing failed==>

    2009-06-26 14:04:11 ::1 POST /aspnet_client/Nippon_Paint/login.asp |5|80004005|[Microsoft][ODBC_Microsoft_Access_Driver]_Disk_or_network_error. 80 - ::1 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.0;+SLCC1;+.NET+CLR+2.0.50727;+Media+Center+PC+5.0;+.NET+CLR+3.0.04506;+InfoPath.2) 500 0 0

    this is fro logfile when i run the Bad_class.asp follow the step in Failed Request Tracing==>

    2009-06-26 14:07:37 ::1 GET /aspnet_client/Nippon_Paint/Bad_class.asp |5|800a01ad|ActiveX_component_can't_create_object:_'Bad.Class.Name' 80 - ::1 Mozilla/5.0+(Windows;+U;+Windows+NT+6.0;+en-US;+rv:1.9.1b4)+Gecko/20090423+Firefox/3.5b4 500 0 0

    i have run this file in my company..so the coding should b no problem. i can run those html de...onli run asp cannot.

    I have read many forum for solution. but i cannot make it.everyone can help me???really thanks thanks.

     

     

  • 06-27-2009, 11:03 PM In reply to

    Re: IIS7 Vista Ultimate cannot run .asp file-error 500

    You have 2 issues.  One, the IUSR account does not have write permissions to the directory where your access db is located.  It has to create the ldb file.

    secondly, the Active X component is not registered on the system.  You have to register the DLL using regsvr32 or component services. 

    Steve Schofield
    Windows Server MVP - IIS
    http://weblogs.asp.net/steveschofield


    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget
  • 06-28-2009, 9:28 AM In reply to

    • lsh4159
    • Not Ranked
    • Joined on 06-26-2009, 5:35 AM
    • Posts 4

    Re: IIS7 Vista Ultimate cannot run .asp file-error 500

     i have successful register DLL using regsvr32 already.

    the 1st issues IUSR account i not understand..can futher explain or hav some reference website for me to learn?

     

    this is my config.asp which connect to my database

    <%
    Set Conn = Server.CreateObject("ADODB.Connection")

    MdbFilePath = Server.MapPath("NPDB.mdb")
    Conn.Open "Driver={Microsoft Access Driver (*.mdb)}; DBQ=" & MdbFilePath & ";"
    %>
     

  • 06-28-2009, 12:22 PM In reply to

    Re: IIS7 Vista Ultimate cannot run .asp file-error 500

    You need to grant NTFS permissions to this user so it has write permissions on the folder the access database is located.

     

    Steve Schofield
    Windows Server MVP - IIS
    http://weblogs.asp.net/steveschofield


    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget
  • 06-28-2009, 12:23 PM In reply to

    Re: IIS7 Vista Ultimate cannot run .asp file-error 500

    Here is an article that has similar steps, even though it was IIS 6.

    http://support.microsoft.com/kb/271071

    Steve Schofield
    Windows Server MVP - IIS
    http://weblogs.asp.net/steveschofield


    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget
  • 06-29-2009, 8:59 AM In reply to

    • lsh4159
    • Not Ranked
    • Joined on 06-26-2009, 5:35 AM
    • Posts 4

    Re: IIS7 Vista Ultimate cannot run .asp file-error 500

     thanks for the website.

    i have follow the Grant Ownership and permission to the administrator and to the system step by step. but the problem still cannot solved. the same problem still occured.

    I do not know what is the problem..

     

  • 06-29-2009, 9:22 AM In reply to

    Re: IIS7 Vista Ultimate cannot run .asp file-error 500

    Turn off friendly errors in IE.  Make sure the file and folder have Modify permission for ther IUSR account.

    Jeff

    Look for Wrox's new book Professional IIS 7 in your local bookstore, or order now at Amazon.com
  • 06-29-2009, 9:40 AM In reply to

    • lsh4159
    • Not Ranked
    • Joined on 06-26-2009, 5:35 AM
    • Posts 4

    Re: IIS7 Vista Ultimate cannot run .asp file-error 500

     i have turn off friendly error in IE

    but still come out same error ==> An error occurred on the server when processing the URL. Please contact the system administrator

    how to  check whether the file or folder have modify permission for the UISR account??sorry fo that..i m newbie in this...

  • 07-01-2009, 7:14 AM In reply to

    Re: IIS7 Vista Ultimate cannot run .asp file-error 500

    Hi,

    but still come out same error ==> An error occurred on the server when processing the URL. Please contact the system administrator

    This means the error message was not sent to browser. Please check the scriptErrorSentToBrowser="true" was configured on the proper level. Also, make sure the   errorMode="Detailed"(IIS Manager-> Error Pages icon->Edit Feature Settings…).
    Classic ASP script error messages are no longer shown in a Web browser by default
    http://learn.iis.net/page.aspx/564/classic-asp-script-error-messages-are-no-longer-shown-in-a-web-browser-by-default/


    To check  the  folder’s NTFS permissions , you can right-click the folder ->check the Security settings.
    Below is an article contains understanding IUSR account:
    Understanding the Built-In User and Group Accounts in IIS 7.0
    http://learn.iis.net/page.aspx/140/understanding-the-built-in-user-and-group-accounts-in-iis-70/

    Leo Tang
    Microsoft Online Community Support

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Page 1 of 1 (9 items)
Microsoft Communities