Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 19th, 2007, 12:13 AM
Friend of Wrox
Points: 660, Level: 9
Points: 660, Level: 9 Points: 660, Level: 9 Points: 660, Level: 9
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2005
Location: St. Louis, , .
Posts: 101
Thanks: 0
Thanked 1 Time in 1 Post
Default IIS

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:

http://i67.photobucket.com/albums/h292/Athono/IIS.png

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:

http://i67.photobucket.com/albums/h2...ono/simple.png

Is there some sort of special routine I need to do for IIS?

(fixed broken URLs -planoie)
Reply With Quote
  #2 (permalink)  
Old December 19th, 2007, 02:03 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

If you install IIS after the .NET framework is installed, you need to re-run the ASP.NET "installation" part of the .NET installation. This associates the ASP.NET file types with the ASP.NET runtime.

You need to run the aspnet_regiis tool:
http://www.google.com/search?q=aspnet_regiis

-Peter
Reply With Quote
  #3 (permalink)  
Old December 19th, 2007, 03:53 PM
Friend of Wrox
Points: 660, Level: 9
Points: 660, Level: 9 Points: 660, Level: 9 Points: 660, Level: 9
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2005
Location: St. Louis, , .
Posts: 101
Thanks: 0
Thanked 1 Time in 1 Post
Default

Thanks. Now it works :)

On the command line, I went to

C:\WINDOWS\Microsoft.NET\Framework
and went to the directory of the latest version:

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727

and I typed

aspnet_regiis -i

the computer responded that it was installing ASP.NET

and now, my programs work.

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
iis 5 melkin Classic ASP Professional 8 July 22nd, 2008 11:43 AM
iis.msc equivalent in IIS for Win XP Pro? RealDHelix Classic ASP Basics 14 March 18th, 2007 08:28 PM
help on iis dutt.manu ASP.NET 1.0 and 1.1 Basics 1 February 15th, 2007 10:34 AM
CreateObject error on IIS 4 but not IIS 5 timtom Classic ASP XML 1 December 5th, 2003 01:26 PM



All times are GMT -4. The time now is 09:40 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.