Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > BOOK: Professional ASP.NET MVC 2
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional ASP.NET MVC 2
This is the forum to discuss the Wrox book Professional ASP.NET MVC 2 by Jon Galloway, Scott Hanselman, Phil Haack, Scott Guthrie, Rob Conery; ISBN: Professional ASP.NET MVC 2
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ASP.NET MVC 2 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #11 (permalink)  
Old May 5th, 2011, 04:42 PM
Friend of Wrox
Points: 539, Level: 8
Points: 539, Level: 8 Points: 539, Level: 8 Points: 539, Level: 8
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2010
Location: Seattle
Posts: 106
Thanks: 1
Thanked 17 Times in 17 Posts
Default

Under References folder. See if you have System.Data.Entity. (you should) It should be v4.0.30319

If you don't, add the reference.
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\ System.Data.Entity.dll
Reply With Quote
  #12 (permalink)  
Old May 5th, 2011, 07:23 PM
Registered User
 
Join Date: May 2011
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Okay. This is making some more sense now. Here is what I have found...

I checked my System.Data.Entity reference but it is actually at 3.5.0.0. It's located at

C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Data.En tity.dll.

So I tried to navigate to the directory you mentioned but I only have 3.0 and 3.5!!

Which led me to believe that I had a bad install. I went ahead and reinstalled and also used a .net setup verification tool found here...

http://cid-27e6a35d1a492af7.skydrive.live.com/self.aspx/Blog|_Tools/netfx|_setupverifier|_new.zip

and everything checks out!

So I went ahead and checked out the directory that I mentioned I had seen before made me think I had 4.0 to see if I could find that .dll, which is...

C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319

one exists and when hovered over with the cursor, gives me the version number of 4.030319. I added this one as a reference to see what would happened and there is a yellow exclamation point which appears next to the reference in VS. When I check the properties, it gives version 0.0.0. The compiler also gives lots more errors.

So what can I do to get a valid 4.0 directory with all the files I need (System.Data.Entity.dll) in my C:\Program Files\Reference Assemblies\Microsoft\Framework folder???

Thanks again.
Reply With Quote
  #13 (permalink)  
Old May 5th, 2011, 08:33 PM
Friend of Wrox
Points: 539, Level: 8
Points: 539, Level: 8 Points: 539, Level: 8 Points: 539, Level: 8
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2010
Location: Seattle
Posts: 106
Thanks: 1
Thanked 17 Times in 17 Posts
Default

I wonder if older dll is stuck in cache. Google for "gacutil"
Reply With Quote
  #14 (permalink)  
Old May 5th, 2011, 09:11 PM
Registered User
 
Join Date: May 2011
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I've located the gacutil.exe for VS 2008.

C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin

What exactly do I with it??
Reply With Quote
  #15 (permalink)  
Old May 5th, 2011, 10:24 PM
Friend of Wrox
Points: 539, Level: 8
Points: 539, Level: 8 Points: 539, Level: 8 Points: 539, Level: 8
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2010
Location: Seattle
Posts: 106
Thanks: 1
Thanked 17 Times in 17 Posts
Default

Sorry trying to type with phone. From command prompt type

Gacutil /cdl

Then try to build again
Reply With Quote
  #16 (permalink)  
Old May 5th, 2011, 11:09 PM
Registered User
 
Join Date: May 2011
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

OK. It ran the GAC Utility which is under 3.5 it looks like.

It says the Download cache was deleted successfully. Rebuilt my solution and nothing happens.

Is there something else I need to do?
Reply With Quote
  #17 (permalink)  
Old May 5th, 2011, 11:35 PM
Friend of Wrox
Points: 539, Level: 8
Points: 539, Level: 8 Points: 539, Level: 8 Points: 539, Level: 8
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2010
Location: Seattle
Posts: 106
Thanks: 1
Thanked 17 Times in 17 Posts
Default

So nothing meaning that there is no improvement? And errors still there when compiling?
Reply With Quote
  #18 (permalink)  
Old May 5th, 2011, 11:41 PM
Registered User
 
Join Date: May 2011
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Oh, sorry.

Yes. Still the same error.
Reply With Quote
  #19 (permalink)  
Old May 6th, 2011, 09:09 AM
Friend of Wrox
Points: 539, Level: 8
Points: 539, Level: 8 Points: 539, Level: 8 Points: 539, Level: 8
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2010
Location: Seattle
Posts: 106
Thanks: 1
Thanked 17 Times in 17 Posts
Default

Check the Target framework of the project.

Right click on the project
select properties
select Application tab
Look at Target framework. What version do you see?
Reply With Quote
  #20 (permalink)  
Old May 6th, 2011, 10:26 AM
Registered User
 
Join Date: May 2011
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It's under 3.5.

4.0 is not even an available option in the drop down list!
Reply With Quote
Reply


Thread Tools
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
PDF giving first page as blank if page count > 1 using xsl:fo srmxslca XSLT 14 May 5th, 2011 05:01 AM
Page 210:Page object calling a private method from BasePage? aperture8 BOOK: Beginning ASP.NET 4 : in C# and VB 6 August 9th, 2010 07:04 AM
Stuck At Page 140 Yap Dreamweaver (all versions) 2 October 12th, 2004 06:49 PM



All times are GMT -4. The time now is 11:21 AM.


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