This project has moved. For the latest updates, please go here.

Problem using EPPlus

Apr 28, 2013 at 12:27 PM
Hi everyone!!!

I need to mention that I´m using VS2010 net Framework 4, C# in a windows form project.
so... what´s the problem?
I add to my project a new project of classLibrary type (named: ExportLibrary.dll), and then I add the epplus dll to it (a reference). Then I create a static Class that use epplus, but when I try to use the static class (that belongs to ExportLibrary ) in another project(but in the same solution), a windows form project these 2 error appear:
  • Can not embed interop types from assembly 'd: \ proyecto(02-02-2013) New Version \ Components \ EPPlus.dll' because it has no attribute 'ImportedFromTypeLibAttribute' or the attribute 'PrimaryInteropAssemblyAttribute'.
  • Unable to find metadata file 'D: \ proyecto(02-02-2013) New Version \ MyProyect\ ExportLibrary \ bin \ Release \ ExportLibrary.dll'.
But I can´t find any solution. That´s why I´m asking for your help.
Thanks a lot.
  • I apologize because of my English isn´t good.
Apr 28, 2013 at 9:33 PM
Sorry... my mistake.

I create the library with net Framework 4, but the proyect where I try to use it was using Client profile. So, problem solved.