Pages

Wednesday, November 13, 2013

The type or namespace name 'OfficeOpenXml' could not be found

Error Message:
The type or namespace name 'OfficeOpenXml' could not be found (are you missing a using directive or an assembly reference?)

You need to change your app config to use .NET Framework 4 not .NET Framework 4 (Client Profile).

Project - <Project> Properties - Application tab

Target Framework

As it turns out, EPPlus needs the System.Web namespace, which is not in the client profile.



...

Bryan Valencia is a contributing editor and founder of Visual Studio Journey.  He owns and operates Software Services, a web design and hosting company in Manteca, California.

Share This!

Contact Us

Name

Email *

Message *