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 » Could not load type 'IBM.WMQ.MQDestination' from assembly

Post new topic  Reply to topic
 Could not load type 'IBM.WMQ.MQDestination' from assembly « View previous topic :: View next topic » 
Author Message
kun.leeing
PostPosted: Mon Nov 03, 2008 8:29 pm    Post subject: Could not load type 'IBM.WMQ.MQDestination' from assembly Reply with quote

Disciple

Joined: 27 Sep 2008
Posts: 171

Hi,Experts.

My app putting msg run correctly on my pc that have installed MQ server (windows xp,.net framework 2.0). But It's failed when I placed it on another client pc and throw a error.

System.TypeLoadException: Could not load type 'IBM.WMQ.MQDestination' from assembly 'amqmdnet, Version=1.0.0.3, Culture=neutral, PublicKeyToken=dd3cb1c9aae9ec97'
Back to top
View user's profile Send private message Send e-mail
fjb_saper
PostPosted: Mon Nov 03, 2008 8:33 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

You probably need to also install the XMS package...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
kun.leeing
PostPosted: Mon Nov 03, 2008 9:31 pm    Post subject: Reply with quote

Disciple

Joined: 27 Sep 2008
Posts: 171

Thanks.

But where can I get the package?
Back to top
View user's profile Send private message Send e-mail
kun.leeing
PostPosted: Mon Nov 03, 2008 9:38 pm    Post subject: Reply with quote

Disciple

Joined: 27 Sep 2008
Posts: 171

And why can my app be run on my pc installed MQServer if I missed the installation of xms package. It just can not be run in other pcs which just install MQClient and set environment variables.
Back to top
View user's profile Send private message Send e-mail
fjb_saper
PostPosted: Tue Nov 04, 2008 3:16 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Server connection vs Client connection perhaps?
You need different libraries in the link list...

Look at the support pack page for support pack IA94 for C, C++ or IA9H for .NET for the XMS support packs


_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
ghcnguyen
PostPosted: Tue Aug 25, 2009 8:13 pm    Post subject: Reply with quote

Newbie

Joined: 23 Aug 2009
Posts: 5

Hi,

Why do i get System.TypeLoadException: Could not load type 'IBM.WMQ.MQDestination

when i build a client on a v7 MQ vista machine and then run it on a v6 MQ win xp machine.

please help.
Back to top
View user's profile Send private message
shashikanth_in
PostPosted: Wed Aug 26, 2009 7:34 am    Post subject: Reply with quote

Centurion

Joined: 26 Feb 2009
Posts: 123

You are using WMQ .NET classes and not XMS. So installing XMS IA9H may not solve your problem.

You can't run an .NET application that has been built with MQ v7 assembly on another machine where MQv6 is installed. Type load exception is because, MQDestination.cs class is newly added in WMQ v7 client and it isn't available in v6. So, when the application tried to execute on a computer with v6 client installed. It is trying to look for v7 classes(new) and hence the exception.

HTH
Back to top
View user's profile Send private message
arek
PostPosted: Wed Oct 20, 2010 12:07 pm    Post subject: Reply with quote

Newbie

Joined: 20 Oct 2010
Posts: 1

Hi all. Any development on this problem.
I don't really understand why this does not work.

Aparently assembly amqmdnet is loaded just fine on system with v6 client (even version is the same in v6 and v7 client). What exacly tries to access MQDestination class? I'm not using it in my app (application is actualy written with v6 client and I'm using v7 only because I moved to Win 7 64-bit).

So, my app written for v6 client (not using MQDestination anywhere) and compiled with v7 client is copied to another machine with v6 client installed. No MQ related files form my machine (that would be from v7) are copied with app. What exacly is using MQDestination?!
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Oct 20, 2010 12:15 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

arek wrote:
Hi all. Any development on this problem.
I don't really understand why this does not work.

Aparently assembly amqmdnet is loaded just fine on system with v6 client (even version is the same in v6 and v7 client). What exacly tries to access MQDestination class? I'm not using it in my app (application is actualy written with v6 client and I'm using v7 only because I moved to Win 7 64-bit).

So, my app written for v6 client (not using MQDestination anywhere) and compiled with v7 client is copied to another machine with v6 client installed. No MQ related files form my machine (that would be from v7) are copied with app. What exacly is using MQDestination?!


The code you write for V7 is not compatible with the code you write for V6.
The code you compiled with V7 is not compatible with a V6 distribution, even if it does not contain any V7 specific commands.
You need to recompile for the V6 client.

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
shashikanth_in
PostPosted: Wed Oct 20, 2010 8:26 pm    Post subject: Reply with quote

Centurion

Joined: 26 Feb 2009
Posts: 123

MQDestination in MQ v7 is an abstract class. MQQueue and MQTopic classes are derived from MQDestination. So when you compiled with V7 client, MQDestination gets pulled in indirectly even if you have not used it explicitly.

Using .NET book in MQ v7 InfoCenter has more details.
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 » Could not load type 'IBM.WMQ.MQDestination' from assembly
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.