Skip to main content

Microsoft Silverlight

Answered Question PNG ImageError 3001 AG_E_INVALID_FILE_FORMATRSS Feed

(0)

rikonholiday
rikonhol...

Member

Member

36 points

12 Posts

PNG ImageError 3001 AG_E_INVALID_FILE_FORMAT

 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? 

 

rikonholiday
rikonhol...

Member

Member

36 points

12 Posts

Re: PNG ImageError 3001 AG_E_INVALID_FILE_FORMAT

Another thing to note is that I cannot use *.jpg either, the only thing that seems to work are *.jpeg files?

rikonholiday
rikonhol...

Member

Member

36 points

12 Posts

Answered Question

Re: PNG ImageError 3001 AG_E_INVALID_FILE_FORMAT

 Issue due to hosting service, swapped to another provider fixed the problem

Bill Reiss
Bill Reiss

Contributor

Contributor

4840 points

919 Posts

Silverlight MVP

Re: PNG ImageError 3001 AG_E_INVALID_FILE_FORMAT

Yeah looks like maybe their MIME types aren't set properly for images.


Bill Reiss, Coauthor of Hello! Silverlight 3
My blog (rss feed)

robert.pieprzny
robert.p...

Member

Member

116 points

37 Posts

Re: PNG ImageError 3001 AG_E_INVALID_FILE_FORMAT

 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  

 

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities