Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP showing as text

Status
Not open for further replies.

penguinspeaks

Technical User
Nov 13, 2002
234
US
I have enabled IIS, checked to see if ASP and everything else was running, all are running.

Yesterday, I could display a simple "hello world" test page and it checked out fine. Today when i run any ASP page, it shows me the text of the ASP script on the page.

For example when I display index_test.asp it shows

<code>
<% var1= "hello world" %> <% =var1 %>
</code> Instead od just showing hello world.
Anything I have within the <% %> brackets shows up on the web page as text. Of course asp code should not show on a web page at all.

So basically, it is recognizing and showing the asp page with zero errors, but basically all of my code is showing up on the page.

I am using the format. I have tried to use the in place of localhost and I get the same result. Any ideas?

THanks

Bam
 
The ASP interpreter is not running so the document is not being parsed for code segments.

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum
 
Where is this turned on in IIS 7.5? As I stated, it was running fine two days ago, then went rouge yesterday without any changes taking place.

Thank you very much for your reply.
 
Check it is installed correctly.

Control Panel -> Programs -> Windows Features -> Internet Information Services -> - > Application Development Features -> ASP

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum
 
yes, asp is checked as well as .net. All permissions are set correctly as well.

As I said, it is weird because without any changes, it stopped working literally over night. This is one of those times when i wish I still had a copy of XP. I never had these issues using IIS with that.

Bam
 
Have a look at the application mappings;


It may well be that one of the MS updates has removed or changed these. It shouldn't happen but I manage a Windows 2008 server that occasionally, after an update, removes the IUSR_SiteUserName permissions from the files for one or two client websites, rarely, is it the same sites on two occasions, but seems to be completely random which one(s) it chooses for this "special treatment".

Fortunately (for us) many of our clients are steadily moving away from ASP and ASP.NET to PHP, due in no small part, to the higher costs of having sites developed using M$ technologies.





Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top