 |
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
|
|
|
|
|

September 22nd, 2011, 10:04 PM
|
|
Registered User
|
|
Join Date: Sep 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Ch.14 .NETFramework error
In Chapter 14, the first Try It Out exercise shows how to add a new .edmx file to the App_Code folder. I right clicked the App_Code folder and attempted to add a new ADO.NET Entity Data Model. I received the following error: "Could not resolve mscorlib for target framework '.NETFramework,Version=v4.0'. This can happen if the target framework is not installed or if the framework moniker is incorrectly formatted."
I downloaded VWD in Aug 11 on a new computer with Windows 7. I have since uninstalled and re-installed VWD twice and still get the same error. In the site property pages under the 'Build' tab, the target framework selected is .NET Framework 4. Under installed programs I have 'Microsoft .NET 4 Framework Client Profile', 'Microsoft .NET Framework 4 Extended', and 'Microsoft .NET Framework 4 Multi-Targeting Pack' all are version 4.0.30319.
Please advise. Thank you.
|
|

September 23rd, 2011, 05:40 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi there,
I haven't run into this issue myself, but others have, and it's been reported here: http://connect.microsoft.com/VisualS...etails/542789/ along with some work arounds. Maybe that helps? Otherwise, try searching for the exact error message and you'll find similar cases: http://www.google.com/#sclient=psy&h...n%3Dv4.0%27%22
Hope this helps,
Imar
|
|

September 27th, 2011, 09:45 AM
|
|
Registered User
|
|
Join Date: Sep 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Imar,
Thank you for pointing me to those sites. I have been further directed to other sites to get the issue resolved. Once resolved I will post here in case anyone else could use it.
Mark
|
|

October 3rd, 2011, 01:34 PM
|
|
Registered User
|
|
Join Date: Sep 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Ch.14 .NETFramework error
Imar,
After trying several options and uninstalling and re-installing VWD several times, I re-installed Windows on the computer and the error has gone away.
Thanks,
Mark
|
|

October 3rd, 2011, 02:11 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi Mark,
Serious measures,but with a good result fortunately ;-) Thanks for the heads up.
Cheers,
Imar
|
|

February 23rd, 2013, 12:24 PM
|
|
Registered User
|
|
Join Date: Sep 2012
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Ch.14 .NETFramework error, update
Having the same problem as many others. I couldn't chose Target framework = .NET framework 4 in the Solution Explorer\Properties, only .NET framework 3.5 or earlier versions. After installing dotnetfx40_full_x86_x64 with .NET framework version 4.03 it still wasn't possible to select Target Framework = .NET framework 4.0
I've installed dotNetFx45_Full_setup and after the installation it is possible to select Target framework = .NET framework 2.0;3.0;3.5;4;4 Update1(KB2478063);4.0.3
After selecting Target framework = .NET framework 4 , TIO from page 481 works fine.
|
|

February 25th, 2013, 10:23 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
That's really weird. Which version of Visual Studio are you running? VS 2010 should come with .NET 4....
Imar
|
|

February 25th, 2013, 02:05 PM
|
|
Registered User
|
|
Join Date: Sep 2012
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Visual Studio 10. (system: Windows7 pro, 64bits)
with regards, Gerrie
|
|

February 25th, 2013, 02:06 PM
|
|
Registered User
|
|
Join Date: Sep 2012
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Sorry 2010
|
|
 |
|