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 » General IBM MQ Support » MQSeries VB.NET connection problems

Post new topic  Reply to topic
 MQSeries VB.NET connection problems « View previous topic :: View next topic » 
Author Message
redwings19
PostPosted: Thu Sep 12, 2002 12:25 pm    Post subject: MQSeries VB.NET connection problems Reply with quote

Newbie

Joined: 12 Sep 2002
Posts: 2
Location: Iowa

I am new to MQSeries and I need to connect a web service created in vb.net to a MQSeries queue running on as/400. I have been trying the code below and have been getting the following errors on my client machine MQRC_Q_MGR_NOT_AVAILABLE - reason code 2059, and when I copy this same code to my application server i get the following error MQRC_UNKNOWN_OBJECT_NAME - reason code 2085. I am totally stumped on this one and all of our IBM programmers and MQ specialists are clueless to the .net world so I need your help. I have read most of the posts dealing with MQseries.net and vb and have tried everything, including Koblans MQSeries.NET program and the MQAX200.dll. Any ideas on what I need to do, thanks.

I also have MQSeries Client installed on my machine and the application server. The environment variables are also set up on both machines and when I run them in DOS they connect to the queue just fine, it just the vb.net code that they error out in.

Todd
Code:

Dim mqSession As New MQSession
Dim mqManager As MQQueueManager
Dim mqQueue As MQQueue 'Queue Object
Dim mqMessage As MQMessage

mqManager = mqSession.AccessQueueManager("qmanagername")
mqQueue = mqManager.AccessQueue("QUEUE1",MQ.MQC.MQOO_INPUT_AS_Q_DEF)

mqMessage = mqSession.AccessMessage
mqMessage.MessageData = "Hello2 From Todd"
mqQueue.Put(mqMessage)
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 » General IBM MQ Support » MQSeries VB.NET connection problems
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.