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 API Support » Error when trying to register dll using C++ XMS

Post new topic  Reply to topic
 Error when trying to register dll using C++ XMS « View previous topic :: View next topic » 
Author Message
magr01
PostPosted: Tue Nov 15, 2011 5:07 am    Post subject: Error when trying to register dll using C++ XMS Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Tue Nov 15, 2011 6:24 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

If you are "not that good at these things", open a PMR.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Tue Nov 15, 2011 7:13 am    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Tue Nov 15, 2011 7:21 am    Post subject: Re: Error when trying to register dll using C++ XMS Reply with quote

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
View user's profile Send private message
magr01
PostPosted: Tue Nov 15, 2011 9:35 am    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Tue Nov 15, 2011 9:41 am    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Tue Nov 15, 2011 12:48 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
shashikanth_in
PostPosted: Fri Nov 18, 2011 12:45 am    Post subject: Reply with quote

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
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 API Support » Error when trying to register dll using C++ XMS
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.