Cannot Run from LocalHost even a small .aspx file

D

DMP

Hi,
I have installed .NetFramework
I write following Code in NotePad and save in
*******
<html>
<body bgcolor="yellow">
<center>
<h2>Hello World!</h2>
</center>
</body>
</html>
***********

C:\InetPub\wwwroot\firstpage.aspx
But when i request from browser on http://localhost/firstpage/firstpage.aspx
why browser give "Page not found" message ?
What is wrong ?
 
D

DMP

Hi patrice,
Thanks for rapid response,
Sorry, I saved in C:\InetPub\wwwroot\firstpage\firstpage.aspx.
so when i click on http://localhost/firstpage/firstpage.aspx it will show
the code
insted of output page Like this:
- <html>
- <body bgcolor="yellow">
- <center>
<h2>Hello World! Test world</h2>
</center>
</body>
</html>
 
J

Juan T. Llibre

If that is happening ( the page shows the code ),
and you did install the .Net Framework, then
the .Net Framework is not properly registered.

Assuming you installed the .Net Framework 1.1, go to
drive:\WINDOWS\Microsoft.NET\Framework\v1.1.4322

and from the command-line, run

aspnet_regiis -i

That will re-register ASP.NET.
Test the page again after you do that.

If you installed any other version of the .Net Framework,
go to the appropiate version's directory and run the same command.
 
P

Patrice

I'm a bit confused now...

Do you see a "page not found error" (as you said in your first message) or
do you see the "code" instead of "HTML code" (which "code" are you talking
about ??).

In the IIS application configuration, check that ASPX files are associated
with the appropriate aspnet_isapi.dll... If this is not the case see the doc
for the aspnet_regiis utility.
 
D

DMP

Thanks everybody,
Solve my problem

Juan T. Llibre said:
If that is happening ( the page shows the code ),
and you did install the .Net Framework, then
the .Net Framework is not properly registered.

Assuming you installed the .Net Framework 1.1, go to
drive:\WINDOWS\Microsoft.NET\Framework\v1.1.4322

and from the command-line, run

aspnet_regiis -i

That will re-register ASP.NET.
Test the page again after you do that.

If you installed any other version of the .Net Framework,
go to the appropiate version's directory and run the same command.
 

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
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top