Comments (5)
You are using the AMQP library indirectly through the IOT client which is built against the 2.0.6 package. That package contains the following strong named assembly.
Microsoft.Azure.Amqp, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
The AMQP package 2.1.0 contains the following strong named assembly.
Microsoft.Azure.Amqp, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Notice that the minor version has been increased. When you manually update the AMQP library, NuGet automatically add the binding redirect in order to load the new version.
<dependentAssembly>
<assemblyIdentity name="Microsoft.Azure.Amqp" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.1.0.0" newVersion="2.1.0.0" />
</dependentAssembly>
With binding redirect, there is no guarantee that everything will work as is. While we try the best to maintain backward compatibility, breaking changes sometimes happen. In the AMQP library, the public surface is unfortunately larger than ideal. Many of them are for internal implementation only. When we introduce breaking changes to those APIs, we increase the minor version. However we are aware that currently the APIs are very poorly documented. We are adding the documentation and will specifically call out the APIs that are not meant for public use.
from azure-amqp.
Notice that the minor version has been increased.
We did notice that and assumed SemVer in which minor increases are guaranteed to not have breaking changes. If that's not the case, then I assume we need to fix this on our side?
Do you have information on what may have changed for us to see this hang with the new version?
from azure-amqp.
Do you have information on what may have changed for us to see this hang with the new version?
In case you haven't found it yet. I believe the breaking changeset is here:
9fb3dee#diff-aafcd5eed57dc6edc69fb1916381bee1
TransportBase had two of its abstract members' return types changed from Endpoint to string. In Microsoft.Azure.Device.Client the ClientWebSocketTransport (and LegacyClientWebSocketTransport) class inherits TransportBase. I fixed and built this locally then included them into a demo test app and now AMQP over WebSocket works as expected.
from azure-amqp.
I don't know if my problem is really related to this one. But I'm getting a Could not load file or assembly 'Microsoft.Azure.Amqp, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
when using Microsoft.Azure.Amqp 2.1.2 in an Azure Function. I'm just callig var ioTRegistryClient = RegistryManager.CreateFromConnectionString(iotHubConnectionString);
. Binding redirects are the same as stated above. This disappears when I'm downgrading to 2.0.6.
After some more searching I found a more related issue I guess Azure/azure-functions-host#992
from azure-amqp.
iot client has been updated to the latest version.
from azure-amqp.
Related Issues (20)
- Inquiry on transaction operation for request response link HOT 9
- Expose method returning raw bytes of AMQP message HOT 1
- Consider applying DebuggerBrowsable[Never] to lazily initialized properties of AmqpMessage HOT 1
- Guid handling does not account for endianness HOT 2
- File version of Microsoft.Azure.Amqp is not updated with releases
- Intermittent connection failures when using AMQPS over IPv6 on .NET 6
- Sending ack flow frame with drain has regressed
- Inquiry on the use of AMQP Session in Event Hub SDKs HOT 3
- High allocations due to AmqpMap enumerations HOT 4
- File Version is not updated HOT 2
- [Question] Why do we need a timer in ReceiveAsyncResult? HOT 4
- CheckCertificateRevocation flag in TlsTransportSettings doesn't do anything / isn't respected.
- DrainAsync does not wait for messages to be released HOT 5
- [BUG] Service Bus: Cannot access a disposed object exception HOT 5
- ReceiveMessagesAsync can return null under heavy load HOT 1
- Is it possible to release the last version in NuGet HOT 1
- Getting a ton of SocketException after upgrading to .net8 HOT 2
- [BUG] AmqpTransportInitiator.Complete is throwing a NullReferenceException HOT 3
- Strong name fixed in version 2.4.0.0 HOT 1
- WebSocketTransportInitiator.ConnectAsync can result in UnobservedTaskException HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-amqp.