« Previous Next »

Not Answered Thread: Setting up classic ASP sites on IIS 7.0

Last post 02-06-2007 4:48 AM by louib. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 02-05-2007, 8:19 AM

    • louib
    • Not Ranked
    • Joined on 02-05-2007, 5:58 AM
    • Posts 3

    Setting up classic ASP sites on IIS 7.0

    I have a number of ASP websites using access database which were created on XP Pro & IIS 6.0.

    I have upgraded to Windows Vista Business and the sites are no longer working when I browse to http://localhost/website/default.asp

    All sites use parent paths, I.e. c:/inetpub/wwwroot/website/db/database.mdb.

    Any help would be gratefully appreciated.

  • 02-05-2007, 12:52 PM In reply to

    • EWoersch
    • Top 50 Contributor
    • Joined on 05-23-2006, 8:19 PM
    • Redmond
    • Posts 113

    Re: Setting up classic ASP sites on IIS 7.0

    Did you go to the control panel and install the ASP module?   (CP > Programs & features > Turn on/off Windows Features> IIS > WWW Services > App Development Features) 

    To be as secure as possible, IIS7 ships locked down by default which means the majority of its 40+ components are not installed by default.

  • 02-05-2007, 6:26 PM In reply to

    • bills
    • Top 25 Contributor
    • Joined on 02-03-2006, 5:33 PM
    • Redmond, WA
    • Posts 433

    Re: Setting up classic ASP sites on IIS 7.0

    please post more information about what error you are getting.  thanks
    ~~~~~~~~~~~~~~~~~~~~~~~~
    Bill Staples
    Product Unit Manager, IIS
    blog: http://blogs.iis.net/bills
  • 02-06-2007, 4:48 AM In reply to

    • louib
    • Not Ranked
    • Joined on 02-05-2007, 5:58 AM
    • Posts 3

    Re: Setting up classic ASP sites on IIS 7.0

    Thank you for the reply. I have turned on ASP in the control panel.

    HTML pages will load OK, the standard <%=Response.Write("Hello World")%> will now display OK.

    I created a file in notepad and tried to save to the wwwroot directory and got the error message "You dont have permission to save in this location. Contact administrator to obtain permission. Would you like to save in the LouiB folder instead?"

    I saved in the LouiB folder OK, and then copy and paste to the required wwwroot folder without problems. 

    ASP give the following error message in the browser window if the asp page I browse to attempts to connect to a database using the traditional ADO connection:

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

    Having already run:

    \Windows\system32\inetsrv\appcmd.exe set config -section:system.webServer/asp -scriptErrorSentToBrowser:true

    Also checked Show Friendly Error messages to on or off via IE Tools I get the same message.

    I've checked the same code on an XP Pro IIS 6.0 machine and it connects OK.

    I'm using Vista business connnected to Win Sever 2003 domain.

    --I have updated the applicationHost.config to include settings loadUserProfile="false"  on the applicationPools DefaultAppPool 

    also changed permissions on folders:
    C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp
    C:\Inetpub\wwwroot\Website\db
    to add authenitcated users with write & modify permissions
    & add IUSR account with write & modify permissions

    which allows the ASP to connect to the database and insert records.

    I just need a way to update existing records as this doesn't work?

Page 1 of 1 (4 items)
Microsoft Communities