Skip to main content
Home Forums Silverlight Programming Programming with .NET - General PNG ImageError 3001 AG_E_INVALID_FILE_FORMAT
4 replies. Latest Post by robert.pieprzny on January 17, 2008.
(0)
rikonhol...
Member
36 points
12 Posts
11-27-2007 10:51 AM |
Hi,
I've read several other post on this issue, but none of those solutions have worked for me. In my xaml file i have the line
<Image x:Name="img7" Canvas.Left="590" Canvas.Top="40" Source="img92.png" Opacity="0.4"/>
The file img92.png is in the same folder as the *.xaml file. Running locally it works fine, but playing out from the web produces the error AG_E_INVALID_FILE_FORMAT.
One post suggested there was a problem with the web host, so i added the line <img scr="img92.png etc... > into the main html page, and the image displayed ok, so i guess thats not the problem. Another post suggested i use Expression Blend to create the image, i downloaded the trail version and resaved the image serveral different ways, each time the same error was seen.
Is there something I'm missing?
11-28-2007 11:25 AM |
Another thing to note is that I cannot use *.jpg either, the only thing that seems to work are *.jpeg files?
01-16-2008 6:06 PM |
Issue due to hosting service, swapped to another provider fixed the problem
Bill Reiss
Contributor
4840 points
919 Posts
01-17-2008 9:36 AM |
Yeah looks like maybe their MIME types aren't set properly for images.
robert.p...
116 points
37 Posts
01-17-2008 10:23 AM |
maybe you png file has wrong user access. Other when local another when by http.
Another idea is that the png format is really wrong. Create png file using Paint.Net