A generic error occurred in GDI+. hatası

alattin (16999) 8 yıl önce sordu

Asp.Net uygulamasında  aşağıdaki gibi hata alıyorum

Server Error in '/' Application.

A generic error occurred in GDI+.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+.

Source Error: 
 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace: 
 

[ExternalException (0x80004005): A generic error occurred in GDI+.]
   System.Drawing.Image.Save(String filename, ImageCodecInfo encoder, EncoderParameters encoderParams) +615241
  Com.Web.Controls.Captcha.CreateCaptchaWord() +1841
   System.Web.UI.Control.OnLoad(EventArgs e) +132
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428


Version Information: Microsoft .NET Framework Version:2.0.50727.5485; ASP.NET Version:2.0.50727.5491

A generic error occurred in GDI+. hatasının çözümü nedir?

Toplam 1 cevap


alattin (16999) 8 yıl önce cevapladı

A generic error occurred in GDI+ hatası:

Asp.Net uygulamasında A generic error occurred in GDI+ hatası alıyorsanız bunun nedeni uygulamanızdaki herhangi bir bileşenin bir klasör ya da dosyaya yazma hakkının olmaması olabilir.

Eğer uygulamanızdaki bir bileşe bir klasöre veya bir dosyaya veri yazmak istiyor fakat yetkisiz olduğu için yazamıyorsa A generic error occurred in GDI+ hatası alabilirsiniz.

Yukarıdaki örnekte Com.Web.Controls.Captcha.CreateCaptchaWord() yazma işlemi yapamadığından sistem bu hatayı döndürmüştür. Bileşenin yazma hakkı istediği dosya veya klasöre yetki verirseniz sorun düzelecektir.