Microsoft KB Archive/192639

From BetaArchive Wiki

Article ID: 192639

Article Last Modified on 7/15/2004



APPLIES TO

  • Microsoft Visual Basic 6.0 Professional Edition
  • Microsoft Visual Basic 6.0 Enterprise Edition



This article was previously published under Q192639

SUMMARY

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."

MORE INFORMATION

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

  1. From the Start menu, open the Internet Service Manager on the server computer. This starts up Microsoft Management Console (MMC).
  2. Click Console Root, then click Internet Information Server, then click the name of your Web server machine.
  3. Start up Microsoft Management Console (MMC).
  4. Right-click on "Default FTP Site," choose "New," and then choose "Virtual Directory" from its context menu.
  5. Type in an alias to be used to access the virtual directory (for example, ftpupload).
  6. Enter the physical path of the directory to map the virtual drive (for example, c:\inetpub\ftproot).
  7. 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.

  1. Right-click on Default FTP Site and choose "Stop."
  2. Right-click on Default FTP Site and choose "Start."

Giving Access to an Existing FTP Directory

  1. From the Start menu, open the Internet Service Manager on the server computer. This starts up Microsoft Management Console (MMC).
  2. Click Console Root, then click Internet Information Server, and then click the name of your Web server machine.
  3. Right-click on the Default FTP Site node, then choose Properties.
  4. Select the Home Directory tab.
  5. 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.

  1. Right-click on Default FTP Site and choose "Stop."
  2. 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.


REFERENCES

Please see the following Microsoft Knowledge Base article for more information on the PDW(Package and Deployment Wizard):

190046 INFO: VB6 Readme Part 6 - Wizard Issues


Keywords: kbhowto kbappsetup kbwebclasses kbwizard KB192639