Logo
  Thursday, September 18, 2014
Sign-In  |  Sign-Up  |  Contact Us  | Bookmark |  RSS Feed

How to add a web reference in Visual Studio 2010?  
Visual Studio 2010 allows you to add three different type of references including web reference. We are going to teach you how to add all three reference types to your project.

First, start up your Visual Studio 2010 and create new ASP.NET Web Project. You can choose any C# or VB.NET as your language of choice. It may take a minute or two depending on your computer configuration. You will see the following project space once your ASP.NET Web project is created

Reference
Reference

Second, right click on the Reference option within your Visual Studio 2010 Solution Explorer. You will notice three different options available for you to choose from. "Add Reference", "Add Web Reference" and "Add Service Reference" Please see picture below.

Reference Popup
Reference Popup

Third, select firs menu option called "Add Reference" and proceed with the section of the DLL that contains library objects that you need to work with. You can select standard .NET library, COM library, Project space Library or Recent libraries that you used in your prior project. See picture below for library selection screen.

Add Reference
Add Reference

Finally, you can add two more reference types to your project: Web Reference or Service Reference. See pictures of how these screen look like below.

Add Web Reference
Add Web Reference

Add Service Reference
Add Service Reference

You will be be able to see chosen libraries added under Reference selections within your Solution Explorer. Your final step before you can start using these libraries is to compile your project to make sure compiler does not return any errors.
Print How to add a web reference in Visual Studio 2010 Bookmark How to add a web reference in Visual Studio 2010

Related Articles  
How to show line numbers in Visual Studio 2010?
Visual Studio 2010 does not come with Line numbers enabled and you need to set the option of displaying line numbers ...
How to compile in Visual Studio 2010?
Compiling Visual Studio 2010 project is not very difficult task. All you need to do is to select "Build" menu option ...
Configure Visual Studio 2010 setup and settings
The Visual Studio 2010 has setup selection when you try to install Visual Studio 2010 for the first time or if you try ...
How to publish a project in Visual Studio 2010?
Visual Studio 2010 allows you to publish your web project with one click. It relies on IIS Web Deployment Tool to ...
Visual Studio 2010 installation steps
Installation of the Visual Studio 2010 is not overly complicated. First you need to download the Visual Studio 2010 ...
More