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 Running XMS.NET Sample App VS 2005

Post new topic  Reply to topic
 Error Running XMS.NET Sample App VS 2005 « View previous topic :: View next topic » 
Author Message
markf1
PostPosted: Thu Apr 27, 2006 11:49 am    Post subject: Error Running XMS.NET Sample App VS 2005 Reply with quote

Newbie

Joined: 27 Apr 2006
Posts: 4

I keep getting the following error runing the sample VS.Net app can any help me?


Enter '?' for help with any question.

Desired mode to run this sample application [simple]:
Enter connection type [wpm]: wmq
Enter connection mode [client]:
Enter queue manager (optional): UTQM
Enter hostname [localhost]: xxx04-242.xxxxxxx.com(141x)
Enter destination URI [queue:///SYSTEM.DEFAULT.LOCAL.QUEUE]: XXXXX.TESTQ
Your message (optional): Test.Net
Connection Factory created.
Connection created.
Session created.
Exception caught: System.AccessViolationException: Attempted to read or write pr
otected memory. This is often an indication that other memory is corrupt.
at IBM.XMS.WMQ.WmqQueue.SetupQueueName(String name)
at IBM.XMS.WMQ.WmqQueue..ctor(String name, WmqSession s)
at IBM.XMS.WMQ.WmqSession.CreateQueue(String queueName)
at IBM.XMS.Samples.XMSApp.MyCreateDestination(ISession session) in C:\Program
Files\IBM\Message Service Client for .NET\tools\samples\src2005\SampleCommon\XM
SApp.cs:line 241
at IBM.XMS.Samples.SampleProducer.SendMessages() in C:\Program Files\IBM\Mess
age Service Client for .NET\tools\samples\src2005\SampleProducer\SampleProducer.
cs:line 136
at IBM.XMS.Samples.SampleProducer.Main(String[] args) in C:\Program Files\IBM
\Message Service Client for .NET\tools\samples\src2005\SampleProducer\SampleProd
ucer.cs:line 94
Sample execution FAILED!
Press return key to continue...
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Apr 27, 2006 11:54 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Umm.

A quick check suggests you should have "queue:/// XXXXX.TESTQ" rather than "XXXXX.TESTQ".
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
markf1
PostPosted: Thu Apr 27, 2006 12:00 pm    Post subject: Reply with quote

Newbie

Joined: 27 Apr 2006
Posts: 4

Thanks that help now I have a new error to look into:

Enter '?' for help with any question.

Desired mode to run this sample application [simple]:
Enter connection type [wpm]: wmq
Enter connection mode [client]:
Enter queue manager (optional): UTQM
Enter hostname [localhost]: xx04-242.xxxxxxx.com(1415)
Enter destination URI [queue:///SYSTEM.DEFAULT.LOCAL.QUEUE]: queue:///XXXXX.TEST
Q.com(1415)
Your message (optional): TEST.NET
Connection Factory created.
Connection created.
Session created.
Destination created: queue:///TDXR1.TESTQ.com(1415)?persistence=1.
Producer created.
Exception caught: CompCode: 2, Reason: 2085
Sample execution FAILED!
Press return key to continue...
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Apr 27, 2006 12:02 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

2085 is an MQ return code. It means Object Not Found.

So you spelled your queue name wrong or forgot to create it in the first place.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
vennela
PostPosted: Thu Apr 27, 2006 12:02 pm    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

Did you create the QUEUE (XXXXX.TEST )in MQ?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
markf1
PostPosted: Thu Apr 27, 2006 12:02 pm    Post subject: Reply with quote

Newbie

Joined: 27 Apr 2006
Posts: 4

Thanks
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 Running XMS.NET Sample App VS 2005
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.