Solved

Visual C# OfficeOpenXml could not be found

Posted on 2011-09-21
1
4,033 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 250 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Flash (http://en.wikipedia.org/wiki/Adobe_Flash) has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…
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…
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

932 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now