更新3后的Visual Studio 2013 premium解决方案加载错误

问题描述:

我安装VS2013Update 3,现在我得到打开一个解决方案时错误:

I installed VS2013Update 3 and now I get errors when opening an solution:

在'Microsoft.VisualStudio.Web.Publish.WebPublishPackage,MircosoftVisu​​alStudio.Web.Publish'包未正确加载。

The 'Microsoft.VisualStudio.Web.Publish.WebPublishPackage,MircosoftVisualStudio.Web.Publish' package did not load correctly.

在'ScaffoldungVSPackage'包未正确加载。

The 'ScaffoldungVSPackage' package did not load correctly.

这样做的结果是,我无法打开发布,对话,创造一个新的Webproject当没有模板。

The outcome of this is that I can't open the Publish-Dialog and there are no templates when creating a new Webproject.

在activitylog是以下错误:

In the activitylog are following errors:

<entry>
<record>447</record>
<time>2014/08/05 14:27:31.859</time>
<type>Error</type>
<source>VisualStudio</source>
<description>End package load [Microsoft.VisualStudio.Web.Publish.WebPublishPackage, Microsoft.VisualStudio.Web.Publish]</description>
<guid>{1AD387FC-B1E8-4023-91FE-F22260B661DB}</guid>
<hr>80131522</hr>
<errorinfo>Could not load type 'Microsoft.VisualStudio.Web.Internal.Contracts.Publish.IVsWebJobPublishService' from assembly 'Microsoft.VisualStudio.Web.Internal.Contracts, Version=2.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.</errorinfo>
</entry>

<entry>
<record>450</record>
<time>2014/08/05 14:31:20.199</time>
<type>Error</type>
<source>VisualStudio</source>
<description>SetSite failed for package [ScaffoldingVsPackage]</description>
<guid>{FAA496BF-FB16-4671-B3D5-E4B388A18478}</guid>
<hr>80131500</hr>
<errorinfo>Cannot cast the underlying exported value of type 'Microsoft.AspNet.Scaffolding.Templating.ScaffoldingAssemblyDirectiveProcessor (ContractName="Microsoft.AspNet.Scaffolding.IServiceRegistrar")' to type 'Microsoft.AspNet.Scaffolding.IServiceRegistrar'.</errorinfo>
</entry>
<entry>
<record>451</record>
<time>2014/08/05 14:31:20.199</time>
<type>Error</type>
<source>VisualStudio</source>
<description>End package load [ScaffoldingVsPackage]</description>
<guid>{FAA496BF-FB16-4671-B3D5-E4B388A18478}</guid>
<hr>80131500</hr>
<errorinfo>Cannot cast the underlying exported value of type 'Microsoft.AspNet.Scaffolding.Templating.ScaffoldingAssemblyDirectiveProcessor (ContractName="Microsoft.AspNet.Scaffolding.IServiceRegistrar")' to type 'Microsoft.AspNet.Scaffolding.IServiceRegistrar'.</errorinfo>
</entry>

有没有人一个想法如何解决这个问题?我已经尝试过:

Has anyone an idea how to resolve this issue? I already tried:


  • 重新安装VS2013

  • Reinstallung更新3

  • 重新安装WindowsAzureSDK V2.4

  • 禁用扩展

  • 运行/ devenv的设置/ devenv的updateconfiguration

  • 删除Appdatafiles

谢谢!

从asp.net的论坛下面的解决方案为我工作:

the following solution from the asp.net-forums worked for me:

解决办法是重新设置合同和发布使用开发人员命令提示符管理员的组件如果使用了默认安装设置那么这可能是路径

the solution was to reset the assemblies for Contract and Publishing using the Developer command prompt as Administrator If you have used the default installation setting then this is probably the path

GACUTIL -iC:\\ Program Files文件(x86)的\\微软的Visual Studio 12.0 \\ Common7 \\ IDE \\扩展\\微软\\网络工具\\发布\\ Microsoft.VisualStudio.Web.Publish.dll

gacutil -i "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\Web Tools\Publish\Microsoft.VisualStudio.Web.Publish.dll"

GACUTIL -iC:\\ Program Files文件(x86)的\\微软的Visual Studio 12.0 \\ Common7 \\ IDE \\扩展\\微软\\网络工具\\发布\\ Microsoft.VisualStudio.Web.Internal.Contracts.dll

gacutil -i "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\Web Tools\Publish\Microsoft.VisualStudio.Web.Internal.Contracts.dll"

这里是链接:
http://forums.asp.net/p/2000916/5751509.aspx?p=True&t=635430085558824221&pagenum=1