none
Excel addin 不同版本运行问题 RRS feed

  • 问题

  • 我把一个Excel addin 2010的插件重新创建成Excel addin 2007的版本运行后,再运行2010的版本就报错了

    注册表中CurrentUser下面的Excel/Addins里面的记录删除了的,还是报错,哪里出问题了呢

    请各位高手帮忙解决 

    谢谢 

    错误内容:

     

    Could not load file or assembly 'xxx, Version=1.0.0.0, 

    Culture=neutral' or one of its dependencies. The given assembly name or 

    codebase was invalid. (Exception from HRESULT: 0x80131047)

     

    ************** Exception Text **************

    System.IO.FileLoadException: Could not load file or assembly 

     

    'xxx, Version=1.0.0.0, Culture=neutral' or one of its 

    dependencies. The given assembly name or codebase was invalid. (Exception 

    from HRESULT: 0x80131047)

    File name: 'xxx, Version=1.0.0.0, Culture=neutral'

       at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, 

    String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, 

    StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean 

    forIntrospection, Boolean suppressSecurityChecks)

       at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName

    (AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& 

    stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks)

       at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, 

    Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean 

    forIntrospection)

       at System.Reflection.Assembly.Load(String assemblyString)

       at Microsoft.VisualStudio.Tools.Office.Runtime.DomainCreator.ExecuteCustomization.CreateEntryPoint(String entryPointTypeName)

       at Microsoft.VisualStudio.Tools.Office.Runtime.DomainCreator.ExecuteCustomization.Microsoft.VisualStudio.Tools.Office.Runtime.Interop.IExecuteCustomization2.

    LoadEntryPoints(IntPtr serviceProvider)

     

    ************** Loaded Assemblies **************

    mscorlib

        Assembly Version: 4.0.0.0

        Win32 Version: 4.0.30319.235 (RTMGDR.030319-2300)

        CodeBase: 

     

    file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll

    ----------------------------------------

    Microsoft.VisualStudio.Tools.Office.Runtime

        Assembly Version: 10.0.0.0

        Win32 Version: 10.0.31117.0

        CodeBase: 

     

    file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.T

     

    ools.Office.Runtime/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.T

     

    ools.Office.Runtime.dll

    ----------------------------------------

    System.Core

        Assembly Version: 4.0.0.0

        Win32 Version: 4.0.30319.1 built by: RTMRel

        CodeBase: 

     

    file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.

     

    0__b77a5c561934e089/System.Core.dll

    ----------------------------------------

    System

        Assembly Version: 4.0.0.0

        Win32 Version: 4.0.30319.232 built by: RTMGDR

        CodeBase: 

     

    file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b

     

    77a5c561934e089/System.dll

    ----------------------------------------

    System.Configuration

        Assembly Version: 4.0.0.0

        Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)

        CodeBase: 

     

    file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v

     

    4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

    ----------------------------------------

    System.Xml

        Assembly Version: 4.0.0.0

        Win32 Version: 4.0.30319.1 built by: RTMRel

        CodeBase: 

     

    file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0

     

    __b77a5c561934e089/System.Xml.dll

    ----------------------------------------

    System.Security

        Assembly Version: 4.0.0.0

        Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)

        CodeBase: 

     

    file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Security/v4.0_4.

     

    0.0.0__b03f5f7f11d50a3a/System.Security.dll

    ----------------------------------------

    Microsoft.VisualStudio.Tools.Applications.Hosting

        Assembly Version: 10.0.0.0

        Win32 Version: 10.0.31117.0

        CodeBase: 

     

    file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.T

     

    ools.Applications.Hosting/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualSt

     

    udio.Tools.Applications.Hosting.dll

    ----------------------------------------

    Microsoft.VisualStudio.Tools.Applications.Runtime

        Assembly Version: 10.0.0.0

        Win32 Version: 10.0.31117.0

        CodeBase: 

     

    file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.T

     

    ools.Applications.Runtime/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualSt

     

    udio.Tools.Applications.Runtime.dll

    ----------------------------------------

    System.Deployment

        Assembly Version: 4.0.0.0

        Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)

        CodeBase: 

     

    file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Deployment/v4.

     

    0_4.0.0.0__b03f5f7f11d50a3a/System.Deployment.dll

    ----------------------------------------

    Microsoft.VisualStudio.Tools.Applications.ServerDocument

        Assembly Version: 10.0.0.0

        Win32 Version: 10.0.31117.0

        CodeBase: 

     

    file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.T

     

    ools.Applications.ServerDocument/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.

     

    VisualStudio.Tools.Applications.ServerDocument.dll

    ----------------------------------------

    System.Windows.Forms

        Assembly Version: 4.0.0.0

        Win32 Version: 4.0.30319.235 built by: RTMGDR

        CodeBase: 

     

    file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms

     

    /v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

    ----------------------------------------

    System.Drawing

        Assembly Version: 4.0.0.0

        Win32 Version: 4.0.30319.1 built by: RTMRel

        CodeBase: 

     

    file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.

     

    0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

    ----------------------------------------

    System.Xml.Linq

        Assembly Version: 4.0.0.0

        Win32 Version: 4.0.30319.1 built by: RTMRel

        CodeBase: 

     

    file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.

     

    0.0.0__b77a5c561934e089/System.Xml.Linq.dll

    ----------------------------------------

    Microsoft.Office.Tools

        Assembly Version: 10.0.0.0

        Win32 Version: 10.0.31117.0

        CodeBase: 

     

    file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.Office.Tools/v

     

    4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.Office.Tools.dll

    ----------------------------------------

    Microsoft.Office.Tools.Excel.Implementation

        Assembly Version: 10.0.0.0

        Win32 Version: 10.0.31117.0

        CodeBase: 

     

    file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.Office.Tools.E

     

    xcel.Implementation/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.Office.Tools.E

     

    xcel.Implementation.dll

    ----------------------------------------

    Microsoft.Office.Tools.Common.Implementation

        Assembly Version: 10.0.0.0

        Win32 Version: 10.0.31117.0

        CodeBase: 

     

    file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.Office.Tools.C

     

    ommon.Implementation/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.Office.To

     

    ols.Common.Implementation.dll

    ----------------------------------------

    Microsoft.Office.Tools.Common

        Assembly Version: 10.0.0.0

        Win32 Version: 10.0.31117.0

        CodeBase: 

     

    file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.Office.Tools.C

     

    ommon/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.Office.Tools.Common.dll

    ----------------------------------------

     

     

     


    • 已编辑 bluesnow_wanafly 2011年11月21日 8:23
    • 已移动 imkirin 2011年12月13日 21:10 移动至相应版块 (发件人:Microsoft office system)
    2011年11月21日 8:22

全部回复