Wrox Programmer Forums
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB 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
Old March 10th, 2011, 01:35 AM
Registered User
Join Date: May 2010
Posts: 9
Thanks: 3
Thanked 0 Times in 0 Posts
Default VS 2010 Pro can't target .NET 4.0

I'm not getting any help on the Microsoft forums so I thought I'd try here. I was working my way through "Beginning ASP.NET 4 in C# and VB" until last October when I was hospitalized. I've since started back up but have run into a problem. I am running VS2010 Pro on Win 7 Pro. Now, when I attempt to open and work on an application (nopCommerce v1.90) designed to run on ASP.NET 4. I get an error that says my "project is targeting ASP.NET 4.0 which is not installed on this machine." ASP.NET 4 is installed and I have confirmed it with the Setup verifier. I have used the Setup Verifier to check that all versions of ASP.NET from 2.0 to 4.0 are installed correctly on my machine. The error code also prompts me to install .NET 4 via the Web Platform Installer. If I select that option I eventually get a choice to "Repair" or "Remove" ASP.NET 4. I selected "Repair" which completes successfully but changes nothing. The reason I am reluctant to select "Remove" is that when I run the application on "localhost" it works fine. I also have webmatrix and lightswitch installed on this machine. I'm not sure what to do next. Is there some configuration file that tells VS2010 that .NET 4 is installed? Any suggestions will be greatly appreciated.
Old March 10th, 2011, 04:32 AM
Imar's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts

Hi there,

Since this is not related to my book directly, you're better off posting messages like these in a more general ASP.NET 4 category here: http://p2p.wrox.com/asp-net-4-539/ Makes it easier for others to find what they are looking for, and will attract more viewers for you.

Anyway, did you try reinstalling VS 2010?

Imar Spaanjaars
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
The Following User Says Thank You to Imar For This Useful Post:
DaLarry (March 10th, 2011)

Similar Threads
Thread Thread Starter Forum Replies Last Post
what is the new feature in .Net 2010 sbglobal C# 4.0 aka C# 2010 General Discussion 0 August 30th, 2010 06:30 AM
Ajax - System.Web.Extensions, .NET target version needs to be 3.5 shirk99 BOOK: Professional DotNetNuke Module Programming ISBN: 978-0-470-17116-5 5 April 27th, 2010 10:37 AM
Visual Studio 2010 in Focus at Great Indian Developer Summit 2010 shaguf5575 ASP.NET 1.x and 2.0 Application Design 0 February 24th, 2010 07:03 AM
Visual Studio 2010 in Focus at Great Indian Developer Summit 2010 shaguf5575 ASP.NET 1.x and 2.0 Application Design 0 February 24th, 2010 07:02 AM

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