RabbitMQ System.Runtime.CompilerServices.Unsafe.dll

110 views
Skip to first unread message

Esra

unread,
Oct 6, 2023, 7:30:56 AM10/6/23
to rabbitmq-users
Hello Rabbitmq users,
We are trying to update rabbitmq.client.dll version to its latest stabile version 6.5.0.  in C# which is dependent on System.Runtime.CompilerServices.Unsafe.dll version 4.5.0. 
When we use System.Runtime.CompilerServices.Unsafe version 5.0.0 we got brokerunreachable exception. Is there a known solution for that problem? 

Best regards. 

Luke Bakken

unread,
Oct 6, 2023, 2:06:56 PM10/6/23
to rabbitmq-users
Hello,

The RabbitMQ .NET client does not have a dependency on  System.Runtime.CompilerServices.Unsafe.dll

Please provide a git repository I can clone and build to see this error. I can't assist you further with this limited amount of information.

Thanks,
Luke

Esra İnce

unread,
Oct 6, 2023, 3:38:08 PM10/6/23
to rabbitm...@googlegroups.com
Hi Luke,
When i download RabbitMQ .NET Client with nuget package manager  for a console app .net 4.6.1 Framework, it shows the pop up below which uses System.Runtime.CompilerService.Unsafe 4.5.3 :

image.png

Should i use another way to download it  ?

Best regards. 

Luke Bakken <luker...@gmail.com>, 6 Eki 2023 Cum, 21:07 tarihinde şunu yazdı:
--
You received this message because you are subscribed to a topic in the Google Groups "rabbitmq-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rabbitmq-users/c3u4lf8V430/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rabbitmq-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/68f3d492-55bf-42da-8076-48395c31c624n%40googlegroups.com.

Luke Bakken

unread,
Oct 6, 2023, 3:45:35 PM10/6/23
to rabbitmq-users
Ah I see, one of the RabbitMQ.Client dependencies must specify  System.Runtime.CompilerService.Unsafe. There is not a direct dependency.

Why can't you use version 4.5.3?

Also, I really doubt that using version System.Runtime.CompilerService.Unsafe 5.0.0 is what causes your issue.

At any rate, the fastest way for me to assist you is to provide code that I can run to see the same issue.

Thanks,
Luke

Esra İnce

unread,
Oct 6, 2023, 4:44:58 PM10/6/23
to rabbitm...@googlegroups.com
Hi Luke,
When i update the config file with assembly binding for that dll, problem seems to be fixed now. 

Thank you


Luke Bakken <luker...@gmail.com> şunları yazdı (6 Eki 2023 22:45):

Ah I see, one of the RabbitMQ.Client dependencies must specify  System.Runtime.CompilerService.Unsafe. There is not a direct dependency.

Why can't you use version 4.5.3?

Also, I really doubt that using version System.Runtime.CompilerService.Unsafe 5.0.0 is what causes your issue.

At any rate, the fastest way for me to assist you is to provide code that I can run to see the same issue.

Thanks,
Luke

On Friday, October 6, 2023 at 12:38:08 PM UTC-7 Esra wrote:
Hi Luke,
When i download RabbitMQ .NET Client with nuget package manager  for a console app .net 4.6.1 Framework, it shows the pop up below which uses System.Runtime.CompilerService.Unsafe 4.5.3 :

<image.png>


Should i use another way to download it  ?

Best regards. 

Luke Bakken <luker...@gmail.com>, 6 Eki 2023 Cum, 21:07 tarihinde şunu yazdı:
Hello,

The RabbitMQ .NET client does not have a dependency on  System.Runtime.CompilerServices.Unsafe.dll

Please provide a git repository I can clone and build to see this error. I can't assist you further with this limited amount of information.

Thanks,
Luke

On Friday, October 6, 2023 at 4:30:56 AM UTC-7 Esra wrote:
Hello Rabbitmq users,
We are trying to update rabbitmq.client.dll version to its latest stabile version 6.5.0.  in C# which is dependent on System.Runtime.CompilerServices.Unsafe.dll version 4.5.0. 
When we use System.Runtime.CompilerServices.Unsafe version 5.0.0 we got brokerunreachable exception. Is there a known solution for that problem?

--
You received this message because you are subscribed to a topic in the Google Groups "rabbitmq-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rabbitmq-users/c3u4lf8V430/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rabbitmq-user...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages