Author |
Message
|
agokli |
Posted: Tue Aug 09, 2005 9:35 am Post subject: Websphere MQ .Net |
|
|
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 |
|
 |
agokli |
Posted: Wed Aug 10, 2005 11:36 am Post subject: |
|
|
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 |
|
 |
RogerLacroix |
Posted: Wed Aug 10, 2005 11:50 am Post subject: |
|
|
 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 |
|
 |
agokli |
Posted: Wed Aug 10, 2005 12:25 pm Post subject: |
|
|
Novice
Joined: 04 Jan 2002 Posts: 12
|
Yes, I did several times....
Regards |
|
Back to top |
|
 |
Mjb_MQ |
Posted: Mon Aug 29, 2005 10:38 am Post subject: MQ .net |
|
|
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 |
|
 |
vennela |
Posted: Mon Aug 29, 2005 10:45 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
CLASSPATH has got nothing to do with .Net. |
|
Back to top |
|
 |
Mjb_MQ |
Posted: Mon Aug 29, 2005 11:00 am Post subject: |
|
|
Newbie
Joined: 29 Aug 2005 Posts: 4
|
Thought it would be worth a go! ... any ideas? |
|
Back to top |
|
 |
vennela |
Posted: Mon Aug 29, 2005 11:13 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
What have you tried so far |
|
Back to top |
|
 |
Mjb_MQ |
Posted: Mon Aug 29, 2005 11:21 am Post subject: |
|
|
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 |
|
 |
vennela |
Posted: Mon Aug 29, 2005 11:26 am Post subject: |
|
|
 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 |
|
 |
Mjb_MQ |
Posted: Mon Aug 29, 2005 11:27 am Post subject: |
|
|
Newbie
Joined: 29 Aug 2005 Posts: 4
|
|
Back to top |
|
 |
JasonE |
Posted: Tue Aug 30, 2005 11:50 am Post subject: |
|
|
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 |
|
 |
|