【问题标题】:Error when previewing MVC views in Visual Studio 2015在 Visual Studio 2015 中预览 MVC 视图时出错
【发布时间】:2016-03-15 21:59:52
【问题描述】:

当我在 Visual Studio 2015 中预览我的一个 MVC 视图的代码时,我收到一个错误弹出窗口。

它说

“Microsoft 数据转换服务设计器”包没有 正确加载。

问题可能是由配置更改或安装另一个扩展程序引起的。您可以通过以下方式获取更多信息 查看ActivityLog.xml

我已尝试重新安装 Visual Studio,这没有任何区别。我还尝试查看不同的 MVC 项目,它们都显示此错误。

任何人都有解决此错误的想法。我的项目构建良好,因此我可以忽略它,但如果可能的话,我不希望这样做。

更新

这是ActivityLog.xml的内容

<type>Error</type>
    <source>VisualStudio</source>
    <description>CreateInstance failed for package [Microsoft Data Transformation Services Designer][Could not load file or assembly &apos;Microsoft.DataTransformationServices.VsIntegration&apos; or one of its dependencies. The system cannot find the file specified.]:{   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Activator.CreateInstance(String assemblyString, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark&amp; stackMark)&#x000D;&#x000A;   at System.Activator.CreateInstance(String assemblyName, String typeName)&#x000D;&#x000A;   at System.AppDomain.CreateInstance(String assemblyName, String typeName)}</description>

【问题讨论】:

标签: c# asp.net-mvc visual-studio-2015


【解决方案1】:

也许这有助于重置VS,从以下文件夹中删除内容:

C:\Users{用户}\AppData\Local\Microsoft\VisualStudio

C:\Users{用户}\AppData\Local\Microsoft\VSCommon

有时候,你需要去:

[x64] C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE

[x86] C:\Program Files\Microsoft Visual Studio 14.0\Common7\IDE

然后运行devenv /resetuserdata

预计您的所有用户设置(例如 Visual Studio 布局、链接的 Microsoft 帐户或起始页)都会消失。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-01-22
    • 2017-09-09
    • 1970-01-01
    • 2015-01-27
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多