Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6

Thread: ASP Help!!!

  1. #1
    New to the CF scene
    Join Date
    Jan 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Angry ASP Help!!!

    Hi there

    I am having a problem with asp pages on my machine. I am running Win XP Pro with SP2.

    When trying to run a page with a .asp extension, both IE and FireFox display a box asking if i would like to download the file, it doesn't seem to recognise it as a page, but rather a document.

    I must admit the last time I played with asp was over a year ago but both myself and others cannot see what could be wrong with the way it has been set up.

    My first reaction is that the problem has something to do with the upgrade in SP2, however I doubt this would effect FireFox?

    Any ideas on how I can run these pages properly without this problem?

    Thanks alot for your help in advance!
    Darren

  • #2
    Regular Coder
    Join Date
    Dec 2004
    Location
    Jamaica
    Posts
    592
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Nothing wrong with IE or Firefox... u need IIS

    I hope I am understanding your question correctly.... I'm thinking that the problem that you are having is that when u try to open a asp page that is stored on your hard drive you are prompted to download the page.

    If this is the case then nothing is wrong with your browsers, or ur Operating System and there is a simple reason why your browser prompts you to download the page. Your browser supports HTML display.... when u are connected to the internet and you request an .asp file... the server the file is on... runs the asp code and returns the page in pure html. So when u try to run the file locally you will be prompted to download it because you need a server to run the code and return it as HTML to the browser.

    IIS (Internet Information Services) is a local server that can do that for you (designed by microsoft, comes with xP) You need only to go to add remove programs -> add windows components and install it! You will need the xP cd

  • #3
    New to the CF scene
    Join Date
    Jan 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thanks for the response

    Thanks for the quick response, however to my knowledge the virtual directory set up through IIS is wokring properly.

    It is most likely that I have set up the virtul directory incorrectly as your answer seems pretty logical! However I don't seem to be able to fix it through IIS.

    I have also send the web pages to a friend who is very technicaly competant, and he had the same problem as me.

    Never the less, Thanks for your reply and I will look into it!

    Darren

  • #4
    Regular Coder
    Join Date
    Dec 2004
    Location
    Jamaica
    Posts
    592
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Thumbs up Ur welcome!

    Ur most welcome.... just remeber that any pages or site that you run should be put in a folder under "c:\inetpub\wwwroot\"

    say c:\inetpub\wwwroot\site1\

    and the server is run as http://localhost/site1/somefile.html

    Good luck with that

    Oh for what its worth, I had a similar problem.... read this post
    Last edited by jaywhy13; 01-09-2005 at 09:06 PM.

  • #5
    Senior Coder
    Join Date
    Apr 2003
    Location
    England
    Posts
    1,192
    Thanks
    5
    Thanked 13 Times in 13 Posts
    it sounds like you are trying to run the file by just opening it in your browser instead of going to http://127.0.0.1/ (localhost)

    i think this is what jaywhy13 is getting at, i havnt had much experience with virtual directories but if you can find the file (or it wudnt ask u to download it ) you should be able to find the virtual dir

    i think (but im prob wrong) that if you set a virtual directory to go to a difference place on your machine, ie \site1\ goes to c:\site1\ instead of c:\inetpub\wwwroot\site1\ you can still access this from http://localhost/site1/

    virtual directories confuse me so i dont use them, although i probably should if it means i can separate the ftp accounts on my server so that people cant FSO eachother (no1 has in the last 2 years so shhhh)

  • #6
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,037
    Thanks
    0
    Thanked 250 Times in 246 Posts
    It could be that the Application Mapping for .asp extensions are deleted. Go to the Default Web Site property dialog box, Home Directory tab, click [Configuration...] button and then in the App Mappings tab, see if there is an entry for the .asp extension. If none, then you have to create one by clicking [Add] button. Specify the .asp extension and path of the asp.dll which is usually in C:\WINNT\System32\inetsrv\ then click [OK] and then restart IIS.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •