Re: Unable to generated QR Code when project is hosted on IIS 6

91 views
Skip to first unread message

Sean Owen

unread,
Jul 25, 2012, 5:40:22 AM7/25/12
to zx...@googlegroups.com
I don't see any evidence that it is related to the project. Something is wrong with your server-side code.

Kuldeep

unread,
Jul 25, 2012, 5:53:29 AM7/25/12
to zx...@googlegroups.com
I using the same code on server, can it be issue with IIS 6, as the same code is working perfectly on IIS7 

Deepak

unread,
Jul 25, 2012, 8:15:24 AM7/25/12
to zx...@googlegroups.com
I am getting the following error in IE, when running the same code on IIS6.
 
345A generic error occurred in GDI+.

Please help, need to fix this ASAP.

On Wednesday, 25 July 2012 14:04:31 UTC+5:30, Kuldeep wrote:
I am using zxing dll on my .net project, Locally everything is working fine, but when hosted the same site on IIS 6,QR Code is not getting generated.
Following is the piece on code i have written in my project in reference to zxing.dll

private void ProcessRequest(string url, string width, string height)
        {
            try
            {
                QRCode qrCode = new QRCode();
                var bmp = qrCode.CreateQRCode(url, width, height);
                Response.Clear();
                Response.ContentType = "image/png";
                Response.BufferOutput = true;
                bmp.Save(Response.OutputStream, ImageFormat.Png);
                
                Response.Flush();
            }
            catch (Exception ex)
            {
                Response.Write("Exception Details - " + ex.Message); 
            }
        }

 Please Note - It is working on IIS 7, Also you can find the error snapshot in attachments. 

Sean Owen

unread,
Jul 25, 2012, 9:44:04 AM7/25/12
to zx...@googlegroups.com
(This is nothing to do with the project -- follow up with each other directly or in another forum.)
Reply all
Reply to author
Forward
0 new messages