Visual Studio 2013 Premium解决方案在更新3之后加载错误



我安装了VS2013Update 3,现在我在打开解决方案时出现错误:

"Microsoft.VisualStudio.Web.Publish.WebPublishPackage MircosoftVisualStudio.Web。"发布"包未正确加载。

' scaffoldungvpackage '包没有正确加载。

这样做的结果是,我不能打开发布对话框,没有模板时,创建一个新的Webproject。

活动日志中有以下错误:

<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>

有谁知道如何解决这个问题吗?我已经试过了:

  • 重新安装VS2013
  • 重新安装更新3
  • 重新安装WindowsAzureSDK V2.4禁用扩展
  • 运行/devenv setup/devenv updatconfiguration
  • 删除Appdatafiles

谢谢!

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

解决方案是使用Developer命令提示符以管理员身份重置Contract和Publishing的程序集。如果您使用了默认安装设置,那么这可能是路径

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

gacutil -i "C:Program Files (x86)Microsoft VisualStudio 12.0Common7IDEExtensionsMicrosoftWeb ToolsPublishMicrosoft. visualstudio .Web. internal . contracts .dll"

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

我通过下载程序集并重新启动VS2013 update 5解决了这个问题

https://www.microsoft.com/en-us/download/details.aspx?id=43709

相关内容

  • 没有找到相关文章

最新更新