With System.Drawing.Common the type initializer for Gdip threw an exception.
Creating an API which should send a QR code (base64 encoded string) as a response. I tried using ZXing and System.Drawing.common libraries to generate QR code and then return it in byte[] so that can be converted in base64 string to send as a response in .net API.