locked
rx 1.1.10621.0 problem with ischeduler RRS feed

  • Question

  • I am replacing 1.0.2856.104 coreex with rx experimental and everything is ok Except that it 

    seems to need coreex for the following code even though i explicitly tell where it IScheduler is.

    I get the error

    Error 65 The type 'System.Concurrency.IScheduler' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.CoreEx, Version=1.0.2856.104, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. the error is on the asyncAdd= line 

     IObservable<emailaddress> asyncAdd =
            Observable.ToAsync(
              () =>
                {
                  return this.authenticationService.AddEmailForUser(
                    this.UserAccount, this.EmailAddress.DataValue);
                })().ObserveOn(System.Reactive.Concurrency.Scheduler.ThreadPool).
              ObserveOnDispatcher();
          asyncAdd.Subscribe(
            (newEmailAddress) =>
              {
                if (newEmailAddress != null)
                {
                  if (!this.EmailAddresses.Any(e => e.Name.DataValue == newEmailAddress.value))
                  {
                    this.EmailAddresses.Add(EmailAddressToViewModel(newEmailAddress));
                    this.LoadedEmailAddressCv.Refresh();
                  }
                }
              });
    


    Wednesday, August 10, 2011 1:56 PM

Answers

  • Hi, 

    Go through the list of all references and check the version numbers, even if you think that a reference is not related to Rx.  Make sure all Rx assemblies are version 1.1.10621.

    - Dave


    http://davesexton.com/blog
    Thursday, August 11, 2011 4:32 PM

All replies

  • Hi,

    The latest version of Rx Experimental does not have a dependency on the old System.CoreEx.dll.  Check that you've removed all references to the old Rx assemblies.

    The only primary assembly that you need now is System.Reactive.dll, version 1.1.10621, which contains everything from the old System.CoreEx.dll.

    - Dave


    http://davesexton.com/blog
    Wednesday, August 10, 2011 3:37 PM
  • i know thats why its weird.

    Even when i add a reference to the system.coreEx resharper cant find any code depending on it.

    But not referencing it will give compilation errors from original post.

    Completely confusing.

    I referenced the  System.Reactive.dll , version 1.1.10621,  and also the Threading dll.

    Thursday, August 11, 2011 3:03 PM
  • Hi, 

    Go through the list of all references and check the version numbers, even if you think that a reference is not related to Rx.  Make sure all Rx assemblies are version 1.1.10621.

    - Dave


    http://davesexton.com/blog
    Thursday, August 11, 2011 4:32 PM
  • Hi,

    Also, you may want to open up your Bin folder and make sure that all old Rx assemblies are deleted.  Sometimes using Clean doesn't actually remove all old references; e.g., you may have to restart Visual Studio to delete locked files.

    - Dave


    http://davesexton.com/blog
    Thursday, August 11, 2011 4:34 PM