2011-01-31 76 views
1

我試圖運行我們創建的Excel 2007 VSTO 3.0插件。但是自從安裝了ION交易市場指數的Excel插件我們的外接似乎不再正確地加載和失敗,出現以下錯誤:CannotCreateCustomizationDomainException:無法加載自定義,因爲無法創建應用程序域

Microsoft.VisualStudio.Tools.Applications.Runtime.CannotCreateCustomizationDomainException: Customization could not be loaded because the application domain could not be created. ---> System.IO.FileLoadException: Loading this assembly would produce a different grant set from other instances. (Exception from HRESULT: 0x80131401)

at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck) at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache) at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache) at System.Activator.CreateInstance(Type type, Boolean nonPublic) at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) at System.Activator.CreateInstance(String assemblyName, 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) at System.AppDomain.CreateInstanceAndUnwrap(String assemblyName, String typeName) at System.AppDomain.CreateInstanceAndUnwrap(String assemblyName, String typeName) at Microsoft.VisualStudio.Tools.Office.Runtime.DomainCreator.LoadMafPipeline(AppDomain newDomain, IntPtr hostServiceProvider, AddInInformation info, EntryPoints requestedEntryPoints, OfficeApp officeApplication, OfficeVersion officeVersion, IntPtr& executor) at Microsoft.VisualStudio.Tools.Office.Runtime.DomainCreator.CreateCustomizationDomainInternal(String solutionLocation, String manifestName, String documentName, Boolean showUIDuringDeployment, IntPtr hostServiceProvider, IntPtr& executor) --- End of inner exception stack trace ---

沒有人有任何想法可能是什麼造成的?任何指示我如何進一步調查?

感謝, 湯姆

回答

1

這裏有一些提示,你可能會發現關於網絡,以解決此問題:

  1. 重新安裝VSTOR

  2. 禁止其他加載項

  3. Install framework 3.5 sp1

  4. 在運行Visual Studio工具Office解決方案公司的病毒軟件的

  5. 修改/禁用自定義規則,阻斷創建「卷影副本在.NET Framework能力的計算機上的安全配置210

  6. 修正錯誤'版本的vsto .dll。

  7. 打開.NET可編程性支持http://sqlblog.com/blogs/davide_mauri/archive/2010/07/30/powerpivot-not-visibile-in-excel.aspx

  8. Move the entire solution to .NET 4.0

+0

移動到4.0解決了這個問題...現在我必須淘汰的depricated互操作調用:-) – 2011-10-06 07:06:03