更新 3 后 Visual Studio 2013 Premium 解决方案加载错误 [英] Visual Studio 2013 Premium solution load errors after Update 3

查看:26
本文介绍了更新 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,MircosoftVisualStudio.Web.Publish"包未正确加载.

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

'ScaffoldungVSPackage' 包没有正确加载.

The 'ScaffoldungVSPackage' package did not load correctly.

这样做的结果是我无法打开发布对话框,并且在创建新的 Web 项目时没有模板.

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

活动日志中有以下错误:

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
  • 重新安装更新 3
  • 重新安装 WindowsAzureSDK V2.4
  • 禁用扩展
  • 运行/devenv setup/devenv updateconfiguration
  • 删除应用程序数据文件

谢谢!

推荐答案

来自 asp.net-forums 的以下解决方案对我有用:

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 -i "C:Program Files (x86)Microsoft Visual Studio 12.0Common7IDEExtensionsMicrosoftWeb ToolsPublishMicrosoft.VisualStudio.Web.Publish.dll"

gacutil -i "C:Program Files (x86)Microsoft Visual Studio 12.0Common7IDEExtensionsMicrosoftWeb ToolsPublishMicrosoft.VisualStudio.Web.Publish.dll"

gacutil -iC:Program Files (x86)Microsoft Visual Studio 12.0Common7IDEExtensionsMicrosoftWeb ToolsPublishMicrosoft.VisualStudio.Web.Internal.Contracts.dll"

gacutil -i "C:Program Files (x86)Microsoft Visual Studio 12.0Common7IDEExtensionsMicrosoftWeb ToolsPublishMicrosoft.VisualStudio.Web.Internal.Contracts.dll"

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

这篇关于更新 3 后 Visual Studio 2013 Premium 解决方案加载错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆