Creating a COM+ application with
the Component Services GUI
JustFTP, the component itself (justftp.dll)
must be registered in the Windows registry on the computer where
JustFTP is installed.
By 'registered', we mean standard
Microsoft COM ActiveX Server registration. This has nothing to
do with whether or not JustFTP is a trial or registered
ActiveX Server registration is a simple process. Just
change to the directory where justftp.dll is
located and give the
command "regsvr32 justftp.dll" from a command prompt. This
will correctly register the component in the Windows registry of
This installation process works well if:
1. The JustFTP component is
to be used from a script or client application on a computer
that will be running under an account, (e.g. Administrator),
that has network access and local file system access.
2. JustFTP will be used
as a scheduled task, where JustFTP is activated in a script with
the task set to run under an account with enough permissions to
access the network and write to the local file system.
JustFTP is called from an IIS ASP or ASP.NET page it will not have the correct
privileges and will return an access denied error.
JustFTP to run correctly from IIS, it is necessary to place the
JustFTP dll in a COM+ Application.
This is a simple process. Once
completed, the JustFTP component can be called from IIS,
VBScript etc. without any authentication issues. The COM+
application is given an "Identity" which it uses to authenticate
itself with remote FTP servers and the local (or mapped path)
The COM+ application correctly
registers the justftp.dll component as part of step 17 shown
below. There is no need to pre-register the dll.
We recommend that if you
have already registered the dll as described in the
installation of JustFTP, you
should now unregister the dll before following the steps below.
To unregister JustFTP, open a command prompt, change to the
directory where justftp.dll is
located, give the command "regsvr32 /u justftp.dll".
You should get the success
message as shown here:
If you have not yet registered the dll with the regsvr32
command, then simply proceed to the next section.
REQUIRED TO CREATE THE JustFTP COM+ APPLICATION.
The steps involved
are detailed below. The Administrative tool "Component
Services" is used to complete this process.
Based on the
number of steps involved, one could think that this is a
In fact it is extremely easy to do and should only take a few
NOTE: The screen shots below
are from Windows Server 2003 (Windows XP also has this
interface). For Windows 2000, the views are
almost identical except that the "roles" screens are
not shown in Windows 2000 for this sequence.
IMPORTANT NOTE: For Windows 2003 only, be sure to
follow the extra step required for component
access checking changes at the bottom of this page after
(This extra step is not necessary for Windows
1. Create a directory called
"JustFTP" in "C:\Program Files\ComPlus Applications".
i.e. "C:\Program Files\ComPlus Applications\JustFTP".
2. Copy the
into this directory.
3. Start the Component Services
GUI from the start menu: Start / Programs / Administrative
Tools / Component Services. (Or, Control Panel /
Administrative Tools / Component Services).
4. Expand "My Computer" as
shown below. Select COM+ Applications and right click.
Select New / Application as shown in
5. The COM+ App. install dialog pops up
as shown in Fig 2. Click Next.
6. Click "Create an
empty application". Fig 3.
shown in Fig 4. enter the
name JustFTP and ensure "Server application" is selected for
the Activation Type. Click Next.
8. At the Identity
dialog, (Fig 5.) select "This
user" and enter a valid domain or local
computer account account username and password.
A local administrative user account is
2003 only, the "Network Service" account can be used,
however this account will only have "user" group rights).
We recommend, in this order
that you either:
1. Choose an account that has
the equivalent of local administrator rights.
2. Choose a domain account (if
you have Active Directory deployed), and add that user to the
local administrators group. When entering a domain the user,
the full domain and username is required. This is typically
entered as the "NetBIOS" name of the Microsoft Active Directory
domain, a backslash, then the user ID (login ID). This can also be entered in
domain DNS form "main.mycompany.com\Robot_user_42".
Click Next. NOTE: At this
point, the credentials entered are checked. If you receive an error, the credentials are invalid
for some reason.
For Fig 6. and
Fig 7. no "roles" are modified.
simply click Next.
NOTE: Windows 2000 does not
prompt with these dialog boxes.
AGAIN NOTE: Windows 2000
does not prompt with these dialog boxes.
As shown in Fig 8. click
Finish to create the empty COM+ application.
The empty JustFTP 'package' should now be showing in the
COM+ Applications tree. We will now add the JustFTP ActiveX component to this application.
Expand the JustFTP entry and
select components as shown in Fig 9.
Right click Components and
select New Component as shown in
The COM+ Component install dialog pops up as shown in
Fig 11. Click Next.
Click "Install new components" as shown in
Select justftp.dll by browsing to the directory as shown in
Fig 13. Double click it,
select it and click "Open").
The dialog shown in Fig 14.
should open and the File and Components found will be populated
with the correct entries automatically. Click Next to
install and register the JustFTP component.
Click Finish to end the component install process for
As shown in Fig 15.
Examine the JustFTP component tree. It should show all 9 methods
of the component
as shown in Fig
NOTE: The above procedure correctly registers JustFTP
in the registry. There is no need to give the manual
IMPORTANT NOTE FOR Windows
Default security settings will
restrict access to JustFTP. Access denied errors will occur
unless this extra step is completed.
Perform this extra step on Windows 2003 installations of
JustFTP in COM+.
Open Component Services,
locate JustFTP and right click
Select properties to
open the property dialog.
Select the security Tab and
uncheck the "Enforce access checks for this application"
checkbox as shown below.
JustFTP can now be called by
IIS, scripts and applications without "access denied" errors.
(There is no need to perform
this step for Windows 2000.)
This completes the
installation of JustFTP as a managed COM+ application.
Download the trial version 404 KB