This blog has, IMO, some great resources. Unfortunately, some of those resources are becoming less relevant. I'm still blogging, learning tech and helping others...please find me at my new home on http://www.jameschambers.com/.

Monday, May 4, 2009

ASP.NET 2.0 Has Not Been Registered

I got an error on a clean-install machine today (Vista 64, .Net 1-3.5 installed, VS.NET 2008) that read:

ASP.NET 2.0 has not been registered on the Web server. You need to manually configure you Web server for ASP.NET 2.0 in order for your site to run correctly, Press F1 for more details.

Before I get to the fix, I like to poke fun where I can.  When I press F1, I get nothing.  The help tries to update itself, then just “encounters an error” and shows me the help file for migrating a VS.NET 2002 project to 2008.  Also, I think it should read, “configure your Web server”.  Web is capitalized? Comma instead of a period? hehehe…k. I’m done.

Anyways…it’s a simple configuration thing in Vista’s “Features”.  Open up Control Panel and go to Programs.  On the left-hand side of the window is a link for “Turn Windows Features On or Off”, which you click.  Drill in until you find Internet Information Services –> World Wide Web Services –> Application Development Features and then make sure the ASP.NET box is checked off (it will also likely light up a few other boxes for you too).

Thar ya be.  You should be good to go for building ASP.NET web sites and services on IIS7 in Vista.

If you’re still having trouble, I have run into a case previously where there was an issue using a UNC path (and the IIS user didn’t have perms on the target dir).  You will get an error like

The requested page cannot be accessed because the related configuration data for the page is invalid.

  There are also a couple of similar errors that can be resolved here: MSDN KB942055

8 comments:

  1. I didnt notice the options under "application development features". until I read your post! Thank you!

    ReplyDelete
  2. Perfect...thanks for the fix.

    KeelRisk

    ReplyDelete
  3. thanks a lot. a lot of settings must be tweaked if developing asp.net on vista for the first time
    admin
    techtricks.co.in

    ReplyDelete
  4. glad I could help. there have been incredible improvements in the experience with the web platform installer and roles/features paradigm they're using in Server 2008. this will only continue to get easier!

    ReplyDelete
  5. Thank you sir. I've installed visual web developer and had to enable this feature instead. Thank you.

    ReplyDelete
  6. Thank you. Good post!

    ReplyDelete