我刚刚安装了 VS 2013 Update 3,现在打开解决方案时出现错误:
The 'Microsoft.VisualStudio.Web.Publish.WebPublishPackage,MircosoftVisualStudio.Web.Publish'
package did not load correctly.
And
The 'ScaffoldungVSPackage'
包未正确加载。
在活动日志中显示以下错误:
<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>
到目前为止尝试过:
有谁知道如何解决这个问题?我已经尝试过:
Thanks.
我有同样的问题。我首先尝试修复 Visual Studio 的 Update 3 安装。我提到它是因为它可能有一点帮助,我不确定。
I then opened my Azure solution. Right clicked on the cloud project and selected Properties. In the first tab (Application) there was a message that my solution was using Microsoft Azure Tools version 2.3
and I had the option to change it to version 2.4. After I switched to newer version, I restarted Visual Studio and it didn't show me error message anymore.
我必须做的另一件事是将启动项目切换到 Cloud 项目,因为更新后它以某种方式更改为我的 MVC 项目。
还有一件事 - Windows Azure SDK v2.4 删除了我所有的存储表,所以你可能会遇到同样的问题。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)