You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Rohit Magazine <ro...@gmail.com> on 2012/10/13 00:07:28 UTC
Unable to use ActiveMQ.NMS on Windows 7
I have a solution that uses Apache.NMS.ActiveMQ ver 1.5.6. This solution
works fine on WindowsXP but when i port the same code to Windows7.
It gives me {host not found} exception at
Apache.NMS.ActiveMQ.ConnectionFactory.CreateActiveMQConnection ....... in
C:\dev\NMS.ActiveMQ\src\csharp\ConnectionFactory.cs:line 151
at Apache.NMS.ActiveMQ.ConnectionFactory.CreateConnection ....... in
C:\dev\NMS.ActiveMQ\src\csharp\ConnectionFactory.cs : line 107
Do i need to do anything specific for this code to work on Windows 7 ?
Please advice
--
View this message in context: http://activemq.2283324.n4.nabble.com/Unable-to-use-ActiveMQ-NMS-on-Windows-7-tp4657777.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Unable to use ActiveMQ.NMS on Windows 7
Posted by Jim Gomes <e....@gmail.com>.
Use the full .NET framework in your project, not the Client Profile.
Right-click on your Project in *Solution Explorer*, and select Properties.
On the *Application* tab, set the *Target framework* to *.NET Framework 4*.
On Mon, Oct 15, 2012 at 5:44 PM, songu <so...@gmail.com> wrote:
> Hi Guys,
>
> I have an issue with ActiveMQ.NMS as well. I added both
> "Apache.NMS.ActiveMQ" and "Apache.NMS" into my .Net C# solution. But they
> can not be resolved due to "have a dependency on System.Web,
> Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, which is
> not the current target framework .NetFramework, Version=v4.0,
> Profile=Client. "
>
> My PC has .Net 4.0 installed and OS is WIN 7. Any suggestion what is the
> problem?
>
> Thanks!
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Unable-to-use-ActiveMQ-NMS-on-Windows-7-tp4657777p4657827.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
Re: Unable to use ActiveMQ.NMS on Windows 7
Posted by songu <so...@gmail.com>.
Hi Guys,
I have an issue with ActiveMQ.NMS as well. I added both
"Apache.NMS.ActiveMQ" and "Apache.NMS" into my .Net C# solution. But they
can not be resolved due to "have a dependency on System.Web,
Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, which is
not the current target framework .NetFramework, Version=v4.0,
Profile=Client. "
My PC has .Net 4.0 installed and OS is WIN 7. Any suggestion what is the
problem?
Thanks!
--
View this message in context: http://activemq.2283324.n4.nabble.com/Unable-to-use-ActiveMQ-NMS-on-Windows-7-tp4657777p4657827.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Unable to use ActiveMQ.NMS on Windows 7
Posted by Rohit Magazine <ro...@gmail.com>.
Thanks...
That was the issue. I had to use FQDN rather than just the hostname.
--
View this message in context: http://activemq.2283324.n4.nabble.com/Unable-to-use-ActiveMQ-NMS-on-Windows-7-tp4657777p4657809.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Unable to use ActiveMQ.NMS on Windows 7
Posted by Timothy Bish <ta...@gmail.com>.
On Fri, 2012-10-12 at 15:07 -0700, Rohit Magazine wrote:
> I have a solution that uses Apache.NMS.ActiveMQ ver 1.5.6. This solution
> works fine on WindowsXP but when i port the same code to Windows7.
> It gives me {host not found} exception at
> Apache.NMS.ActiveMQ.ConnectionFactory.CreateActiveMQConnection ....... in
> C:\dev\NMS.ActiveMQ\src\csharp\ConnectionFactory.cs:line 151
> at Apache.NMS.ActiveMQ.ConnectionFactory.CreateConnection ....... in
> C:\dev\NMS.ActiveMQ\src\csharp\ConnectionFactory.cs : line 107
>
> Do i need to do anything specific for this code to work on Windows 7 ?
>
> Please advice
Are you sure that this Windows 7 machine can resolve that host name,
have you tried using the IP Address? Is there a firewall issue?
>
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/Unable-to-use-ActiveMQ-NMS-on-Windows-7-tp4657777.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
--
Tim Bish
Sr Software Engineer | RedHat Inc.
tim.bish@redhat.com | www.fusesource.com | www.redhat.com
skype: tabish121 | twitter: @tabish121
blog: http://timbish.blogspot.com/