Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Visual C# OfficeOpenXml could not be found

Posted on 2011-09-21
1
Medium Priority
?
4,537 Views
Last Modified: 2013-12-17
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

0
Comment
Question by:Heidi_Lee
1 Comment
 
LVL 96

Accepted Solution

by:
Bob Learned earned 1000 total points
ID: 36577936
That might be referring to EPPlus.

Create advanced Excel 2007/2010 spreadsheets on the server
http://epplus.codeplex.com/
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

876 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question