Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

How to: Rename a Project Web Reference

NoteNote:

This topic pertains to a legacy technology. XML Web services and XML Web service clients should now be created using Windows Communication Foundation.

The name assigned to a Web reference is also its programmatic namespace. The namespace can be changed to suit your needs. You can change the name of the Web reference to any string expression that is meaningful to its function. For example, you could change the name of a Web reference that handles account totals to AccountTotal.

To rename a Web reference in a project

  1. In Solution Explorer, expand your project's App_WebReferences folder, and then select the node for the reference you want to rename.

  2. Right-click the reference and click Rename, and enter a new name.

    NoteNote:

    If you have used the old name elsewhere in your project code, remember to change each occurrence to the new name.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2015 Microsoft