Windows error 0x88982F8A, -2003292278

Detailed Error Information

WINCODEC_ERR_INVALIDREGISTRATION[1]

MessageThe component registration is invalid.
Declared inwinerror.h

HRESULT analysis[2]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)true
FacilityCode2200 (0x898)
NameFACILITY_WINCODEC_DWRITE_DWM[1]
Error Code12170 (0x2f8a)

Questions

9votes
1answer

Saving PNG images to a memory stream causes errors

I have a WebAPI endpoint (hosted in IIS) that reads images from a database (byte array) and returns them in the PNG format. This code is simple: Image img = ImageHelper.ReadFromDatabase(…); using (MemoryStream ms = new MemoryStream()) { img.Save(ms, System.Drawing.Imaging.ImageFormat.Png); HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK); response.Content = new ByteArrayContent(ms.ToArray()); response.Content.Headers.ContentType = [...] read more
c#
wpf
iis
asp.net-web-api
windows-server-2012-r2
5votes
2answers

Strange image generation error in asp.net

I have an ASP.NET-MVC project where I need to dynamically generate some png images. That's easy. I just create ActionResult that returns FileSreamResult object. To generate images I used classes from System.Drawing such as Bitmap and Image. Everything works fine on local machine and on production server. But when IIS [...] read more
asp.net-mvc
iis
png
4votes
1answer

Bitmap.Save stops working after some hours

We have started facing an issue in the past months where the method System.Drawing.Bitmap.Save(string filename) stops working after the server has been running for several hours. The hours after which it starts failing are proportional to the server load. This code involved with that call has been working perfectly well [...] read more
c#
asp.net
.net
bitmap
gdi+

Comments

Leave a comment

(plain text only)

Sources

  1. winerror.h from Windows SDK 10.0.14393.0
  2. https://msdn.microsoft.com/en-us/library/cc231198.aspx

User contributions licensed under CC BY-SA 3.0