Critical error

Jan 27, 2010 at 2:37 PM

Date: 1/26/2010 9:01:10 PM
Message: Cannot create instance of 'TaskbarIcon' defined in assembly 'MouseExtender, Version=1.8.3.0, Culture=neutral, PublicKeyToken=null'. Exception has been thrown by the target of an invocation.  Error at object 'grid' in markup file 'MouseExtender;component/mainwindow.xaml'.
Type: System.Windows.Markup.XamlParseException
OS: Microsoft Windows NT 6.1.7600.0
Framework version: .NET CLR 2.0.50727;SLCC2;.NET CLR 3.5.30729;.NET CLR 3.0.30729;Media Center PC 6.0
Data: System.Object: |
Native Code:
StackTrace:    at System.Windows.Markup.XamlParseException.ThrowException(String message, Exception innerException, Int32 lineNumber, Int32 linePosition, Uri baseUri, XamlObjectIds currentXamlObjectIds, XamlObjectIds contextXamlObjectIds, Type objectType)
   at System.Windows.Markup.XamlParseException.ThrowException(ParserContext parserContext, Int32 lineNumber, Int32 linePosition, String message, Exception innerException)
   at System.Windows.Markup.BamlRecordReader.CreateInstanceFromType(Type type, Int16 typeId, Boolean throwOnFail)
   at System.Windows.Markup.BamlRecordReader.GetElementAndFlags(BamlElementStartRecord bamlElementStartRecord, Object& element, ReaderFlags& flags, Type& delayCreatedType, Int16& delayCreatedTypeId)
   at System.Windows.Markup.BamlRecordReader.BaseReadElementStartRecord(BamlElementStartRecord bamlElementRecord)
   at System.Windows.Markup.BamlRecordReader.ReadElementStartRecord(BamlElementStartRecord bamlElementRecord)
   at System.Windows.Markup.BamlRecordReader.ReadRecord(BamlRecord bamlRecord)
   at System.Windows.Markup.BamlRecordReader.Read(Boolean singleRecord)
   at System.Windows.Markup.TreeBuilderBamlTranslator.ParseFragment()
   at System.Windows.Markup.TreeBuilder.Parse()
   at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
   at System.Windows.Application.LoadBamlStreamWithSyncInfo(Stream stream, ParserContext pc)
   at System.Windows.Application.DoStartup()
   at System.Windows.Application.<.ctor>b__0(Object unused)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)

Inner exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ComponentModel.Win32Exception: Could not create icon data
   at Hardcodet.Wpf.TaskbarNotification.TaskbarIcon.CreateTaskbarIcon()
   at Hardcodet.Wpf.TaskbarNotification.TaskbarIcon..ctor()
   --- End of inner exception stack trace ---
   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck)
   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache)
   at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache)
   at System.Activator.CreateInstance(Type type, Boolean nonPublic)
   at System.Windows.Markup.BamlRecordReader.CreateInstanceFromType(Type type, Int16 typeId, Boolean throwOnFail)
ErrorID: c4df69f2-b5a7-417e-ae94-36dfd923c1a7
Date: 1/27/2010 8:34:39 AM
Message: Object reference not set to an instance of an object.
Type: System.NullReferenceException
OS: Microsoft Windows NT 6.1.7600.0
Framework version: .NET CLR 2.0.50727;SLCC2;.NET CLR 3.5.30729;.NET CLR 3.0.30729;Media Center PC 6.0
Data: System.Object: |
Native Code:
StackTrace:    at MouseExtender.MainWindow.AdjustMouseExtender()
   at MouseExtender.MainWindow.Window_Loaded(Object sender, RoutedEventArgs e)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at MS.Internal.FrameworkObject.OnLoaded(RoutedEventArgs args)
   at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
   at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
   at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.Resize(ICompositionTarget resizedCompositionTarget)
   at System.Windows.Interop.HwndTarget.OnResize()
   at System.Windows.Interop.HwndTarget.HandleMessage(Int32 msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)

Coordinator
Feb 1, 2010 at 12:42 PM

Hi!

How you made this happen? Did ME ever run on this PC?

Seems like you have no SP1 for .NET 3.5 installed.

Alex.

Feb 2, 2010 at 2:50 PM
Edited Feb 2, 2010 at 2:51 PM

I have been running ME for a while now.  My OS is Win7 64bit, so .net 3.5sp1 is installed by default with the OS. I don't know the exact steps that caused this issue.

Coordinator
Feb 8, 2010 at 9:54 PM

Hi!

As far as I know, .net 3.5 is installed within Windows 7, but there is no SP1 installed there. Can you please, check the version here? http://www.hanselman.com/smallestdotnet/

Thanks.

Alex.

Feb 12, 2010 at 4:10 AM

YOUR PERSONALIZED RESULTS

Looks like you have .NET version 3.5 SP1. That's the VERY latest .NET Framework. You don't need to do anything right now.

Coordinator
Mar 12, 2010 at 4:07 PM

Hi!

That's strange.

Let me ask a little stupid question, but - do you still have this issue (with the latest version)?

 

Alex.

 

Coordinator
Mar 30, 2010 at 8:54 AM
mjcocat wrote:

YOUR PERSONALIZED RESULTS

Looks like you have .NET version 3.5 SP1. That's the VERY latest .NET Framework. You don't need to do anything right now.

Hello mjcocat!

We have changed taskbar icon loading process and add additional code in order to catch the real error if it occur again.

This fix will be integrated into the subsequent release.

Please, let us know if this issue occures again.

Thanks,

Alexey.