| Author | 
		  Message
		 | 
		
		  | aleanand | 
		  
		    
			  
				 Posted: Fri Aug 26, 2005 3:42 pm    Post subject: Unable to put/get msg by executing C APIs from mapped drive | 
				     | 
			   
			 
		   | 
		
		
		   Newbie
 
 Joined: 11 Jun 2004 Posts: 3
  
  | 
		  
		    
			  
				Hello,
 
I am running succesfully C APIs and able to add/remove messages from MQ Series fine as long as the exe is in local drive C/D drive.
 
 
But it gives error#2195 when I run my exe from a mapped drive.
 
I am Using MQ client & server version 5.2
 
 
Also I could not find any error log in unix under "/var/mqm/qmgrs/errors"
 
 
Please Help !
 
 
- Anand | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | jefflowrey | 
		  
		    
			  
				 Posted: Sat Aug 27, 2005 5:14 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Poobah
 
 Joined: 16 Oct 2002 Posts: 19981
  
  | 
		  
		    
			  
				On unix, there will be /var/mqm/errors, and /var/mqm/qmgrs/<qmgr name>/errors.
 
 
You will not be able to run your code on a machine that does not have the MQClient installed on it.  
 
 
Your program should work just fine from any drive, otherwise. _________________ I am *not* the model of the modern major general. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | RogerLacroix | 
		  
		    
			  
				 Posted: Sat Aug 27, 2005 7:43 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Knight
 
 Joined: 15 May 2001 Posts: 3265 Location: London, ON  Canada 
  | 
		  
		    
			  
				Hi,
 
 
On Windows, I run my MQ programs from mapped drives all the time.  But you have to remember rule #1: you must have either MQ Server or MQ Client on the PC that is actually executing the MQ program  from the mapped drive. 
 
 
Regards,
 
Roger Lacroix _________________ Capitalware: Transforming tomorrow into today.
 
Connected to MQ!
 
Twitter | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | bower5932 | 
		  
		    
			  
				 Posted: Mon Aug 29, 2005 7:42 am    Post subject: Re: Unable to put/get msg by executing C APIs from mapped dr | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Knight
 
 Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA 
  | 
		  
		    
			  
				
   
	| aleanand wrote: | 
   
  
	| I am Using MQ client & server version 5.2 | 
   
 
 
 
and I'd also suggest that you consider upgrading.  5.2 is long out of service and 6.0 shipped just a few months back. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | aleanand | 
		  
		    
			  
				 Posted: Mon Aug 29, 2005 2:38 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Newbie
 
 Joined: 11 Jun 2004 Posts: 3
  
  | 
		  
		    
			  
				I have MQ client installed on the PC that is actually executing the MQ program from the mapped drive. 
 
 
I also see that paths were set on the PC where I am trying execute .exe file.
 
 
But it worked when I copied the all the client dll files onto the mapped drive.
 
 
Regards,
 
Anand. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | jefflowrey | 
		  
		    
			  
				 Posted: Tue Aug 30, 2005 4:26 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Poobah
 
 Joined: 16 Oct 2002 Posts: 19981
  
  | 
		  
		    
			  
				
   
	| aleanand wrote: | 
   
  
	| But it worked when I copied the all the client dll files onto the mapped drive. | 
   
 
 
 
That means that the MQ dlls were not actually on the path that the program was using. _________________ I am *not* the model of the modern major general. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | RogerLacroix | 
		  
		    
			  
				 Posted: Tue Aug 30, 2005 10:34 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Knight
 
 Joined: 15 May 2001 Posts: 3265 Location: London, ON  Canada 
  | 
		  
		    
			  
				
   
	| jefflowrey wrote: | 
   
  
	
   
	| aleanand wrote: | 
   
  
	| But it worked when I copied the all the client dll files onto the mapped drive. | 
   
 
 
 
That means that the MQ dlls were not actually on the path that the program was using. | 
   
 
 
Or he did not reboot after installing MQ Client.
 
 
Regards,
 
Roger Lacroix _________________ Capitalware: Transforming tomorrow into today.
 
Connected to MQ!
 
Twitter | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |