Last post Jun 04, 2009 08:48 PM by jeloff
Jun 04, 2009 12:00 AM|cargowire|LINK
I'm finding it really difficult to get MVC1.0 to install.. tried repairing/reinstalling VS, 3.5 SP1, uninstalling as many extraneous things as poss but currently being faced with this error in the logs every time I attempt to install:
ExecNetFx: Error compiling System.Data.Entity, Version=220.127.116.11, Culture=neutral, PublicKeyToken=b77a5c561934e089: Could not find or load a type. (Exception from HRESULT: 0x80131522)
Ran ngen ExecuteQueuedItems and ngen Update to no avail.
Had no trouble on my laptop but cannot get past this on my PC.
Apologies for clogging the forum with an installation related post, maybe its something simple but I can't seem to find assistance that fixes it anywhere.
Thanks in advance
asp.net mvc installation errors ngen
Jun 04, 2009 05:57 AM|gerrylowry|LINK
You do not mention whether you have VS2008 or VWD. You can have either or both. They should be at SP1; VWD will not even work without minimum of SP1 (i.e., current service pack level June/2009). .NET Framework must be 3.5; that you have. You should have
no addins until after ASP.NET MVC v1.0 is installed.
Worst case scenario: you may have to rebuild your system. I had to face that because of a random bug.
If you do have to rebuild, follow this procedure after backing up anything you do not want to lose:
(1) install Windows
(2) update Windows until there are no more updates
(3) install VS2008 and/or VWD 2008.
(4) update VS2008 and/or VWD 2008 to SP1
(5) install ASP.NET MVC v1.0
(6) build the default ASP.NET MVC application before you do anything else.
(7) add back any VS addins you have [repeat step (6) after each addin]
Jun 04, 2009 07:36 PM|cargowire|LINK
My Apologies. I am running VS2008 Standard (service packed up) with SQL2005 Express and SQL2008 Express also installed, as well as .NET 3.5 SP1. I also had a beta version of MVC installed that I removed using 'Programs and Features' seemingly successfully.
I don't get why MVC seems to be causing these problems I've never known a small install require a complete system rebuild. It's utterly frustrating.
Jun 04, 2009 08:40 PM|cargowire|LINK
Finally got it to work in the most annoying way possible (in terms of being annoyed at myself). Simply had to directly ngen the System.Data.Entity.dll (C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5).
C:\Windows\Framework\v2.0.50727\ngen "C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Data.Entity.dll"
Jun 04, 2009 08:48 PM|jeloff|LINK
I'm sorry to hear about all the trouble you had getting MVC installed, but I'm glad that you managed. In the Beta we only added support to the installer to GAC the assemblies, but starting with the RCs we began to create native images as well.
ngen failures can be nasty. When the MVC installer runs it automatically performs an ngen update and compiles any assembly that might be deemed to be out of date. Any failure during the ngen process is reported back and the installation will initiate a rollback.