MemoryStream ms = new MemoryStream(pd.Data.ToArray()); //jpeg data loaded from database
ExtendedImage eImage = new ExtendedImage();
JpegDecoder jpegDecoder = new JpegDecoder();
photoWindow.PhotoPlaceholder.Source = eImage.ToBitmap(); //exception gets thrown here
After a couple weeks working great, I started getting an exception on the last line here. "ImageTools.ImageExtensions threw and exception."
"TypeInitializationException...Could not load file or assembly 'ImageTools.IO.Png'...The system cannot fine the file specified at ImageTools.ImageExtenstions..cctor()..."
I'm not using ImageTools.IO.png.dll, just ImageTools.IO.Jpeg.dll. I added ImageTools.IO.Png to the project and the exception went away. Since I'm not doing any png work, I shouldn't
need it, right? I'd prefer to take it out. Any idea why this might start happening (seemingly out of the blue)?
Thanks for an extremely useful project though!!!