Wednesday, April 5, 2017

the type 'system Attribute' is defined in an assembly that is not referenced.You must add a reference to assembly 'system.runtime, version=4.0.0.0, culture=neutral, PublickKeyToken=b03f5f7f11d50a3a'



In this error message, {assembly} represents one of the actual files that is found in the "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\Facades" folder.

To resolve this problem, install the updated version of the Microsoft .NET Framework 4.5.2 Developer Pack. For download information


https://support.microsoft.com/en-us/help/2901951

During Installation if you get update windows option then update the windows it will resolve your problem.
 

C# print file on LAN Printer

If you want to print any file on network printer then you can try with this code block // Change Default Printer System.Ma...