A generic error occurred in GDI+

后端 未结 10 600
孤城傲影
孤城傲影 2020-12-17 18:17
[ExternalException (0x80004005): A generic error occurred in GDI+.]
   IpitchitImageHandler.Data.ImageRepository.AddNewTempImage(Stream image, String extension, Guid         


        
相关标签:
10条回答
  • 2020-12-17 18:47

    Is your local machine Vista or Windows 7, and your server Windows Server 2003? I believe the GDI+ implementation differs, and you won't see the error on the newer OSs. I'm just running into this issue now, and that's one of the factoids I've come across.

    0 讨论(0)
  • 2020-12-17 18:51

    i agree permissions is the problem here.

    network service maybe ?

    0 讨论(0)
  • 2020-12-17 18:53

    Everyone here (and on this site) has discussed this as due to a permissions error. I've stumbled over another flavor: memory. I ran out of memory and started receiving this error as well. So keep that in mind as another potential source of error.

    In my particular case I was running in a .NET application, and running against a number of threads (few enough that I wasn't being held back too much by the GDI+ process-wide lock). Adding a "GC.Collect()" after major tasks finished didn't seem to affect the speed much, but did completely get rid of the out of memory errors.

    0 讨论(0)
  • 2020-12-17 18:54

    Please be sure about the path you are using for images,I also face the same error.Check all paths you are using.

    0 讨论(0)
提交回复
热议问题