Dismiss Notice

Psst... Ready to join TalkBass and start posting, make new friends, sell your gear, and more?  Register your free account in 30 seconds.

ASP->IIS

Discussion in 'Off Topic [BG]' started by Turock, Sep 27, 2002.


  1. Turock

    Turock Supporting Member

    Apr 30, 2000
    Melnibone
    I have written several programs that I know work, I can put them on the server at the college and they run. On IIS (Windows 2000 pro) at home, I can get the directory to come up and I can display the HTML page; however, the program will not bring up the ASP portion. When I click the submit button I get:
    "The page cannot be displayed"

    I would really like to do this at home instead of having to go to the college every time to test and tweak my programs. Thanks in advance.
     
  2. wulf

    wulf

    Apr 11, 2002
    Oxford, UK
    Are you running a webserver on your home machine and accessing the pages as:

    http://mycomputername/xyz.asp

    rather than:

    c:\inetpub\wwwroot\xyz.asp

    If you want the code in the .asp processed you have to call it via the webserver rather than the filesystem.

    Wulf
     
  3. Turock

    Turock Supporting Member

    Apr 30, 2000
    Melnibone
    I am trying to access it with:
    http://localhost/ASP
    It brings up the directory and I can display and select my HTML page, but the program will not call my ASP. The program works fine at school. Could there be something I need to download or install to have the code in the .asp processed? Thanks.
     
  4. wulf

    wulf

    Apr 11, 2002
    Oxford, UK
    It certainly sounds like your webserver is running to some extent. I'm used to IIS / PWS (Internet Information Explorer / Personal Web Server) on Win98 (home) and NT4 (work) so I'll wait a bit and see if a Win2000 Pro expert cares to jump in (if not, you might be best searching out a forum devoted to the topic - try www.asp101.com or www.4guysfromrolla.com for links).

    One thing to look for is what the address bar of your browser says when you click on the .html and .asp pages. Does it change to:

    http://localhost/ASP/mypage.html

    or change to

    c:\inetpub\wwwroot\ASP\mypage.html

    If it's the latter, you're probably using Internet Explorer and falling victim to how closely it integrates with the file system.

    Wulf
     
  5. You did configure your IIS so that you are allowed to execute programs in the directory, right ? ;)
     
  6. Turock

    Turock Supporting Member

    Apr 30, 2000
    Melnibone
    Yes, I believe I did. I checked the "Execute (including scripts) box.
     
  7. did you forget the <% %> tabs ?

    what does the logfile say ?
     
  8. Turock

    Turock Supporting Member

    Apr 30, 2000
    Melnibone
    I don't see any tabs or logfile. Where are they located?
     
  9. i mean the asp tabs..

    < %

    and

    % >

    the logfile is defined in the IIS settings.