Announcement

Collapse
No announcement yet.

Nest plugin wont authorize

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Nest plugin wont authorize

    I have installed the Nest plugin (latest release and also tried latest beta) but when I try to authorize the plugin with Nest, I get the PIN code, but after I enter it, the plugin freezes and never completes authorization. After turning on debug, I get the following, which would suggest I need to install the .net path you mention in the user guide.

    DEBUG System.IO.FileLoadException: Could not load file or assembly 'System.Threading.Tasks, Version=2.6.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) File name: 'System.Threading.Tasks, Version=2.6.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' ---> System.IO.FileLoadException: Could not load file or assembly 'System.Threading.Tasks, Version=2.6.8.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly

    However, when I try to install the patch it says it does not apply or is blocked by another condition on my computer.

    Any ideas on how I can get this working?

    Running on Windows 10 Pro.

    #2
    this is a different problem that the one mentioned in a user guide.

    you have a version of System.Threading.Tasks.dll somewhere that conflicts with the one used by the plugin.

    Do you have System.Threading.Tasks.dll in your HS3 folder?

    What version of .NET are you using?

    Comment


      #3
      Running .NET 4.6 I believe.

      4.5.2 wont install as it says I have a newer version installed already.

      No System.Threading.Tasks.dll file in my HS3 folder that I can see.

      Comment


        #4
        edit HSPI_Nest.exe.config and replace its content by the following, then restart the plugin.

        Code:
        <?xml version="1.0" encoding="utf-8"?>
        <configuration>
          <startup>
            <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
          </startup>
          <runtime>
            <loadFromRemoteSources enabled="true" />
            <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
              <probing privatePath="bin/Nest" />
              <dependentAssembly>
                <assemblyIdentity name="System.Net.Http.Primitives" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
                <bindingRedirect oldVersion="0.0.0.0-4.2.22.0" newVersion="4.2.22.0" />
                <codeBase version="4.2.22.0" href="bin/Nest/System.Net.Http.dll"/>
              </dependentAssembly>
              <dependentAssembly>
                <assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
                <bindingRedirect oldVersion="0.0.0.0-2.6.8.0" newVersion="2.6.8.0" />
                <codeBase version="2.6.8.0" href="bin/Nest/System.Runtime.dll"/>
              </dependentAssembly>
              <dependentAssembly>
                <assemblyIdentity name="System.Threading.Tasks" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
                <bindingRedirect oldVersion="0.0.0.0-2.6.8.0" newVersion="2.6.8.0" />
                <codeBase version="2.6.8.0" href="bin/Nest/System.Threading.Tasks.dll"/>
              </dependentAssembly>
              <!--
              <dependentAssembly>
                <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
                <bindingRedirect oldVersion="0.0.0.0-7.0.0.0" newVersion="7.0.0.0"/>
                <codeBase version="7.0.0.0" href="bin/Nest/Newtonsoft.Json.dll"/>
              </dependentAssembly>
              -->
            </assemblyBinding>
          </runtime>
        </configuration>

        Comment


          #5
          Same result

          Here is full debug output:

          DEBUG System.IO.FileLoadException: Could not load file or assembly 'System.Threading.Tasks, Version=2.6.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) File name: 'System.Threading.Tasks, Version=2.6.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' ---> System.IO.FileLoadException: Could not load file or assembly 'System.Threading.Tasks, Version=2.6.8.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) File name: 'System.Threading.Tasks, Version=2.6.8.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog]. at FirebaseSharp.Firebase.GetStreamingAsync(String path, DataUpdatedEventHandler updated) at NestSharp.NestClient.StartMonitoringData()

          Comment


            #6
            Looks like I get the same error from your XBMC plugin as well.

            Comment


              #7
              i was able to get this working with the following config:

              <?xml version="1.0" encoding="utf-8"?>
              <configuration>
              <startup>
              <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
              </startup>
              <runtime>
              <loadFromRemoteSources enabled="true" />
              <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
              <probing privatePath="bin/Nest" />
              <dependentAssembly>
              <assemblyIdentity name="System.Net.Http.Primitives" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
              <bindingRedirect oldVersion="0.0.0.0-4.2.22.0" newVersion="4.2.22.0" />
              </dependentAssembly>
              <dependentAssembly>
              <assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
              <bindingRedirect oldVersion="0.0.0.0-2.6.8.0" newVersion="2.6.8.0" />
              </dependentAssembly>
              <dependentAssembly>
              <assemblyIdentity name="System.Threading.Tasks" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
              </dependentAssembly>
              <!--
              <dependentAssembly>
              <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
              <bindingRedirect oldVersion="0.0.0.0-7.0.0.0" newVersion="7.0.0.0"/>
              <codeBase version="7.0.0.0" href="bin/Nest/Newtonsoft.Json.dll"/>
              </dependentAssembly>
              -->
              </assemblyBinding>
              </runtime>
              </configuration>

              Comment


                #8
                glad you got it to work
                Just for the record, I have installed .NET 4.6, and I couldn't reproduce this problem, so you must have a System.Threading.Tasks.dll installed by another program on your system that conflicts with the one installed by the Nest plugin.

                Comment


                  #9
                  Not sure. I'm runnind Disk Cleanup now to remove the upgrade folder from the Windows 10 upgrade as i saw some of the System.threading.Tasks.dll files there.

                  Then going to run a search on the C drive to see where else that file may be.

                  Should be able to test with the XBMC plugin as it was giving me the same errors.

                  All in all I think I'm going to go broke buying plugins from you LOL.

                  Comment


                    #10
                    Originally posted by spud View Post
                    glad you got it to work
                    Just for the record, I have installed .NET 4.6, and I couldn't reproduce this problem, so you must have a System.Threading.Tasks.dll installed by another program on your system that conflicts with the one installed by the Nest plugin.
                    I cant get past this error. I have even gone and replaced all the dll's so they match and still get the error with file dated 8/29/2014 which is what was in the nest folder. I also have the dll in the the following locations:

                    C:\Program Files (x86)\Cinemar\MLServer
                    C:\Program Files (x86)\HomeSeer HS3\Bin\Nest
                    C:\Program Files (x86)\HomeSeer HS3\Updates3\Nest3.0.0.18

                    I have renamed these to System.Threading.Tasks.dll.old dated 11/5/2015 in these folders:

                    C:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Threading. Tasks\v4.0_4.0.0.0__b03f5f7f11d50a3a
                    C:\Windows\Microsoft.NET\Framework\v4.0.30319
                    C:\Windows\Microsoft.NET\Framework64\v4.0.30319

                    Did this trying to get it to work.

                    Here is total list

                    Code:
                    Full Path                                                                                                                        Size   Date Modified
                    C:\Program Files (x86)\Cinemar\MLServer\System.Threading.Tasks.dll                                                               34 KB  8/29/2014 3:42 PM
                    C:\Program Files (x86)\Cinemar\MLServer\System.Threading.Tasks.dll (2).old                                                       30 KB  11/5/2015 8:36 PM
                    C:\Program Files (x86)\Cinemar\MLServer\System.Threading.Tasks.dll.old                                                           35 KB  3/1/2015 2:05 PM
                    C:\Program Files (x86)\HomeSeer HS3\Bin\Nest\System.Threading.Tasks.dll                                                          34 KB  8/29/2014 3:42 PM
                    C:\Program Files (x86)\HomeSeer HS3\Updates3\Nest3.0.0.18\System.Threading.Tasks.dll                                             34 KB  8/29/2014 3:42 PM
                    C:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Threading.Tasks\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Threading.Tasks.dll.old  30 KB  11/5/2015 8:36 PM
                    C:\Windows\Microsoft.NET\Framework\v4.0.30319\System.Threading.Tasks.dll.old                                                     30 KB  11/5/2015 8:36 PM
                    C:\Windows\Microsoft.NET\Framework64\v4.0.30319\System.Threading.Tasks.dll.old                                                   30 KB  11/5/2015 8:36 PM
                    Here is the error:

                    DEBUG System.IO.FileLoadException: Could not load file or assembly 'System.Threading.Tasks, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) File name: 'System.Threading.Tasks, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' ---> System.IO.FileLoadException: Could not load file or assembly 'System.Threading.Tasks, Version=2.6.8.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) File name: 'System.Threading.Tasks, Version=2.6.8.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog]. at FirebaseSharp.Firebase.GetStreamingAsync(String path, DataUpdatedEventHandler updated) at NestSharp.NestClient.StartMonitoringData()

                    I also tried the different config file changes.

                    Comment


                      #11
                      Originally posted by mattdb View Post
                      I cant get past this error. I have even gone and replaced all the dll's so they match and still get the error with file dated 8/29/2014 which is what was in the nest folder. I also have the dll in the the following locations:

                      C:\Program Files (x86)\Cinemar\MLServer
                      C:\Program Files (x86)\HomeSeer HS3\Bin\Nest
                      C:\Program Files (x86)\HomeSeer HS3\Updates3\Nest3.0.0.18

                      I have renamed these to System.Threading.Tasks.dll.old dated 11/5/2015 in these folders:

                      C:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Threading. Tasks\v4.0_4.0.0.0__b03f5f7f11d50a3a
                      C:\Windows\Microsoft.NET\Framework\v4.0.30319
                      C:\Windows\Microsoft.NET\Framework64\v4.0.30319

                      Did this trying to get it to work.

                      Here is total list

                      Code:
                      Full Path                                                                                                                        Size   Date Modified
                      C:\Program Files (x86)\Cinemar\MLServer\System.Threading.Tasks.dll                                                               34 KB  8/29/2014 3:42 PM
                      C:\Program Files (x86)\Cinemar\MLServer\System.Threading.Tasks.dll (2).old                                                       30 KB  11/5/2015 8:36 PM
                      C:\Program Files (x86)\Cinemar\MLServer\System.Threading.Tasks.dll.old                                                           35 KB  3/1/2015 2:05 PM
                      C:\Program Files (x86)\HomeSeer HS3\Bin\Nest\System.Threading.Tasks.dll                                                          34 KB  8/29/2014 3:42 PM
                      C:\Program Files (x86)\HomeSeer HS3\Updates3\Nest3.0.0.18\System.Threading.Tasks.dll                                             34 KB  8/29/2014 3:42 PM
                      C:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Threading.Tasks\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Threading.Tasks.dll.old  30 KB  11/5/2015 8:36 PM
                      C:\Windows\Microsoft.NET\Framework\v4.0.30319\System.Threading.Tasks.dll.old                                                     30 KB  11/5/2015 8:36 PM
                      C:\Windows\Microsoft.NET\Framework64\v4.0.30319\System.Threading.Tasks.dll.old                                                   30 KB  11/5/2015 8:36 PM
                      Here is the error:

                      DEBUG System.IO.FileLoadException: Could not load file or assembly 'System.Threading.Tasks, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) File name: 'System.Threading.Tasks, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' ---> System.IO.FileLoadException: Could not load file or assembly 'System.Threading.Tasks, Version=2.6.8.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) File name: 'System.Threading.Tasks, Version=2.6.8.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog]. at FirebaseSharp.Firebase.GetStreamingAsync(String path, DataUpdatedEventHandler updated) at NestSharp.NestClient.StartMonitoringData()

                      I also tried the different config file changes.
                      please post or send me the content of this file : C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine .config

                      thanks

                      Comment


                        #12
                        File attached.
                        Attached Files

                        Comment


                          #13
                          edit the file and remove the following part
                          Code:
                          <runtime><!-- UPDATE:03 -->
                            <assemblyBinding xmlns = "urn:schemas-microsoft-com:asm.v1" >
                               <dependentAssembly>
                                  <assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
                                     <bindingRedirect oldVersion="0.0.0.0-2.6.10.0" newVersion="2.6.10.0"/>
                               </dependentAssembly>
                               <dependentAssembly>
                                  <assemblyIdentity name="System.Threading.Tasks" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
                                  <bindingRedirect oldVersion="0.0.0.0-2.6.10.0" newVersion="2.6.10.0" />
                               </dependentAssembly>
                               <dependentAssembly>
                                  <assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
                                  <bindingRedirect oldVersion="0.0.0.0-2.2.29.0" newVersion="2.2.29.0" />
                               </dependentAssembly>
                               <dependentAssembly>
                                  <assemblyIdentity name="System.Net.Http.Primitives" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
                                  <bindingRedirect oldVersion="0.0.0.0-2.2.29.0" newVersion="2.2.29.0" />
                               </dependentAssembly>
                               <dependentAssembly>
                                  <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
                                  <bindingRedirect oldVersion="0.0.0.0-7.0.0.0" newVersion="7.0.0.0" />
                               </dependentAssembly>
                               <dependentAssembly>
                                  <assemblyIdentity name="Google.Apis" publicKeyToken="4b01fa6e34db77ab" culture="neutral" />
                                  <bindingRedirect oldVersion="0.0.0.0-1.9.3.19379" newVersion="1.9.3.19379" />
                               </dependentAssembly>
                               <dependentAssembly>
                                  <assemblyIdentity name="Google.Apis.Core" publicKeyToken="4b01fa6e34db77ab" culture="neutral" />
                                  <bindingRedirect oldVersion="0.0.0.0-1.9.3.19379" newVersion="1.9.3.19379" />
                               </dependentAssembly>
                               <dependentAssembly>
                                  <assemblyIdentity name="log4net" publicKeyToken="669E0Ddf0bb1aa2a" culture="neutral" />
                                  <bindingRedirect oldVersion="0.0.0.0-1.2.14.0" newVersion="1.2.14.0" />
                               </dependentAssembly>
                            </assemblyBinding>
                          </runtime>
                          These lines are added by another program and should really not, I begin to suspect MainLobby because another user reported the exact same problem yesterday and also had MainLobby installed. I tried to install it, but it didn't add these lines, so maybe the installation of a driver or plugin that make those lines to appear. What MainLobby drivers/plug-in have you installed? and do you actually use ML?

                          Comment


                            #14
                            Originally posted by spud View Post
                            edit the file and remove the following part

                            These lines are added by another program and should really not, I begin to suspect MainLobby because another user reported the exact same problem yesterday and also had MainLobby installed. I tried to install it, but it didn't add these lines, so maybe the installation of a driver or plugin that make those lines to appear. What MainLobby drivers/plug-in have you installed? and do you actually use ML?
                            Removed, rebooted and still get the same error. I do actually use mainlobby, started using it way before hstouch. Just now getting around to moving to HS3. Alot of my plugins didn't transfer and my RCS thermostats was one of them...

                            I also use it to control my yamaha stereo and play music etc.

                            Blades BLML2HS (HS3)
                            CallerID
                            MusicLobby
                            SatRadio
                            Weather
                            MLYamaha
                            MLHSplugin (HS2)

                            Comment


                              #15
                              If it makes this any easier for you I can shoot you a teamviewer login.

                              Comment

                              Working...
                              X