Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

aspx extension in iis 5.0

Status
Not open for further replies.

gorgor

Programmer
Aug 15, 2002
164
0
0
US
This may be the wrong forum, but perhaps someone can help me out. I'm running win2k wil IIS 5.0. I have .NET framework 1.1 installed with ASP.NET. I copied over a sample file from the ebook by Prosise called calc.aspx to my directory and tried to run it from The page displays but the code does not execute. All I see on my web page is a plus sign (+) and nothing else. Here is the source:

<html>
<body>
<form runat="server">
<asp:TextBox ID="op1" RunAt="server" />
+
<asp:TextBox ID="op2" RunAt="server" />
<asp:Button Text=" = " OnClick="OnAdd" RunAt="server" />
<asp:Label ID="Sum" RunAt="server" />
</form>
</body>
</html>

<script language="C#" runat="server">
void OnAdd (Object sender, EventArgs e)
{
int a = Convert.ToInt32 (op1.Text);
int b = Convert.ToInt32 (op2.Text);
Sum.Text = (a + b).ToString ();
}
</script>

I went to Internet Services Manager for my default website and added the .aspx extension in IIS's application mappings and pointed it to "C:\WINNT\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll". The aspx script still does not 'execute'. This should be straight forward but it just doesn't seem to be working.

Any help would be greatly appreciated.
Thanks in advance.
 
You might want to try running the aspnet_regiis /i utility (if you have not done so already). The above shiznit looks like it should work fine.

... And yes, this is the wrong forum for this - In future, use the ASP.NET forum for this kinda stuff :)

-----------------------------------------------
&quot;The night sky over the planet Krikkit is the least interesting sight in the entire universe.&quot;
-Hitch Hiker's Guide To The Galaxy
 
Thank you much. aspnet_regiis /i worked like a charm!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top