在Visual Studio 2015中预览MVC视图时出错

时间:2016-03-15 11:34:12

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

当我在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>

1 个答案:

答案 0 :(得分:0)

这可能有助于重置VS,删除以下文件夹中的内容:

C:\用户{用户} \应用程序数据\本地\微软\ VisualStudio的

C:\用户{用户} \应用程序数据\本地\微软\ 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帐户或启动页面消失。