Entity Framework Tools CTP : Package Load Failure Workaround
A few people have run into a Package Load Failure error after installing the Entity Framework Tools. As a workaround to this issue, please follow the below instructions:
Issue
Visual Studio displays a Package Load Failure error message for Package 'Microsoft.Data.Entity.Design.Package.MicrosoftDataEntityDesignPackage’ when you double-click on a .edmx file
Workaround
This issue is caused by earlier installations of the Entity Framework June CTP.
1. If it is installed, uninstall the ADO.NET Entity Framework Tools CTP from “Add/Remove Programs” in control panel
2. Use gacutil.exe to verify that the following DLLs are not in the GAC.
a. Microsoft.Data.Entity.Design.dll
b. Microsoft.Data.Entity.Design.EntityDesigner.dll
c. Microsoft.Data.Entity.Design.Package.dll
d. Microsoft.Data.Tools.XmlDesignerBase.dll
3. Use Regedit.exe to check for and remove the CodeBase value from the registry at:
a. HKEY_LOCAL_MACHINESOFTWAREMicrosoftVisualStudio9.0Packages{8889E051-B7F9-4781-BB33-2A36A9BDB3A5}
4. Reinstall the the ADO.NET Entity Framework Tools CTP
Comments
Anonymous
September 16, 2007
Tried this and it is still not working... anything else to try? Thanks.Anonymous
September 18, 2007
I've tried this but no joy. The Package Load error only started happening (I think) after inadvertently installing Astoria (I didn't realised it didn't work with Entity Beta 2). I tried uninstalling everying - VS2008 Beta 2, Entity Beta2, and Astoria, then installing VS2008 Beta2 and Entity Beta2 (but no Astoria). Same problem. I've tried the steps above, but after uninstalling Entity Beta 2 none of those assemblies were in the GAC, and the registry key listed above was not there either. Any more suggestions? Would really like to get started playing with the Entity Framework Beta 2...Anonymous
September 18, 2007
I finally got it working... To do this I uninstalled VS2008 Beta 2, Beta 1 (if you didn't already uninstall), VS2005, Entity Framework and Tools, and all the other extras that get installed by VS. After everything was uninstalled, I deleted the reg key specified above. I reinstalled 2008 and Entity Framework. All is good now (but it took hours!). There must be an easier way, but until then, you may try this. It may have been caused by VS2005.Anonymous
September 18, 2007
Hey Nicholas - that really sounds like overkill to me! I'm puzzled as to how it could be related to VS2005, but after running through the workaround steps I might be left with no option than to follow your steps listed above...Anonymous
September 18, 2007
I tried uninstalling Astoria CTP 2 and Entity Framework 2, then went to the .NET Framework 2.0 Configuration. I found that the Microsoft.Data.Entity.Design.dll was still there - even though I had tried removing it with gacutil which said it wasn't there. After I removed it then reinstalled, everything appears to be working ok now.Anonymous
October 23, 2007
Hello, guys! Successfully installed Tools.. a few questions:
- Entity Model Browser works strange for me: it only shows general model as picture and gives me no ability to expand/collapse model tree nodes.
- Is there any ability to update edmx files if data base schema was changed? I don't want to regenerate whole mappings.. i just want an ability of partial mapping updates.
- Anonymous
November 12, 2007
Hello, Toolkit doesn't work on my Orcas Beta2 under Windows Longhorn CR1 x86. Wizard closes automatically when i try to create new connection to my DB.