ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » Websphere MQ .Net

Post new topic  Reply to topic
 Websphere MQ .Net « View previous topic :: View next topic » 
Author Message
agokli
PostPosted: Tue Aug 09, 2005 9:35 am    Post subject: Websphere MQ .Net Reply with quote

Novice

Joined: 04 Jan 2002
Posts: 12

I am using Websphere MQ and .Net, using amqmdnet.dll. In assembly, there is refernce for amqmdnet.dll.

Here is the code:
string mqQueueManager = AppSettings.QueueManger;
string mqQueue = AppSettings.OutputQueue;
string mqOptions = AppSettings.MQOptions;
MQQueueManager qm = null;

// access the queue manager
qm = new MQQueueManager(mqQueueManager);

While running the .Net client, the exception is thrown:

System.DLLNotFoundException - Unable to load dll <amqxcs2.dll>

It seems that .Net is not able to find path for amqxcs2.dll. I tried to reference the same dll within Visula Studio 2003, but found an error with not correct format. This is probably because the dll is not strong name assembly. I also tried to register the dll with GAC, but was unable to do so, as it is not strong name assembly.

Do any one know possible solution for this issue?
Back to top
View user's profile Send private message
agokli
PostPosted: Wed Aug 10, 2005 11:36 am    Post subject: Reply with quote

Novice

Joined: 04 Jan 2002
Posts: 12

I fixed by modifying Windows 2000's Environment Variable, PATH to point to <install dir>\ibm\WebSphere MQ\bin. Nothing else worked.

I wish Websphere MQ (V5.3 and V 6.0) does it for you.
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Wed Aug 10, 2005 11:50 am    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

Hi,

That should have been done when you installed MQ. Did you reboot your PC after you installed MQ??

Regards,
Roger Lacroix
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
agokli
PostPosted: Wed Aug 10, 2005 12:25 pm    Post subject: Reply with quote

Novice

Joined: 04 Jan 2002
Posts: 12

Yes, I did several times....

Regards
Back to top
View user's profile Send private message
Mjb_MQ
PostPosted: Mon Aug 29, 2005 10:38 am    Post subject: MQ .net Reply with quote

Newbie

Joined: 29 Aug 2005
Posts: 4

Hi,

I have the same exception. I have modified the following Env. Variables

CLASSPATH
PATH

But to no avail... any other ideas?
Back to top
View user's profile Send private message
vennela
PostPosted: Mon Aug 29, 2005 10:45 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

CLASSPATH has got nothing to do with .Net.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Mjb_MQ
PostPosted: Mon Aug 29, 2005 11:00 am    Post subject: Reply with quote

Newbie

Joined: 29 Aug 2005
Posts: 4

Thought it would be worth a go! ... any ideas?
Back to top
View user's profile Send private message
vennela
PostPosted: Mon Aug 29, 2005 11:13 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

What have you tried so far
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Mjb_MQ
PostPosted: Mon Aug 29, 2005 11:21 am    Post subject: Reply with quote

Newbie

Joined: 29 Aug 2005
Posts: 4

I'm running win2k Prof / .Net 1.1 / C#

* re-install of MQ and dev tools.
* modifying the env variable
* attempted to manually register the dll with regsvr32.exe
- regsvr32.exe "C:\Program Files\IBM\WebSphere MQ\bin\amqxcs2.dll"

but this returns "..dll was loaded, but DLLRegisterServer entry point was not found"

* several reboots.

I can not add a reference to the DLL in the project or GAC as it's not a COM component.

I have not yet tried a complete un-install and re-install... I guess that's my next option. a Path or DLL corruption issue?
Back to top
View user's profile Send private message
vennela
PostPosted: Mon Aug 29, 2005 11:26 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

I am not familiar with .Net but try to do some search on this site for GAC with author as JasonE and that might get some useful results.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Mjb_MQ
PostPosted: Mon Aug 29, 2005 11:27 am    Post subject: Reply with quote

Newbie

Joined: 29 Aug 2005
Posts: 4

Ok, will do, thank you.
Back to top
View user's profile Send private message
JasonE
PostPosted: Tue Aug 30, 2005 11:50 am    Post subject: Reply with quote

Grand Master

Joined: 03 Nov 2003
Posts: 1220
Location: Hursley

Hey - my name's been mentioned! I was just rendomly browsing and saw this one... you're lucky! (Dont have much free time nowdays, hence my less frequent participation)

The .net interface is not fully managed and hence makes calls using interop services through to amqxcs2 and mqm/mqic32. You cannot distribute a .net application etc with this library as it has a prereq of the MQ (client or server).

These DLLS would get picked up from the system path, so you need to ensure its been set and you have rebooted. Make sure you either have the long path, or alternatively a correct shortpath on the PATH in the environment (window) you run the application from - Note you can query the env vars in the full .net environment, and hence you could check to see if its right from your app.

Worst case, take a filemon log of your app failing and look to see why - you should see it searching in each directory on the path for each dll dependency, and see which fails.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » Websphere MQ .Net
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.