Link to home
Start Free TrialLog in
Avatar of Heidi_Lee
Heidi_Lee

asked on

Visual C# OfficeOpenXml could not be found

I got a setup file and source codes for a program.
The program created by the setup file runs fine.

But there are errors when using VS2010 to run the source codes, refer below.

What is the likely cause for the error,  do I need to install Open Office or get a dll?


Error	1	The type or namespace name 'OfficeOpenXml' could not be found (are you missing a using directive or an assembly reference?)	C:\Documents and Settings\User\Desktop\position monitoring\position monitoring\Source code\PositionMonitoring (2008)\PositionMonitoring (2008)\arrows\frmMain.cs	11	7	PositionMonitoring
Error	2	The type or namespace name 'OfficeOpenXml' could not be found (are you missing a using directive or an assembly reference?)	C:\Documents and Settings\User\Desktop\position monitoring\position monitoring\Source code\PositionMonitoring (2008)\PositionMonitoring (2008)\arrows\frmExcelExport.cs	13	7	PositionMonitoring
Error	3	The type or namespace name 'OfficeOpenXml' could not be found (are you missing a using directive or an assembly reference?)	C:\Documents and Settings\User\Desktop\position monitoring\position monitoring\Source code\PositionMonitoring (2008)\PositionMonitoring (2008)\arrows\frmExcelExport.cs	14	7	PositionMonitoring
Error	4	The type or namespace name 'OfficeOpenXml' could not be found (are you missing a using directive or an assembly reference?)	C:\Documents and Settings\User\Desktop\position monitoring\position monitoring\Source code\PositionMonitoring (2008)\PositionMonitoring (2008)\arrows\frmExcelExport.cs	15	7	PositionMonitoring
Warning	5	The primary reference "EPPlus, Version=2.7.0.1, Culture=neutral, PublicKeyToken=ea159fdaa78159a1, processorArchitecture=MSIL" could not be resolved because it has an indirect dependency on the framework assembly "WindowsBase, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v2.0". To resolve this problem, either remove the reference "EPPlus, Version=2.7.0.1, Culture=neutral, PublicKeyToken=ea159fdaa78159a1, processorArchitecture=MSIL" or retarget your application to a framework version which contains "WindowsBase, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35".	PositionMonitoring

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial