Last Ditch: MVC Installation Issues

Last post 06-04-2009 4:48 PM by jeloff. 4 replies.

Sort Posts:

  • Last Ditch: MVC Installation Issues

    06-03-2009, 8:00 PM
    • Member
      point Member
    • cargowire
    • Member since 06-03-2009, 11:53 PM
    • Posts 3

    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

  • Re: Last Ditch: MVC Installation Issues

    06-04-2009, 1:57 AM
    • Contributor
      4,921 point Contributor
    • gerrylowry
    • Member since 07-03-2008, 1:46 AM
    • alliston ontario canada
    • Posts 1,915

    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  

    Gerry Lowry, Principal
    Ability Business Computer Services ~~ Because it's your Business, our Experience Counts!
    68 John W. Taylor Avenue
    Alliston · Ontario · Canada · L9R 0E1 · gerry.lowry@abilitybusinesscomputerservices.com

    Websites:
    http://abilitybusinesscomputerservices.com
    http://gerrylowryprogrammer.com ~~ résumé & testimonials
    http://veganoccasions.com ~~ recipes
  • Re: Last Ditch: MVC Installation Issues

    06-04-2009, 3:36 PM
    • Member
      point Member
    • cargowire
    • Member since 06-03-2009, 11:53 PM
    • Posts 3

    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.

  • Re: Last Ditch: MVC Installation Issues

    06-04-2009, 4:40 PM
    • Member
      point Member
    • cargowire
    • Member since 06-03-2009, 11:53 PM
    • Posts 3

    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"

     

  • Re: Last Ditch: MVC Installation Issues

    06-04-2009, 4:48 PM
    • Participant
      1,582 point Participant
    • jeloff
    • Member since 05-14-2008, 8:01 PM
    • Richmond, BC
    • Posts 317
    • AspNetTeam

    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 

Page 1 of 1 (5 items)