Go Back   CodingForums.com > :: Server side development > ASP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-09-2005, 02:07 PM   PM User | #1
techno_monkey
New to the CF scene

 
Join Date: Jan 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
techno_monkey is an unknown quantity at this point
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
techno_monkey is offline   Reply With Quote
Old 01-09-2005, 07:55 PM   PM User | #2
jaywhy13
Regular Coder

 
Join Date: Dec 2004
Location: Jamaica
Posts: 592
Thanks: 2
Thanked 0 Times in 0 Posts
jaywhy13 is an unknown quantity at this point
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
jaywhy13 is offline   Reply With Quote
Old 01-09-2005, 08:53 PM   PM User | #3
techno_monkey
New to the CF scene

 
Join Date: Jan 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
techno_monkey is an unknown quantity at this point
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
techno_monkey is offline   Reply With Quote
Old 01-09-2005, 09:03 PM   PM User | #4
jaywhy13
Regular Coder

 
Join Date: Dec 2004
Location: Jamaica
Posts: 592
Thanks: 2
Thanked 0 Times in 0 Posts
jaywhy13 is an unknown quantity at this point
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..
jaywhy13 is offline   Reply With Quote
Old 01-11-2005, 01:55 PM   PM User | #5
ghell
Senior Coder

 
Join Date: Apr 2003
Location: England
Posts: 1,192
Thanks: 5
Thanked 13 Times in 13 Posts
ghell is on a distinguished road
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)
__________________
My tech/code blog
ghell is offline   Reply With Quote
Old 01-11-2005, 02:06 PM   PM User | #6
glenngv
Supreme Master coder!


 
glenngv's Avatar
 
Join Date: Jun 2002
Location: Los Angeles, CA Original Location: Philippines
Posts: 10,241
Thanks: 0
Thanked 112 Times in 111 Posts
glenngv will become famous soon enough
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.
__________________
Glenn
_____________________________________________
Play Tower of Hanoi Android app (Ad-FREE!)
Play Tower of Hanoi Android app (FREE!)
Go to Tower of Hanoi Leaderboard
Play Tower of Hanoi Facebook app
glenngv is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:03 AM.


Advertisement
Log in to turn off these ads.