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 Installation/Configuration Support » How to check if mq client exists on end user system in .net

Post new topic  Reply to topic
 How to check if mq client exists on end user system in .net « View previous topic :: View next topic » 
Author Message
san3297
PostPosted: Thu Nov 29, 2007 7:20 pm    Post subject: How to check if mq client exists on end user system in .net Reply with quote

Newbie

Joined: 21 Nov 2007
Posts: 7

Hi,
My mq application works fine if mq client is installed on the client machine.But if there is no client installed and if tried to open the quemanager it says that application encountered problem and closes the application abruplty.I am unable to capture this exception.

Can u please let me know if i can catch the exception in catch block or is there anyway that i can check if mq client exist on the end user system so that if there is no client i can skip mq related stuff and show the user a friendly message.Iam working in .net environment.Thank you.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Nov 30, 2007 3:29 am    Post subject: Reply with quote

Grand High Poobah

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

You could restrict yourself to the managed .NET API and distribute with your runtime...
Or you can try to catch a SYSTEM exception???
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
san3297
PostPosted: Fri Nov 30, 2007 7:29 am    Post subject: Reply with quote

Newbie

Joined: 21 Nov 2007
Posts: 7

Iam trying to catch the system exception instead of making lot of changes.But iam unable to do it.Am i not catching the correct exception.Please let me know.Thanks.

catch (System.DllNotFoundException ex)
{
ErrorText = ex.Message;
flag = false;
}
catch (System.TypeLoadException ex)
{
ErrorText = ex.Message;
flag = false;
}
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 Installation/Configuration Support » How to check if mq client exists on end user system in .net
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.