Programmer's Corner Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Programmer's Corner - Forums


setting up IIS for ASP.NET

 
Post new topic   Reply to topic    Programmer's Corner Forum Index -> ASP and ASP.NET
Author Message
complete
Ronin


Joined: 12 Apr 2007
Posts: 27

PostPosted: Tue Dec 18, 2007 11:15 pm    Post subject: setting up IIS for ASP.NET Reply with quote

Just when I thought things were going smoothly, I decided to install some ASP.NET sample code. The installation gave me an error saying that I needed to install the latest version of IIS.

So went into the control panel to add IIS like this:



But now, something strange is happening. It is almost as if I have taken one step forward and two steps backwards. Even the most simple ASP.NET program (one I generate without modifying any code at all) produces this in the browser window when I build it and run it:




Is there some sort of special routine I need to do for IIS?
Back to top
aschenta
*narf*


Joined: 07 May 2003
Posts: 542
Location: Windsor Ontario Canada

PostPosted: Wed Dec 19, 2007 8:00 am    Post subject: Reply with quote

run "aspnet_regiis.exe - i" from the .net framework folder. You have to enable it for use in IIS.

example:

CD "c:\Windows\Microsoft.NET\Framework\v2.0.50727"

aspnet_regiis.exe -i

Replace that with the appropriate location of the appropriate framework version.

Within IIS itself if you are registering .NET 2.0 or above you may get an ASP.NET tab in the website properties. Make sure the correct .NET version is selected.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Programmer's Corner Forum Index -> ASP and ASP.NET All times are GMT - 5 Hours
Page 1 of 1

 


Powered by phpBB © 2001, 2002 phpBB Group