Reply
IIS not running ASP pages
Old 09-30-2007, 03:12 PM IIS not running ASP pages
Super Talker

Posts: 129
Hi, been away for quite a while, been concentrating on my photography now my website is up and running. However, I needed to change the value in a field on my database, so before submitting to web I chnaged it and tested locally through IIS. Let me start by saying that the field change is not the problem, it was simply increasing a numerical value from 20 to 25. A downloaded copy of the db running my website, in the state prior to changes being made, at the moment from the webhost creates exactly the same problem.

The problem? When I test my site in IIS any ASP page I select is showing only the code and not the page itself. I've tried restarting IIS but this has had no effect. Only html pages will run. The ASP pages on my website are displayed correctly when I surf them so it makes me think it's not a generalised browser (Firefox) problem, but exclusively IIS or a combination of browser/IIS.

Any help please?

Thanks, Lol
__________________
www.17minutes.co.uk - Street Photography
Lol999 is offline
Reply With Quote
View Public Profile Visit Lol999's homepage!
 
When You Register, These Ads Go Away!
     
Old 09-30-2007, 03:33 PM Re: IIS not running ASP pages
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,945
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
This is an IIS issue specifically (i.e. it doesn't have a thing to do with the browser).

First, make sure your permissions on the site are set to Read/Run Scripts (the latter is the key one).

Second, check Web Server Extensions and make sure that ASP is Allowed on your server.

One of the two of those (I suspect the former) will solve your problem.

Good question, though, dude...it actually requires thought to solve it.
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 09-30-2007, 03:49 PM Re: IIS not running ASP pages
Super Talker

Posts: 129
Thanks Adam, is this where I should be looking?

http://i31.photobucket.com/albums/c3...Lol/Image2.jpg

If so is everythging set okay?

Cheers, Lol


__________________
www.17minutes.co.uk - Street Photography
Lol999 is offline
Reply With Quote
View Public Profile Visit Lol999's homepage!
 
Old 09-30-2007, 04:26 PM Re: IIS not running ASP pages
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,945
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
That's the one spot, and everything looks okay on the service.

Now check under Web Service Extensions and see if ASP is explicitly set to "Allowed".
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 09-30-2007, 04:33 PM Re: IIS not running ASP pages
Super Talker

Posts: 129
Could you idiot talk me through that one please? I can pull up the IIS Manager but get a bit lost after that. I'm running XP Pro.

Thanks, Lol
__________________
www.17minutes.co.uk - Street Photography

Last edited by Lol999 : 09-30-2007 at 04:38 PM.
Lol999 is offline
Reply With Quote
View Public Profile Visit Lol999's homepage!
 
Old 09-30-2007, 04:43 PM Re: IIS not running ASP pages
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,945
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Okay...when you pull up IIS Manager, you should see three folders:

1) Application Pools
2) Web Sites (where you're looking now)
3) Web Service Extensions

Open up the Web Service Extensions folder, and you'll see a list of the service extensions (ASP.Net, ASP, PHP, etc.) that are allowed and not allowed.

You might have to add ASP to that list, if it's not there, but if it's there, just Allow it.
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 09-30-2007, 04:47 PM Re: IIS not running ASP pages
Super Talker

Posts: 129
Right, this is all I have I don't see some of what I should do!
__________________
www.17minutes.co.uk - Street Photography
Lol999 is offline
Reply With Quote
View Public Profile Visit Lol999's homepage!
 
Old 09-30-2007, 05:08 PM Re: IIS not running ASP pages
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,945
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Weird...your server is radically different from mine.

I don't know what to tell you from here on out, except possibly to right-click on "HOMELOL", click "Properties", then "MIME Types" and see that ASP is in there as a mime type (.asp is the extension, application/x-asp is the MIME type).

After that, I got nothing.
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 09-30-2007, 05:30 PM Re: IIS not running ASP pages
Super Talker

Posts: 129
No problem mate. Thanks for your help anyway.
__________________
www.17minutes.co.uk - Street Photography
Lol999 is offline
Reply With Quote
View Public Profile Visit Lol999's homepage!
 
Old 09-30-2007, 07:03 PM Re: IIS not running ASP pages
chrishirst's Avatar
Super Moderator

Posts: 11,861
Location: Blackpool. UK
IIS5 on Win2K pro.

On the Directory tab (as shown in post #3) click the Create button to set up and start the application.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-01-2007, 03:12 AM Re: IIS not running ASP pages
Super Talker

Posts: 129
Hi Chris, this is what I have after selecting "Create". Unfortunately the asp pages still don't run.I noticed the Starting Point is set to Default W... Is this pointing to a web address or on my IIS? Does it need changind and if so how?

Thanks, Lol



__________________
www.17minutes.co.uk - Street Photography
Lol999 is offline
Reply With Quote
View Public Profile Visit Lol999's homepage!
 
Old 10-01-2007, 05:15 PM Re: IIS not running ASP pages
Super Talker

Posts: 129
Hmm, seems I was not typing in the file path correctly in the Run dialogue box. Now I'm NOT opening the page as a file but as a webpage I get the following screen, but have no idea on how to correct it:
__________________
www.17minutes.co.uk - Street Photography
Lol999 is offline
Reply With Quote
View Public Profile Visit Lol999's homepage!
 
Old 10-01-2007, 06:21 PM Re: IIS not running ASP pages
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,945
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
The good news is that it's executing ASP code. The bad news is that you have a script error.

It looks like the database is either opened up offline or that you haven't got permissions on the folder itself.
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 10-02-2007, 05:56 AM Re: IIS not running ASP pages
Super Talker

Posts: 129
Hi Adam, it looks to be a permissions thing, although why this should have changed I can't imagine. Whereabouts do I alter this please?

Thanks, Lol
__________________
www.17minutes.co.uk - Street Photography
Lol999 is offline
Reply With Quote
View Public Profile Visit Lol999's homepage!
 
Old 10-02-2007, 12:22 PM Re: IIS not running ASP pages
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,945
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Check the "Write" box in that second screen cap.
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 10-02-2007, 01:11 PM Re: IIS not running ASP pages
Super Talker

Posts: 129
Hi Adam, I've checked "write" but it's still the same. In operation the database isn't written to, only read from if my understanding is correct. It is used to hold file paths to iumages for a db driven "slideshow" so no actual writing to is necessary?

Thanks, Lol
__________________
www.17minutes.co.uk - Street Photography
Lol999 is offline
Reply With Quote
View Public Profile Visit Lol999's homepage!
 
Old 10-02-2007, 03:50 PM Re: IIS not running ASP pages
Learning Newbie's Avatar
Moderator

Latest Blog Post:
What Does This Look Like?
Posts: 4,713
Name: John Alexander
Is it a Access database? If so you need write or full control over the folder it lives in. Every time you open a mdb file (even in code) it creates a ldb file, then deletes this when the last user closes out.
__________________
4 ways to improve the lives of the "bottom billion"

"HEY YOU KIDS GET OFF MY LAWN!" -John McCain
Learning Newbie is online now
Reply With Quote
View Public Profile
 
Old 10-02-2007, 05:43 PM Re: IIS not running ASP pages
Super Talker

Posts: 129
Yeah it's Access and I've crossed swords with rogue .ldb files before. I've done a full system search for .ldb files and found none. I've set full permissions on the folder with the database in and still nothing. I give in. Thanks everyone for all their help.

Cheers, Lol
__________________
www.17minutes.co.uk - Street Photography
Lol999 is offline
Reply With Quote
View Public Profile Visit Lol999's homepage!