Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - June CTP -> Window Icon Not Working

 
 
Old 07-01-2006   #1 (permalink)
Josh Smith


 
 

June CTP -> Window Icon Not Working

Hello,

I just installed the June CTP. Whenever I run my app, it immediately throws
an exception because of the Icon setting below:

<Window x:Class="Contax.ContaxWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:Contax"
Title="Contax" Height="700" Width="1000"
Icon="AppImages/contax.ico"
>


This worked fine in the Beta2 build. I searched but could not find any
information about a change made to this functionality between Beta2 and June
CTP.

Here is part of the exception message:

{System.Windows.Markup.XamlParseException: Cannot create instance of
'ContaxWindow' defined in assembly 'Contax, Version=1.0.2373.26874,
Culture=neutral, PublicKeyToken=null'. Exception has been thrown by the
target of an invocation. ---> System.Reflection.TargetInvocationException:
Exception has been thrown by the target of an invocation. --->
System.Windows.Markup.XamlParseException: Cannot convert string
'AppImages/contax.ico' in attribute 'Icon' to object of type
'System.Windows.Media.ImageSource'. Mismatched versions of
PresentationCore.dll, Milcore.dll, WindowsCodecs.dll, or D3d9.dll. Check that
these DLLs come from the same source. Error at object 'Contax.ContaxWindow'.
---> System.IO.FileLoadException: Mismatched versions of
PresentationCore.dll, Milcore.dll, WindowsCodecs.dll, or D3d9.dll. Check that
these DLLs come from the same source. --->
System.Runtime.InteropServices.COMException (0x88982F0B): Exception from
HRESULT: 0x88982F0B

I wiped out the assembly references and added them back in, because the
error message indicated that the assembly versions were out of sync, but that
didn't help.

Any help would be much appreciated.

Thanks,
Josh

My System SpecsSystem Spec
Old 07-01-2006   #2 (permalink)
Josh Smith


 
 

RE: June CTP -> Window Icon Not Working

I should have searched a little harder before posting about the problem. The
solution can be found, of all places, in the ReadMe for the June CTP -
specifically here
http://msdn.microsoft.com/windowsvis...lt.aspx#topic2

Note, I only uninstalled the .NET Framework 3.0 (not the SDK or Orcas) and
it worked fine.

Josh

"Josh Smith" wrote:

> Hello,
>
> I just installed the June CTP. Whenever I run my app, it immediately throws
> an exception because of the Icon setting below:
>
> <Window x:Class="Contax.ContaxWindow"
> xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
> xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
> xmlns:local="clr-namespace:Contax"
> Title="Contax" Height="700" Width="1000"
> Icon="AppImages/contax.ico"
> >

>
> This worked fine in the Beta2 build. I searched but could not find any
> information about a change made to this functionality between Beta2 and June
> CTP.
>
> Here is part of the exception message:
>
> {System.Windows.Markup.XamlParseException: Cannot create instance of
> 'ContaxWindow' defined in assembly 'Contax, Version=1.0.2373.26874,
> Culture=neutral, PublicKeyToken=null'. Exception has been thrown by the
> target of an invocation. ---> System.Reflection.TargetInvocationException:
> Exception has been thrown by the target of an invocation. --->
> System.Windows.Markup.XamlParseException: Cannot convert string
> 'AppImages/contax.ico' in attribute 'Icon' to object of type
> 'System.Windows.Media.ImageSource'. Mismatched versions of
> PresentationCore.dll, Milcore.dll, WindowsCodecs.dll, or D3d9.dll. Check that
> these DLLs come from the same source. Error at object 'Contax.ContaxWindow'.
> ---> System.IO.FileLoadException: Mismatched versions of
> PresentationCore.dll, Milcore.dll, WindowsCodecs.dll, or D3d9.dll. Check that
> these DLLs come from the same source. --->
> System.Runtime.InteropServices.COMException (0x88982F0B): Exception from
> HRESULT: 0x88982F0B
>
> I wiped out the assembly references and added them back in, because the
> error message indicated that the assembly versions were out of sync, but that
> didn't help.
>
> Any help would be much appreciated.
>
> Thanks,
> Josh

My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Icon in Windows Explorer window? General Discussion
Icon in User Information window! Live Mail
Window Previews/Mini-Window Not Working Vista General
shrink window around desktop icon Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46