Hi,
I have upgraded to the latest ReactiveUI 2.3.2, made all necessary
changes (namespaces, references) but I am unable to fix one error.
In Silverlight, the following part always ends up always with
result
= null.
internal static IScheduler findDispatcherScheduler()
{
Type result = null;
try {
result = Type.GetType("System.Reactive.Concurrency.DispatcherScheduler, System.Reactive.Windows.Threading", true);
} catch {
}
I have proper reference to
System.Reactive.Windows.Threading.dll
in my project and it is in my .xap file but the following exception
is always raised:
System.IO.FileNotFoundException: Could not load file or assembly
'System.Reactive.Windows.Threading, Culture=neutral,
PublicKeyToken=null' or one of its dependencies. The system cannot
find the file specified.
File name: 'System.Reactive.Windows.Threading, Culture=neutral,
PublicKeyToken=null'
at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean
throwOnError, Boolean ignoreCase, Boolean reflectionOnly,
StackCrawlMarkHandle stackMark, Boolean loadTypeFromPartialName,
ObjectHandleOnStack type)
at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean
throwOnError, Boolean ignoreCase, Boolean reflectionOnly,
StackCrawlMark& stackMark, Boolean loadTypeFromPartialName)
at System.RuntimeType.GetType(String typeName, Boolean
throwOnError, Boolean ignoreCase, Boolean reflectionOnly,
StackCrawlMark& stackMark)
at System.Type.GetType(String typeName, Boolean throwOnError)
at ReactiveUI.RxApp.findDispatcherScheduler()}
System.Exception {System.IO.FileNotFoundException
Any idea why and how to fix it?
The simplest way to reproduce it is to create empty SL project and
try to instantiate any ReactiveUI class (i.e. ReactiveCommand) so
RxApp is going to be called.
--
-- Lukáš