Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > ASP.NET 4 General Discussion
|
ASP.NET 4 General Discussion For ASP.NET 4 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 4 General Discussion 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, 04:00 PM
Registered User
 
Join Date: May 2010
Posts: 9
Thanks: 3
Thanked 0 Times in 0 Posts
Default Can't target ASP.NET 4 in Visual Studio 2010 Pro

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.
__________________
Laurence W. Stewart
dalarry.com
dalarry.com/blog
"The technology of a sufficiently advanced civilization will be virtually indistinguishable from magic."
 
Old March 11th, 2011, 06:02 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

As I suggested in my other message, did you try reinstalling or reparing Visual Studio itself? If the app runs fine locally, I think the .NET Framework 4 is fine, but Visual Studio has some issues.

Also, can you post the exact error message you're getting in Visual Studio 2010?

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
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 12th, 2011)
 
Old March 11th, 2011, 02:20 PM
Registered User
 
Join Date: May 2010
Posts: 9
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Imar View Post
Hi there,

As I suggested in my other message, did you try reinstalling or reparing Visual Studio itself? If the app runs fine locally, I think the .NET Framework 4 is fine, but Visual Studio has some issues.

Also, can you post the exact error message you're getting in Visual Studio 2010?

Cheers,

Imar
Hi Imar:

I'd hoped to avoid that because my original VS2010 install was so long and arduous but I decided I had to. Last night I downloaded and ran the VS2010 uninstall utility which reported that it completed successfully. I then mounted the VS2010 install iso on a Virtual Drive and started the reinstall of VS2010 Pro about midnight. About 3:00am it looked to be about 85% through the install of the main program and about 1/3rd of the way through the list of programs to be installed. It was going so slowly that I went to bed. When I got up this morning about 9:00 am it was still at the same point. Task Manager said everything was still running but I killed it anyway, have rebooted and will try again.

My impression of working with Visual Studio/Microsoft web products as compared to Abobe web products is that I seem to spend most of my time diagnosing and fixing very esoteric problems. Obviously, there are lots of folks who work successfully with them. It just hasn't been my expeerience to date.

Thanx for your interest.
 
Old March 12th, 2011, 03:22 AM
Registered User
 
Join Date: May 2010
Posts: 9
Thanks: 3
Thanked 0 Times in 0 Posts
Default

It took several runs at it but I've got VS2010 uninstalled and reinstalled after a fashion and it seems to work for the most part. It seems to recognize ASP.NET 4 now but coughs up two very convoluted and strange errors which I will post in the Microsoft forums.

Thanx for your help. I'm really enjoying your book again. You really do have a gift for making complex subjects accessible and understandible.





Similar Threads
Thread Thread Starter Forum Replies Last Post
VS 2010 Pro can't target .NET 4.0 DaLarry BOOK: Beginning ASP.NET 4 : in C# and VB 1 March 10th, 2011 04:32 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
FTP in Visual Studio 2005 Pro (Visual Basic) shoopes VB How-To 1 June 29th, 2006 02:08 PM





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