Visual Studio 2008 SP1“程序包加载失败”错误

时间:2023-01-13 01:31:02

I recently installed VS08 SP1 so that I could use the Entity Framework. However, upon loading projects with edmx files, I get a "Package Load Failure" error that points at "Microsoft.Data.Entity.Design.Package".

我最近安装了VS08 SP1,以便我可以使用实体框架。但是,在使用edmx文件加载项目时,出现“程序包加载失败”错误,指向“Microsoft.Data.Entity.Design.Package”。

Unfortunately, googling this turn up only problems dealing with installing SP1 over the Entity Framework CTP, which I have never installed.

不幸的是,谷歌搜索只会导致在实体框架CTP上安装SP1的问题,我从未安装过。

Here's what I've tried:

这是我尝试过的:

  • Uninstalling, reinstalling SP1, and restarting many times.
  • 卸载,重新安装SP1,并重启多次。

  • Using the Visual Studio 2008 Service Pack Preparation Tool both before and after installing SP1.
  • 在安装SP1之前和之后使用Visual Studio 2008 Service Pack准备工具。

  • Used the "Package Load Analyzer" from the Visual Studio SDK. The tests pass, but following the test the previously mentioned error displays.
  • 使用Visual Studio SDK中的“Package Load Analyzer”。测试通过,但在测试之后显示前面提到的错误。

Edit: Okay I ran VS with logging on and I see the error

编辑:好的,我登录后运行VS,我看到错误

Field not found: 'Microsoft.VisualStudio.Modeling.Shell.CommonModelingCommands.PrintPreview'.

2 个解决方案

#1


Hope this link will help you. It's a same kind of scenario.

希望这个链接能帮到你。这是一种相同的场景。

http://support.microsoft.com/kb/962353

http://www.thedatafarm.com/Blog/2007/09/03/EntityFrameworkToolsPackageLoadFailureWhenOpeningUpEDMXInDesignerFAQsAreComing.aspx

#2


My gut response to Package Load Failures, which doesn't always solve the problem, is to open a VS command prompt and run 'devenv /resetskippkgs' (without quotes). If you're on Vista+, you need to run the prompt elevated.

我对包装加载失败的直觉反应是打开VS命令提示符并运行'devenv / resetskippkgs'(不带引号)。如果您使用的是Vista +,则需要提升提示。

#1


Hope this link will help you. It's a same kind of scenario.

希望这个链接能帮到你。这是一种相同的场景。

http://support.microsoft.com/kb/962353

http://www.thedatafarm.com/Blog/2007/09/03/EntityFrameworkToolsPackageLoadFailureWhenOpeningUpEDMXInDesignerFAQsAreComing.aspx

#2


My gut response to Package Load Failures, which doesn't always solve the problem, is to open a VS command prompt and run 'devenv /resetskippkgs' (without quotes). If you're on Vista+, you need to run the prompt elevated.

我对包装加载失败的直觉反应是打开VS命令提示符并运行'devenv / resetskippkgs'(不带引号)。如果您使用的是Vista +,则需要提升提示。