Register RabbitMQ.Client 3.3.5_dontnet_2.0.dll Issue

617 views
Skip to first unread message

kumarasami....@nielsen.com

unread,
Jul 20, 2016, 4:00:46 AM7/20/16
to rabbitmq-users
Hi,

I am trying in register RabbitMQ.Client 3.3.5_Dontnet_2.0 zip on Windows server.


CMD prompt: regsvr32 dllname

It showing error like dll is not valid.

I can install dll with Dot net framework 3.0 from msi file.

I want to install RabbitMQ.Client 3.3.5 with dot net framework 2.0. 

Can i have its msi file?


Thanks
Kumar




Karl Nilsson

unread,
Jul 20, 2016, 4:16:44 AM7/20/16
to rabbitm...@googlegroups.com
Hi,

I am not sure why you are trying to register the RabbitMQ dll but you probably either want to use regasm (https://msdn.microsoft.com/en-us/library/tzat5yw6(v=vs.80).aspx) to register it for COM interop or simply add it to the Global Assembly Cache to make it available for consumption from .NET (https://msdn.microsoft.com/en-us/library/dkkx7f79(v=vs.110).aspx).

I have never tried doing either as I tend to include the dll with my applications instead. COM interop and installing assemblies into the GAC can get troublesome quickly.

Cheers
Karl

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Karl Nilsson

Staff Software Engineer, Pivotal/RabbitMQ

kumarasami....@nielsen.com

unread,
Jul 20, 2016, 4:28:56 AM7/20/16
to rabbitmq-users
Hi,

What my request is I am going to use RabbmitMQ dll on SQL CLR with framework 2.0.

I downloaded 3.3.5 version msi file. it showing some error..

Can i have a link to get RabbitMQ.Client msi (it must support dot net framework 2.0) file to install ?


Thanks.

Karl Nilsson

unread,
Jul 20, 2016, 4:41:53 AM7/20/16
to rabbitm...@googlegroups.com
Ok so you are saying you aren't able to install the msi file that is available for 3.3.5? What is the error you are getting? 

kumarasami....@nielsen.com

unread,
Jul 20, 2016, 6:12:56 AM7/20/16
to rabbitmq-users
Hi,

I can able to install msi from RabbitMQ client 3.3.5 dll.

If I am selected .Net framework 3.0, I can able to build SQL CLR project successfully.

 

I want to build SQL CLR project with framework 2.0.

If I am selected framework 2.0 and then build, I am getting some error as below.


Error:

The type or namespace name 'RabbitMQ' could not be found (are you missing a using directive or an assembly reference?)


Please see the attachment


Thanks

RabbitMQ.docx

Karl Nilsson

unread,
Jul 20, 2016, 6:24:25 AM7/20/16
to rabbitm...@googlegroups.com
How are you adding RabbitMQ.Client as a reference? What happens if you download the zip for .NET 2.0 and add it as a reference by browsing to the dll directly?

kumarasami....@nielsen.com

unread,
Jul 20, 2016, 6:27:26 AM7/20/16
to rabbitmq-users
I just run msi file.
And i have added reference by browling to the dll from program files folder..

The same code working fine with framework 3.0.

If i changed framework to 2.0 then it will giving error.

Karl Nilsson

unread,
Jul 20, 2016, 7:49:33 AM7/20/16
to rabbitm...@googlegroups.com
What happens if you download: http://www.rabbitmq.com/releases/rabbitmq-dotnet-client/v3.3.5/rabbitmq-dotnet-client-3.3.5-dotnet-2.0.zip , extract it and reference this dll instead with .NET framework 2.0?

kumarasami....@nielsen.com

unread,
Jul 20, 2016, 8:25:56 AM7/20/16
to rabbitmq-users
I explain what are the steps i did

2) Add reference RabbitMQ.Client dll from extract folder by browsing option.
3) SQL CLR Project properties -> .Net framework 2.0
4) Add new UserDefinedFunction cs file
5) Add below code on cs file
using RabbitMQ.Client;
6) build the project and get error as point Err

If i changed framework 2.0 to 3.0, build process completed successfully

But i want to build the project with framework 2.0. Please help me.

Err:
Getting errors as

------ Rebuild All started: Project: CLRMessageQueue, Configuration: Debug Any CPU ------
C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1697,5): Warning:  MSB3268: The primary reference "RabbitMQ.Client" could not be resolved because it has an indirect dependency on the framework assembly "System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v2.0". To resolve this problem, either remove the reference "RabbitMQ.Client" or retarget your application to a framework version which contains "System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089".
C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1697,5): Warning:  MSB3268: The primary reference "RabbitMQ.Client" could not be resolved because it has an indirect dependency on the framework assembly "System.Runtime.Serialization, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v2.0". To resolve this problem, either remove the reference "RabbitMQ.Client" or retarget your application to a framework version which contains "System.Runtime.Serialization, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089".
C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1697,5): Warning:  MSB3268: The primary reference "RabbitMQ.Client" could not be resolved because it has an indirect dependency on the framework assembly "System.IdentityModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v2.0". To resolve this problem, either remove the reference "RabbitMQ.Client" or retarget your application to a framework version which contains "System.IdentityModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089".
C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1697,5): Warning:  MSB3268: The primary reference "RabbitMQ.Client" could not be resolved because it has an indirect dependency on the framework assembly "System.IdentityModel.Selectors, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v2.0". To resolve this problem, either remove the reference "RabbitMQ.Client" or retarget your application to a framework version which contains "System.IdentityModel.Selectors, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089".
C:\Program Files (x86)\MSBuild\12.0\bin\Csc.exe /noconfig /nowarn:1701,1702,2008 /nostdlib+ /errorreport:prompt /warn:4 /errorendlocation /preferreduilang:en-US /highentropyva- /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Data.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /debug+ /debug:full /optimize- /out:obj\Debug\CLRMessageQueue.dll /target:library /warnaserror- /utf8output GetDetailsFromAMQP.cs "C:\Users\pattku01\AppData\Local\Temp\3\.NETFramework,Version=v2.0.SqlClrAttributes.cs"
C:\Users\pattku01\Desktop\MessageQueue\Fw 2.0\CLRMessageQueue\CLRMessageQueue\GetDetailsFromAMQP.cs(3,7): Error:  CS0246: The type or namespace name 'RabbitMQ' could not be found (are you missing a using directive or an assembly reference?)
C:\Users\pattku01\Desktop\MessageQueue\Fw 2.0\CLRMessageQueue\CLRMessageQueue\GetDetailsFromAMQP.cs(5,7): Error:  CS0246: The type or namespace name 'RabbitMQ' could not be found (are you missing a using directive or an assembly reference?)
Done building project "CLRMessageQueue.sqlproj" -- FAILED.

kumarasami....@nielsen.com

unread,
Jul 20, 2016, 9:11:55 AM7/20/16
to rabbitmq-users
And also can you please make sure that rabbitmq-dotnet-client-3.3.5-dotnet-2.0.zip file have dll with framework 2.0.

I thought, the dll from zip file is referred by framework 3.0.

Could you please confirm.

Michael Klishin

unread,
Jul 20, 2016, 11:04:49 AM7/20/16
to rabbitm...@googlegroups.com
I'm afraid .NET 2.0 support isn't a commonly requested feature and thus not a priority.
MK

Staff Software Engineer, Pivotal/RabbitMQ

kumarasami....@nielsen.com

unread,
Jul 21, 2016, 5:32:14 AM7/21/16
to rabbitmq-users
Thank you for your support
Reply all
Reply to author
Forward
0 new messages