mibuso.com

Microsoft Business Solutions online community
It is currently Fri May 24, 2013 1:17 am

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: CuteFTP and NAS
PostPosted: Fri May 16, 2008 11:13 am 
Offline

Joined: Fri Nov 10, 2006 12:38 pm
Posts: 29
Location: Wiltshire
Country: United Kingdom (uk)
Here are some tips on using CuteFTP and the Job Scheduler running under NAS.

First, there's a reasonably good explanation of how to use CuteFTP here:

http://www.revolution1210.com/article.asp?r0=3&r1=199

Next, I found that using this utility works absolutely fine when running from normal user credentials. I then tested running under as a job under NAS on my Vista laptop - created a service and all worked fine.

However, if you want to run an application that uses CuteFTP as an Automation object and then schedule it to run in the Job Queue under NAS on Windows Server OS then the application fails saying that it cannot create an instance of the Automation object etc. etc. (long string of GUID hexidecimal characters).

It seems that although you set up the service that runs NAS with a log on account (I was using adminstrative account), the TE object fails to inherit the permissions of the service that is running it.

[Note that if you create an instance of NAS in the DOS shell it will work fine - it is only when you install NAS as a service and run it from there]

The solution is to run DCOMCNFG and configure the TEConnection as per the instructions below. After that, all worked fine (but it cost me a lot of time finding this out - hope it helps someone else!)

To configure the TE under the DCOM configuration applet
1. On the Windows Start menu, click Run.
2. In the Run dialog box, type:
DCOMCNFG
3. Click OK. The Windows Component Services dialog box appears.
4. In the left pane, expand Component Services, expand Computers, expand My Computer, expand DCOM Config, then click TEConnection Class.
5. Right-click TEConnection Class, then click Properties. The TEConnection Class Properties dialog box appears.
6. Click the Identity tab.
7. Under Which user account do you want to use to run this application, click This user, then provide a valid user name and password. It must be the same user as established under your task scheduler's run as property (if applicable), so that the scheduler service can call the COM object as a user. This will enable the Transfer Engine to run with the user settings, and if necessary, access pre-established SSL certificates (for secure connections).
8. Click OK to save the changes, and close the Properties dialog box.
9. Close the Component Services dialog box.


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 19, 2008 3:18 pm 
Offline
Moderator
MVP Microsoft Dynamics NAV
NAV TechDays 2013 attendee

Joined: Wed Jul 02, 2003 10:13 am
Posts: 7501
Location: Milan
Country: Italy (it)
[Topic moved from Navision forum to Navision Tips & Tricks forum]

_________________
Regards,Alain Krikilion
Use the SEARCH,Luke! || No PM,please use the forum. || May the <SOLVED>-attribute be in your title! || Read Forum Rules before making a posting


Top
 Profile  
 
 Post subject: Re: CuteFTP and NAS
PostPosted: Thu Mar 04, 2010 5:02 pm 
Offline

Joined: Thu Jun 24, 2004 1:43 pm
Posts: 46
Location: Wevelgem
Country: Belgium (be)
Question moved here : http://www.mibuso.com/forum/viewtopic.php?f=23&t=40373


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum


Search for:
Jump to: