Wednesday, February 29, 2012

Crystal report, A generic error occurred in GDI+

one day, some app server has the error to render the asp.net Crystal report. It’s a server side problem, So run a debug and attach to the server side w3wp. turn on unhandled exception.

mdbg> ca ex
mdbg> a 2876
[p#:0, t#:75] mdbg> g
STOP: Exception thrown
Exception=System.Runtime.InteropServices.ExternalException
        _className=<null>
        _exceptionMethod=<null>
        _exceptionMethodString=<null>
        _message="A generic error occurred in GDI+."
        _data=<null>
        _innerException=<null>
        _helpURL=<null>
        _stackTrace=array [20]
        _watsonBuckets=<null>
        _stackTraceString=<null>
        _remoteStackTraceString=<null>
        _remoteStackIndex=0
        _dynamicMethods=<null>
        _HResult=-2147467259
        _source=<null>
        _xptrs=0
        _xcode=-532462766
        _ipForWatsonBuckets=2066954414
        _safeSerializationManager=System.Runtime.Serialization.SafeSerializatio
Manager
IP: 210 @ System.Drawing.Image.Save - MAPPING_APPROXIMATE
[p#:0, t#:75] mdbg> w
Thread [#:75]
*0. System.Drawing.Image.Save (source line information unavailable)
1. System.Drawing.Image.Save (source line information unavailable)
2. CrystalDecisions.Web.HtmlReportRender.ImageObjectRender.SaveImage (source l
ne information unavailable)


then keep going, you will find the foder there, it’s the cr engine which trys to save some file locally.
image

then Just check this temp folder to see whether the folder is accessible? whether the app has the access. for this case,
NObody can access this folder now. so that’s the root case.

No comments:

 
Locations of visitors to this page