IIs Won't Process ASP

M

Mark

Hi,

I'm a complete newbie to IIs and ASP (come from the Apache/Cold Fusion
world ). I've created a very simple ASP test page:

<%@ Language=VBScript %>

<% Response.Write "This is a test ASP page." %>

But when I access the page, it just displays the page as text, instead
of processing the ASP. I've looked at a half-dozen Microsoft KB
articles, but still no luck. I'm not getting an error, it's just not
processing.

Any ideas?

Thanks!
 
R

Roland Hall

:
: I'm a complete newbie to IIs and ASP (come from the Apache/Cold Fusion
: world ). I've created a very simple ASP test page:
:
: <%@ Language=VBScript %>
:
: <% Response.Write "This is a test ASP page." %>
:
: But when I access the page, it just displays the page as text, instead
: of processing the ASP. I've looked at a half-dozen Microsoft KB
: articles, but still no luck. I'm not getting an error, it's just not
: processing.

Area you running this on an IIS server with ASP support?

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
 
B

Barry G. Sumpter

I just started looking at IIS and ASP this morning as well.
There is NO "use ASP with IIS tick box" that I can locate.
The documentation as I understand it states that ASP comes with IIS.

I've spent about 4 hours so far on setting up and trying to sort out
a simple page to test with.

-----

<%@ LANGUAGE=VBScript %>

<html>

<body>

<% Response.Write "This is a test ASP page." %>

</body>

</html>

----

I've associated the .asp file extension with Internet explorer and simply
open the file.

IE just shows a blank page.

I've installed the script debugger and inserted a STOP.
The debugger fires and the code is visible.
But as soon as I type in ? Date <cr> the debugger freezes.

Does my .asp file have to be in a certain directory to get the ASP server to
work?

Any other constructive suggestions would be greatly appreciated.
 
2

[ + 2 0 r p 3 ]

Barry G. Sumpter said:
I just started looking at IIS and ASP this morning as well.
There is NO "use ASP with IIS tick box" that I can locate.
The documentation as I understand it states that ASP comes with IIS.

I've spent about 4 hours so far on setting up and trying to sort out
a simple page to test with.

-----

<%@ LANGUAGE=VBScript %>

<html>

<body>

<% Response.Write "This is a test ASP page." %>

</body>

</html>

you cant just associate asp files with internet explorer and get it too
work. you have to give your page an address.

ie

http://localhost/test.asp
 
B

Barry G. Sumpter

Ray at home
See if this is it. http://www.aspfaq.com/show.asp?id=2147
----

Yep that cleared up the simple example.
Thanks heaps

----

But, still getting stuck executing my .asp on the desktop.
(Fixed below)
----

[ + 2 0 r p 3 ] ,

you cant just associate asp files with internet explorer and get it too
work. you have to give your page an address.
ie: http://localhost/test.asp
----
Yep that did it.

Thanks champ....



I was obviously trying to outsmart myself.

Moved my .asp (database read and display) to C:\Inetpub\wwwroot.
Again attempted to just open it and did NOT work. Hung.

Cancelled.

Opened IE and typed in the addres as in your example
and now executes properly.

----

Thanks again gentlemen for the quick response and the 'spot on' solutions.


baz

-----------------------------------------------
 
B

Barry G. Sumpter

Nope:
Rebooted and its back to the original problem and these fixes don't work
anymore.

Not very confident about IIS and ASP stability.

Hope I havn't been wasiting my time of IIS and ASP.




Barry G. Sumpter said:
Ray at home
See if this is it. http://www.aspfaq.com/show.asp?id=2147
----

Yep that cleared up the simple example.
Thanks heaps

----

But, still getting stuck executing my .asp on the desktop.
(Fixed below)
----

[ + 2 0 r p 3 ] ,

you cant just associate asp files with internet explorer and get it too
work. you have to give your page an address.
ie: http://localhost/test.asp
----
Yep that did it.

Thanks champ....



I was obviously trying to outsmart myself.

Moved my .asp (database read and display) to C:\Inetpub\wwwroot.
Again attempted to just open it and did NOT work. Hung.

Cancelled.

Opened IE and typed in the addres as in your example
and now executes properly.

----

Thanks again gentlemen for the quick response and the 'spot on' solutions.


baz

-----------------------------------------------

Barry G. Sumpter said:
I just started looking at IIS and ASP this morning as well.
There is NO "use ASP with IIS tick box" that I can locate.
The documentation as I understand it states that ASP comes with IIS.

I've spent about 4 hours so far on setting up and trying to sort out
a simple page to test with.

-----

<%@ LANGUAGE=VBScript %>

<html>

<body>

<% Response.Write "This is a test ASP page." %>

</body>

</html>

----

I've associated the .asp file extension with Internet explorer and simply
open the file.

IE just shows a blank page.

I've installed the script debugger and inserted a STOP.
The debugger fires and the code is visible.
But as soon as I type in ? Date <cr> the debugger freezes.

Does my .asp file have to be in a certain directory to get the ASP
server
to
work?

Any other constructive suggestions would be greatly appreciated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,145
Messages
2,570,826
Members
47,371
Latest member
Brkaa

Latest Threads

Top