How to resolve Asp.net Assembly references problem

Error:

The type ‘System.IO.Packaging.Package’ is defined in an assembly that is not referenced. You must add a reference to assembly ‘WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’

Simple Solution:

just right click , reference in  solution of the project and search for the “windowbase” , like the below snagit

windowsbase

then click add.

 

Thats it, Now build the solution and get rid of the error.

Hope it was useful, kindly share your thoughts or feedbacks

Thanks

karthik

2,638 total views, 4 views today

3 Comments

  1. Yuribashi

    Using VS2015, I’m getting the following error and adding the reference as detailed above does not seem to be working. Any other suggestions would be greatly appreciated.

    CODE:
    using (WordprocessingDocument myDoc = WordprocessingDocument.Open(outDocX, true))

    ERROR:
    The type ‘Package’ is defined in an assembly that is not referenced. You must add a reference to assembly ‘System.IO.Packaging, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f300afd708cefcd3’.

Leave a Reply

Your email address will not be published. Required fields are marked *