How to overcome System.IO.Packaging.Package error while working with OpenXML SDK
Hi,
Okay this error will occur when you try to work with OpenXML SDK 2. Now You are added OpenXML dll and added OpenXML related to namespaces to the class...and you are good to build the solution. when you press the Build (F5) Button, Visual studio shows you a crazy error. and most of you try to add System.IO namespace to the solution or calss to overcome this. To be honest in first time I also tried. he he heeeee. but that's not the solution for this error.
When you are working with OpenXML namespace this is a very common error and It's not a very complex error. you can fix this problem very easily. so what you have to do is go to project's reference area in the solution explorer and right click to add a new reference then in the reference browser dialog select and add WindowsBase.dll in Framework Assemblies Tab.
Okay that's all. press Build (F5) Button again. if you did other things correctly (joking) It'll build smoothly. Have a nice day folks.
When you are working with OpenXML namespace this is a very common error and It's not a very complex error. you can fix this problem very easily. so what you have to do is go to project's reference area in the solution explorer and right click to add a new reference then in the reference browser dialog select and add WindowsBase.dll in Framework Assemblies Tab.
Okay that's all. press Build (F5) Button again. if you did other things correctly (joking) It'll build smoothly. Have a nice day folks.
Comments
Post a Comment