![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| | #2 (permalink) |
| | 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 Specs![]() |
| 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 | |||