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=3.5.0.0, 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.
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]
B-) Please help me by completing my school survey about computer programmers on my website. Thank you!!! Gerry Lowry +1 705-429-7550 wasaga beach, ontario, canada
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.
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).
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.
cargowire
0 Points
3 Posts
Last Ditch: MVC Installation Issues
Jun 04, 2009 12:00 AM|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=3.5.0.0, 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
gerrylowry
All-Star
20515 Points
5713 Posts
Re: Last Ditch: MVC Installation Issues
Jun 04, 2009 05:57 AM|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]
Regards,
Gerry (Lowry)
References:
http://haacked.com/archive/2009/03/05/troubleshooting-installers.aspx
http://haacked.com/archive/2009/03/03/aspnetmvc-changes-for-rc2.aspx
http://forums.asp.net/p/1423139/3163091.aspx
http://forums.asp.net/t/1398843.aspx
http://forums.asp.net/p/1398714/3017831.aspx
http://forums.asp.net/t/1415432.aspx
cargowire
0 Points
3 Posts
Re: Last Ditch: MVC Installation Issues
Jun 04, 2009 07:36 PM|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.
cargowire
0 Points
3 Posts
Re: Last Ditch: MVC Installation Issues
Jun 04, 2009 08:40 PM|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).
i.e.
C:\Windows\Framework\v2.0.50727\ngen "C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Data.Entity.dll"
jeloff
Contributor
2493 Points
432 Posts
Microsoft
Re: Last Ditch: MVC Installation Issues
Jun 04, 2009 08:48 PM|LINK
Hi
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.
Jacques