当我在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 'Microsoft.DataTransformationServices.VsIntegration' 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& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
 at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
 at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
 at System.Activator.CreateInstance(String assemblyString, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark& stackMark)
 at System.Activator.CreateInstance(String assemblyName, String typeName)
 at System.AppDomain.CreateInstance(String assemblyName, String typeName)}</description>
答案 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帐户或启动页面消失。