Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ASP.Net Code Not Firing

0 views
Skip to first unread message

MDW

unread,
Apr 23, 2008, 10:30:01 AM4/23/08
to
I just enabled IIS on my computer but apparently my configuration isn't quite
right. I have the following code below in a "test.aspx" file, but when I
bring it up in my browser, I get a blank page.

I've already granted the "ASPNET" user Admin rights on this computer and
used that as the default account for anonymous access. I'm probably missing
something basic but I can't for the life of me figure out.

Here's the code that doesn't seem to be firing:

<% @Page Language="VB" Debug="True" %>

<html>

<head>

<title>ASP.Net Test Site</title>

</head>

<body>

<%


Response.Write("<p>Test</p>")


%>

</body>

</html>


--
Hmm...they have the Internet on COMPUTERS now!

Juan T. Llibre

unread,
Apr 23, 2008, 10:38:56 AM4/23/08
to
re:
!> I just enabled IIS on my computer but apparently my configuration isn't quite right.

Which OS are you running ?

re:


> <body>
> <%
> Response.Write("<p>Test</p>")
> %>
> </body>

That is ASP code, not ASP.NET code.

Try something like this :
<body>
<form id="test" runat="server">
<div>
<asp:label id="name" runat="server" />Label Test<br/>
</div>
</form>
</body>

That will tell you if ASP.NET code is being processed.
If it is being processed, a label with the text "Label Test" will be displayed.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"MDW" <M...@discussions.microsoft.com> wrote in message news:5E9D094C-EB3E-49B2...@microsoft.com...

Madhur

unread,
Apr 23, 2008, 10:56:41 AM4/23/08
to
Its not just IIS, you also need ASP setup on this machine.

--
Madhur

"Juan T. Llibre" <nomail...@nowhere.com> wrote in message
news:OSZhE$UpIHA...@TK2MSFTNGP04.phx.gbl...

MDW

unread,
Apr 23, 2008, 11:27:00 AM4/23/08
to
Yes, that's what the problem was, more or less.

Found the speicifc solution at:
http://support.microsoft.com/default.aspx?scid=kb;en-us;325093

--
Hmm...they have the Internet on COMPUTERS now!

Juan T. Llibre

unread,
Apr 23, 2008, 2:10:51 PM4/23/08
to
re:
!> Its not just IIS, you also need ASP setup on this machine.

I'm well aware of that, but the OS type is needed
in order to be able to recommend courses of action.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================

"Madhur" <s...@df.com> wrote in message news:0FBA2CE4-A5B9-4EC2...@microsoft.com...

0 new messages