Visual Studio Web Service vs. Web Reference

If you are building a new project in Visual Studio targeting the 3.5 or 4.0 framework that uses the Microsoft CRM web services, and you use code snippets from a 2.0 framework project you will notice your code doesn’t compile.

If you’re like me you blindly added something called a service reference rather then a web reference.

 

image

 

After adding the service reference you’ll notice your code won’t compile.

image 

You will have to choose Advanced > Add Web Reference to add a web service reference.

image

 

image

Leave a Reply

Spam Protection by WP-SpamFree