Using the Package and Deployment Wizard (PDW), you will receive the
following dialog if you try to deploy to a FTP Web Publishing site that
doesn't have the write access with the Web publishing method set to "FTP."
"Unexpected error number C0042116 has occurred. The server returned the
following message:
200 Type set to 1.
200 PORT command successful.
550 WP.CAB:Access is denied."
The source of this error may be one of the following:
- access rights on the server you are trying to post to.
-or-
- the files you are posting are marked as read-only.
Steps to Create a New FTP Virtual Directory and Allow Write Access
- From the Start menu, open the Internet Service Manager on the server
computer. This starts up Microsoft Management Console (MMC).
- Click Console Root, then click Internet Information Server, then click
the name of your Web server machine.
- Start up Microsoft Management Console (MMC).
- Right-click on "Default FTP Site," choose "New," and then choose
"Virtual Directory" from its context menu.
- Type in an alias to be used to access the virtual directory (for
example, ftpupload).
- Enter the physical path of the directory to map the virtual drive (for
example, c:\inetpub\ftproot).
- Select the checkbox "Allow write access."
NOTE: Allowing write access to a virtual directory is a SECURITY RISK.
Make sure you only allow write access to virtual directories you know
are secure.
- Right-click on Default FTP Site and choose "Stop."
- Right-click on Default FTP Site and choose "Start."
Giving Access to an Existing FTP Directory
- From the Start menu, open the Internet Service Manager on the server
computer. This starts up Microsoft Management Console (MMC).
- Click Console Root, then click Internet Information Server, and then
click the name of your Web server machine.
- Right-click on the Default FTP Site node, then choose Properties.
- Select the Home Directory tab.
- Check the Write check box.
NOTE: Allowing write access to a virtual directory is a SECURITY RISK.
Make sure you only allow write access to virtual directories you know
are secure.
- Right-click on Default FTP Site and choose "Stop."
- Right-click on Default FTP Site and choose "Start."
IMPORTANT: If you get the FTP authentication dialog box, type in
"anonymous" for user name and "Me@somewhere" for the password; this will
allow an anonymous login.
Please see the following Microsoft Knowledge Base article for more
information on the PDW(Package and Deployment Wizard):
190046
(http://support.microsoft.com/kb/190046/EN-US/
)
INFO: VB6 Readme Part 6 - Wizard Issues