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 » General Discussion » Unable to load DLL 'amqxcs2.dll'

Post new topic  Reply to topic
 Unable to load DLL 'amqxcs2.dll' « View previous topic :: View next topic » 
Author Message
vivek.gargMQ
PostPosted: Tue Dec 19, 2006 3:23 am    Post subject: Unable to load DLL 'amqxcs2.dll' Reply with quote

Novice

Joined: 12 Oct 2006
Posts: 19

Hello,

We are currently using MQSeries 6.0 with .NET 2005.
I got the following problem

Unable to load DLL (amqxcs2.dll).

when instantiating MQQueueManager..
_MQQueueManager = New IBM.WMQ.MQQueueManager(queueMgr)

Connect failed. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.DllNotFoundException: Unable to load DLL 'amqxcs2.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
at IBM.WMQ.MQCommonServices.xcsInitialize(UInt16 scope, UInt16 attributes, Byte[] charName, Byte[] charPrefix, xcsHPOOL& hPool)
at IBM.WMQ.MQCommonServices.Initialize()
at IBM.WMQ.MQCommonServices..ctor()
--- End of inner exception stack trace ---
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache)
at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
at System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args)
at IBM.WMQ.CommonServices.CreateCommonServices()
at IBM.WMQ.CommonServices.TraceConstructor(String objectId, String sccsid)
at IBM.WMQ.MQBase.TrConstructor(String sccsid)
at IBM.WMQ.MQQueueManager..ctor(String queueManagerName)

Can anybody offer any suggestions or help?

Thanks,
Vivek
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Vitor
PostPosted: Tue Dec 19, 2006 3:28 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

And you're certain all the paths are correct, the dll's been registered, etc, etc?

Please provide details of all the checks & diagnostic procedures you've tried so far (if any).

Including why this thread isn't relevant:

http://www.mqseries.net/phpBB2/viewtopic.php?t=14149
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
vivek.gargMQ
PostPosted: Tue Dec 19, 2006 6:40 am    Post subject: MQ_RC_Q_MGR_NOT_Available from MQ Client........... Reply with quote

Novice

Joined: 12 Oct 2006
Posts: 19

Vitor,

This problem got resolved using MQServer, Environment setting variables..
but now I am receiving another error, thats MQRC_Q_MGR_NOT_AVAILABLE

This also at the time of connectiong to Queue Manager..

I have specified Channel Name (thats Server Connection Channel, Host Name - Ip Address of the server and port Number........

Previous I set MQServer using

Same Channel as Server Connection for Client Connection -
SET MQSERVER = "Channel Name"/TCP/IPAddress(Port No)

Below is the Code. Where Right hand side have values for these...........

IBM.WMQ.MQEnvironment.Channel = channel
IBM.WMQ.MQEnvironment.Hostname = hostname IBM.WMQ.MQEnvironment.Port = port
'instantiate the queue manager

_MQQueueManager = New IBM.WMQ.MQQueueManager(queueMgr) 'queueMgr

Any work around to resolve this error.


Thanks,
Vivek
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Vitor
PostPosted: Tue Dec 19, 2006 7:01 am    Post subject: Re: MQ_RC_Q_MGR_NOT_Available from MQ Client........... Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

vivek.gargMQ wrote:

Any work around to resolve this error.


No, but you could try fixing it!

2059 is one of the most common errors out of MQ, caused by a variety of possible causes. Id you search the forum you'll find a raft of information on how to check which problem you're experiencing and how to fix it.
_________________
Honesty is the best policy.
Insanity is the best defence.
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 » General Discussion » Unable to load DLL 'amqxcs2.dll'
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.