0

Hi, everyone
I am new to asp.net and just installed asp.net in my computer(on windows xp pro sp1). but when i created a asp file and requested in a browser, it couldn't run properly. here is the code:
<html>
<body>
<h1> The date is <% Response.Write(DateTime.Now.ToLongDateString()) %>
</h1>
</body>
</html>

It only display the plain text "the date is" in the browser, but not the current time. (which means it didnt execute code). So frustrated :confused:

How can i fix this? Can someone please teach me, please? Thanks so much!!!!

3
Contributors
2
Replies
3
Views
12 Years
Discussion Span
Last Post by latinboy192001@
0

i think the IIS is not regiterted with asp.net..

just goto command prompt and run this C:\WINDOWS\Microsoft.NET\Framework\Ur Framework Version\aspnet_regiis.exe -i to register with iis

and then restart IIS and try to run it.. hope it will work now

0

Hey my friend, I see you have win xp pro with sp1. I had the same problem. and I just installed sp2 and it worked really nice. why don't you try to install sp2 then iis, the freamwork and finally asp.net
:mrgreen:

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.