A generic error occurred in GDI+ in ASPOSE.BarCode

Last post 04-07-2009, 12:02 AM by saqib.razzaq. 8 replies.
Sort Posts: Previous Next
  •  03-25-2009, 9:50 AM 171473

    A generic error occurred in GDI+ in ASPOSE.BarCode .NET

    I got the error "A generic error occurred in GDI+. " when I run my code on the production server, but it works fine when run on development server in generating the barcode and then save.

    I am sending u the sample code for the analysis, please help if u can.

    I am using ASPOSE.Total product.

    BarCodeBuilder b = new BarCodeBuilder();

    b.SymbologyType = Aspose.BarCode.Symbology.Code39Standard;

    b.CodeText = BarcodeText;

    b.Save(Server.MapPath("~/Module/Reports/Temp/Barcode.jpg"), System.Drawing.Imaging.ImageFormat.Jpeg);

    b.Dispose();

    I got the error on the red line.

    Munendra Maheshwari

    Filed under: aspose.barcode
     
  •  03-26-2009, 4:10 AM 171629 in reply to 171473

    Re: A generic error occurred in GDI+ in ASPOSE.BarCode .NET

    Hi Munendra,

    Thanks for considering Aspose.

    Could you please mention the details of the development and production environment e.g. Operating System and .NET version. Please also mention if you are using 32 or 64-bit Windows in development/production system.

    I would like to test the same code in a similar environment for reproducing the issue and finding some solution to the problem.

    Best Regards,
    Saqib Razzaq
    Support Developer, Aspose Sialkot Team
    http://www.aspose.com
    Your File Format Experts
     
  •  03-26-2009, 9:24 AM 171711 in reply to 171629

    Re: A generic error occurred in GDI+ in ASPOSE.BarCode

    OS - Microsoft Windows Server 2003 standard x64 Edition (Service Pack 2)

    IIS 6.0

    64 bit

    DotNet 2008

    Filed under: aspose.barcode
     
  •  03-27-2009, 8:59 AM 171940 in reply to 171711

    Re: A generic error occurred in GDI+ in ASPOSE.BarCode .NET

    Hi Munendra,

    Thanks for providing the information.

    We have reproduced the error. It occurs when you generate barcode in 64 bit Windows. We have logged this issue in our bug tracking system and notify you when there is a workaround or fix for this issue. Sorry the the inconvenience.

    Best Regards,
    Saqib Razzaq
    Support Developer, Aspose Sialkot Team
    http://www.aspose.com
    Your File Format Experts
     
  •  03-31-2009, 4:42 AM 172430 in reply to 171940

    Re: A generic error occurred in GDI+ in ASPOSE.BarCode

    Hi  saqib.razzaq,

    I wanna remind u again about my problem. I am waiting for your positive answer, Sir.

    Have u find any solution to overcome this problem...

    Munendra Maheshwari

     
  •  04-01-2009, 2:14 AM 172714 in reply to 172430

    Re: A generic error occurred in GDI+ in ASPOSE.BarCode

    Hi,

    We are still trying to fix this problem. Thanks for your patience.

    Best Regards,
    Saqib Razzaq
    Support Developer, Aspose Sialkot Team
    http://www.aspose.com
    Your File Format Experts
     
  •  04-02-2009, 10:25 AM 173104 in reply to 172714

    Re: A generic error occurred in GDI+ in ASPOSE.BarCode

    Hi Munendra,

    We just found out that the exception occurred due to security restrictions. The IUSR_MachineName should have write access on the directory where you want to save the image files.

    Just to verify, please run the simple code below to create and save a bitmap image.

    System.Drawing.Bitmap bm = new Bitmap(200,200);

    bm.Save(Server.MapPath("TestSave.jpg"), System.Drawing.Imaging.ImageFormat.Jpeg);


    It can be fixed by setting the permissions in IIS Manager. Please let me know if it works for you.

    Best Regards,
    Saqib Razzaq
    Support Developer, Aspose Sialkot Team
    http://www.aspose.com
    Your File Format Experts
     
  •  04-05-2009, 11:06 PM 173467 in reply to 173104

    Re: A generic error occurred in GDI+ in ASPOSE.BarCode

    Thanx saqib,

    Its working now. Very very thanx for ur kind and appreciable suggestion.

    Saqib, I have another issue also posted on this link below...

    http://www.aspose.com/community/forums/thread/172428/system.io.ioexception-wrong-text-extracting-please-check-your-pdf.aspx

    can u help or suggest me for this.

    Reply ASAP

     
  •  04-07-2009, 12:02 AM 173693 in reply to 173467

    Re: A generic error occurred in GDI+ in ASPOSE.BarCode

    Hi Munendra,

    I handle BarCode and Network products. I am sure that you will get solution soon by the relevant guys there.

    Best Regards,
    Saqib Razzaq
    Support Developer, Aspose Sialkot Team
    http://www.aspose.com
    Your File Format Experts
     
View as RSS news feed in XML