Previous Next

Thread: Error on ASP Pages outside root & other questions

Last post 04-30-2008 12:31 PM by vichai007. 5 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (6 items)

Sort Posts:

  • 04-01-2008, 8:10 AM

    • deonholt
    • Not Ranked
    • Joined on 03-30-2008, 12:52 PM
    • Posts 7
    • deonholt

    Error on ASP Pages outside root & other questions

    Hi there.

    I have moved to Vista Ultimate from XP. Have SP1 installed.

    Question 1:
    Why is it that I get an error when trying to view pages that are not in my site's root folder. When viewing default.asp and all other files which are in my site's root, no problem. I get this 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.
    ----
    Question 2:
    Do I have to run CS3 as Administrator? If I don't do that, I get this pop-up box:
    Background File activity - mysite
    Background activity incomplete. 1 file(s) were not completed.
    When I click on Details, I see this:
    default.asp - error occured - An error occured - cannot put default.asp.
    Access denied.
    File activity incomplete. 1 file(s) were not completed.

    Why does this happen and how can I fix this.
    Question 3:
    Why does it happen that my IIS server stops to work sometimes?

     I will really appreciate your help.
    Regards,
    Deon

     

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

    Re: Error on ASP Pages outside root & other questions

    deonholt:
    Why is it that I get an error when trying to view pages that are not in my site's root folder. When viewing default.asp and all other files which are in my site's root, no problem.

    Do you mean in folders other than your web folders or folders below root, as in /root/folder1/default.asp?  If the former, this is by design.  Creat a virtual folder if you need to locate the files there.

    deonholt:
    Do I have to run CS3 as Administrator?

    That would be a question for Adobe, but yes.

    deonholt:
    Why does it happen that my IIS server stops to work sometimes?

    Look in the event log for clues.

    Jeff

    Look for Wrox's new book Professional IIS 7 in your local bookstore, or order now at Amazon.com
  • 04-28-2008, 6:30 PM In reply to

    • vichai007
    • Not Ranked
    • Joined on 04-28-2008, 6:25 PM
    • Posts 2
    • vichai007

    Re: Error on ASP Pages outside root & other questions

     Hi Jeff,

        I have the same issue on my newly setup IIS7.  I have a follow up question on your answer.

    Creat a virtual folder if you need to locate the files there. 

          What if there is a folder under wwwroot folder already with that name?  Do I have to move it out and create a virtual folder under the Default Web SIte and point it to the new location?  Any help is appreciated.

     -Vic

     

  • 04-28-2008, 8:10 PM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 10:27 AM
    • Princeton, NJ
    • Posts 3,214
    • IIS MVPs
    • tomkmvp

    Re: Error on ASP Pages outside root & other questions

  • 04-29-2008, 12:06 AM In reply to

    Re: Error on ASP Pages outside root & other questions

    Classic ASP doesn't send errors to the browser by default in IIS 7.  You can change this behavior in IIS Manager > Classic ASP > Debugging Properties > Sent Errors to Browser to true.  This should give you the error in the browse and provide direction how to fix the issue with vdirs outside the web root, which most of the time is permissions issues.

    Steve Schofield
    Windows Server MVP - IIS
    MCTS - Windows Hosting

    http://weblogs.asp.net/steveschofield
    http://www.appcmd.com
    http://www.orcsweb.com/
    Managed Hosting Solutions
    #1 in Service and Support
  • 04-30-2008, 12:31 PM In reply to

    • vichai007
    • Not Ranked
    • Joined on 04-28-2008, 6:25 PM
    • Posts 2
    • vichai007

    Re: Error on ASP Pages outside root & other questions

     I abandoned the IIS7 for now, and I migrated my site to IIS6 instead.  I made modification per instruction below (http://support.microsoft.com/kb/332117) and all .asp files under child folders work perfectly now.  I didn't have to create virtual directories either.  I could not find the same check box on IIS7.  Does anyone know where this setting is on IIS7?  I tried searching registry key without success.  Thanks.

    To resolve this problem without changing the application:

    1.

    Click Start, click Administrative Tools, and then click Internet Information Services (IIS) Manager.

    2.

    Double-click your computer name in the left pane, and then double-click Web Sites.

    3.

    Locate the Web site and directory that houses the ASP application.

    4.

    Right-click the application site or directory, and then click Properties.

    5.

    Select Home Directory, and then click Configuration.

    6.

    Click Options, and then click to select the Enable Parent Paths check box.

    7.

    Click OK two times.

     

     

    Tags:
Page 1 of 1 (6 items)
Page view counter