Quantcast
Channel: General
Viewing all articles
Browse latest Browse all 7363

exception error of add an Excel add-in ribbon in a web application from VS2010 debug mode on win7

$
0
0

I have published a web service (built in VS2010, .NET 4.0) successfully in my desktop with IIS7.5 win 7 from my laptop.

The C# solution is composed of

    MyApp.Host , MyApp.Excel, MyApp.WCF, MyApp.Web, MyAppSetup

Now, I need to run the C# code in VS2010 in debug mode.
I have installed VS2010 tools for office runtime. When my application is opened, it will add a tab (an add-in) in Excel 2010. I have copied
      
     MyApp.Excel.dll
     MyApp.Excel.dll.config
     MyApp.Excel.dll.manifest
     MyApp.Excel.vsto
     MyApp.Excel.xlsx
     Microsoft.Office.Tools.Common.dll
     Microsoft.Office.Tools.Common.v4.0.Utilities.dll
     Microsoft.Office.Tools.dll
     Microsoft.Office.Tools.Excel.dll
     Microsoft.Office.Tools.Excel.v4.0.Utilities.dll
     Microsoft.Office.Tools.v4.0.Framework.dll
     Microsoft.VisualStudio.Tools.Applications.Runtime.dll
     Microsoft.VisualStudio.Tools.Applications.Runtime.v9.0.dll
     Microsoft.VisualStudio.Tools.Applications.ServerDocument.v10.0.dll     

to the folder un my C# solution

    MyApp.Host\bin\debug\

because these files were published to my desktop.
 
But, I still got error

      ************* Exception Text **************
      System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
      at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
      at System.Reflection.RuntimeModule.GetTypes()
      at System.Reflection.Assembly.GetTypes()
      at Microsoft.Office.Tools.Excel.WorkbookImpl.CreateRibbonObjects()
      at Microsoft.Office.Tools.Excel.WorkbookImpl.WorkbookExtensionImpl.Microsoft.Office Tools.Excel.IWorkbookExtension.CreateRibbonObjects()  at Microsoft.Office.Tools.Excel.WorkbookImpl.GetRibbonObjects()

Do I miss some tools or libs here ?



Viewing all articles
Browse latest Browse all 7363

Latest Images

Trending Articles



Latest Images