Author |
Message
|
magr01 |
Posted: Tue Nov 15, 2011 5:07 am Post subject: Error when trying to register dll using C++ XMS |
|
|
Newbie
Joined: 15 Nov 2011 Posts: 6
|
Hello,
I have a application written in C++ where I have just changed the MQ API to XMS. Compiling and linking the works fine and using the dll on a testserver works fine (no errors when registering the dll).
However, when trying to put this in production I got an error. When checking the Event log, the following can be found:
Generate Activation Context failed for C:\Program Files\IBM\XMS\bin\gxi.dll. Reference error message: The referenced assembly is not installed on your system.
I do have installed XMS at the location indicated.
I am not that good at these things and would therefor really appreciate any help I can get. If you need more info from me, just let me know
/Martin |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Nov 15, 2011 6:24 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
If you are "not that good at these things", open a PMR. |
|
Back to top |
|
 |
bruce2359 |
Posted: Tue Nov 15, 2011 7:13 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Or ask someone who is good at these things. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Nov 15, 2011 7:21 am Post subject: Re: Error when trying to register dll using C++ XMS |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
magr01 wrote: |
Generate Activation Context failed for C:\Program Files\IBM\XMS\bin\gxi.dll. Reference error message: The referenced assembly is not installed on your system. |
This would seem to be contradicted by:
magr01 wrote: |
I do have installed XMS at the location indicated.
|
If you're sure XMS is installed and installed correctly by whoever did it in production then I endorse the comments of my most worthy associates. A PMR will bring you IBM advice, another source of possible assistance would be the Windows admins responsible for the production box and/or any .NET development / deployment staff at your site.
There could be a configuration step your local environment requires. I've seen sites where the Windows Registry is reset to an "approved" state by a script on a regular basis. Aside from the inherent dangers of this strategy, something similar could be de-registering the "unknown" dll.
But I suspect it's as simple as XMS is correctly installed on your test machine, and incorrectly installed in production. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
magr01 |
Posted: Tue Nov 15, 2011 9:35 am Post subject: |
|
|
Newbie
Joined: 15 Nov 2011 Posts: 6
|
Thanks for the replies.
Read somewhere that I might need to install Microsoft Visual C++ 2005 Redistributable Package to get it to work. (the server where the dll should run do not have Visual Studio installed)
Any input on this?
/Martin |
|
Back to top |
|
 |
Vitor |
Posted: Tue Nov 15, 2011 9:41 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
magr01 wrote: |
Read somewhere |
Where? It's not in the documented list of pre-reqs for XMS.
Which indicates that the XMS installation will fail without them, touching back to my earlier point on an installation issue. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Nov 15, 2011 12:48 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
XMS is not an install in a stand alone environment. You need to have the MQ Client (or server) installed if that is not yet the case.  _________________ MQ & Broker admin |
|
Back to top |
|
 |
shashikanth_in |
Posted: Fri Nov 18, 2011 12:45 am Post subject: |
|
|
Centurion
Joined: 26 Feb 2009 Posts: 123
|
XMS requires MQ C Client to be installed if your connecting to a MQ Queue manager. XMS also provides connectivity to Default Messaging engine of WebSphere Application Server. If you are connecting to the Default Messaging Engine, then MQ C Client is not required.
The issue could be because of a dll that XMS depends on. It could be the C runtime dlls. This link might be helpful: http://blogs.msdn.com/b/jreddy/archive/2005/12/23/507107.aspx |
|
Back to top |
|
 |
|