I'm creating a new DispatcherTimer()
in Silverlight 2.0, and the constructor call throws an exception:
DispatcherTimer timer = new DispatcherTimer();
This line throws before I can set Interval
, Tick
, or Start
the timer.
System.Exception was unhandled by user code
Message="Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))"
StackTrace:
at MS.Internal.XcpImports.CheckHResult(UInt32 hr)
at MS.Internal.XcpImports.CreateObjectByTypeIndex(UInt32 typeIndex)
(The next line of the stack trace is the constructor call, and it goes on in my code)
I'm not yet starting the timer or setting the interval, only calling the parameterless constructor. Any ideas what's wrong here?