The assembly 'System.Net.Http.dll' was loaded from a different path
NightOwlCoder opened this issue · comments
We have been developing an app with HybridConnectionListener
and all has been working fine.
Today we were going to do a demo and we sent an App to TestFlight for others to download.
We got this error on the app:
Info (67137) / ICBolt.iOS: ChannelService: thrown with message: Unable to connect to the remote server. TrackingId:8fe7d802-bde4-4001-bcb1-0b60292c93be, Address:sb://xx-xxx-app01.servicebus.windows.net/xx-xxxx-app01-hc01, Timestamp:8/7/2020 9:10:22 PM
after some investigation, we found this on the AppCenter build logs:
MTOUCH : warning MT0109: The assembly 'System.Net.Http.dll' was loaded from a different path than the provided path (provided path: /Users/runner/.nuget/packages/system.net.http/4.3.0/runtimes/win/lib/netstandard1.3/System.Net.Http.dll, actual path: /Library/Frameworks/Xamarin.iOS.framework/Versions/13.18.2.1/lib/mono/Xamarin.iOS/System.Net.Http.dll). [/Users/runner/work/1/s/src/ICBolt/ICBolt.iOS/ICBolt.iOS.csproj]
As HybridConnectionListener
is the only thing that does not work (we do access other endpoints before we get to the channel code), I'm opening this bug here expecting some guidance on what we are doing wrong.
Our code current uses:
<PackageReference Include="Microsoft.Azure.EventGrid" Version="3.2.0" />
<PackageReference Include="Microsoft.Azure.Relay" Version="2.0.1" />
and actually if we use this on the build parameters:
--linkskip=System.Net.Http
Everything works fine.
Thank you all for looking into this,
NightOwl