【发布时间】: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 '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>
【问题讨论】:
-
您是否尝试读取 ActivityLog.xml 文件?
标签: c# asp.net-mvc visual-studio-2015