Solved

Visual C# OfficeOpenXml could not be found

Posted on 2011-09-21
1
3,979 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

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…
It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

707 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

17 Experts available now in Live!

Get 1:1 Help Now