I hav created an ASP and saved it in the wwwroot folder under the inetpub folder. But when i try to open it in the browser by specifying the path as "http://localhost/xyz.asp", i get the error "IE cannot open the page". Whats the problem?

Visit the page using Firefox web browser and you should see a report about what is in error and the line number.

its a simple page to display hello world. theres no error in the code which is.....

<html>
<body>
<%
="Hello World!"
%>
</body>
</html>

Try it like this...

<html>
<body>
<%
response.write"Hello World!"
%>
</body>
</html>

i tried even this also but the prob persists.

First try adding this code for the first line (must always be the first line)...

<%@ Language=VBScript %>

Then check that your page is named with the .ASP extension. Then if it still doesn't run then perhaps IIS and ASP has not been enabled for your site, in which case you can web search for help in:

- installing IIS for Personal Web Server
- enabling ASP for IIS

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.