PRB: Unexpected Error C0042116 with PDW: You Do Not Have Write Access to Destination URL

Article translations Article translations
Article ID: 234975 - View products that this article applies to.
This article was previously published under Q234975
This article has been archived. It is offered "as is" and will no longer be updated.
Expand all | Collapse all

SYMPTOMS

When using the Package and Deployment Wizard (PDW) to deploy an Internet Information Server (IIS) application to a Web server, you receive the following error message:
Unexpected error number C0042116 has occurred: The Web server returned the following error: You do not have write access to destination URL http://<servername>/<directory>.

CAUSE

This error message could occur because of two reasons:
  • You have not enabled Write permissions to the target directory you are deploying to. Write permissions are required in order to deploy your WebClass application.

    -or-
  • The deployment directory you have specified does not exist on the target server.

RESOLUTION

To enable Write permissions follow these steps:
  1. Open the Internet Service Manager (ISM) snap-in in the Microsoft Management Console (MMC).
  2. Right-click your deployment directory and select Properties.
  3. Select the Directory or Virtual Directory tab.
  4. Under Access Permissions, enable the Write permissions option.
  5. Click Apply and then click OK.
NOTE: Allowing write access to a virtual directory is a security risk. You should remove write access after deploying your WebClass.

STATUS

This behavior is by design.

REFERENCES

For additional information about the Package and Deployment Wizard, click the article numbers below to view the articles in the Microsoft Knowledge Base:
242767 INFO: Deploying WebClasses with the Package and Deployment Wizard (PDW)
199017 HOWTO: Deploy Visual Basic IIS Applications with PDW

Properties

Article ID: 234975 - Last Review: February 28, 2014 - Revision: 4.1
APPLIES TO
  • Microsoft Visual Basic 6.0 Learning Edition
  • Microsoft Visual Basic 6.0 Professional Edition
  • Microsoft Visual Basic Enterprise Edition for Windows 6.0
  • Microsoft Internet Information Server 4.0
  • Microsoft Internet Information Services 5.0
Keywords: 
kbnosurvey kbarchive kbdeployment kbprb kbwebclasses KB234975

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com