aspx cannot show

  • Thread starter Thread starter Alan T
  • Start date Start date
A

Alan T

I got WinXP SP2, VS 2005 installed.

In my existing project that's with html only.
Now I created a aspx file with only
<html>
<body>

<%
response.write("Hello World!")
%>

</body>
</html>

When I display this page I got the error:
Server Application Unavailable.
The web application you are attempting to access on this web server is
currently unavailable. Pleas hit the "Refresh" button in your web browser to
retry your request."

If my aspx changed to asp, then it's fine.

Any idea?
 
Tat is because you are writing ASP inside your ASP.NET page, not ASP.NET

<script language="VB" runat=Server">
response.write("Hello World!")
</script>

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

********************************************
Think outside the box!
********************************************
 
Back
Top