Creating Asp.Net Web Service Application in Visual Studio 2010

One of the new things in Visual Studio 2010 is WCF Service Application. Among other things, this is also replacement for “old” asmx type web services, which are now considered legacy.

But what if you do need to create one of these “legacy” services? If you go to create a new project, you won’t find Asp.Net Web Service Application on the list of available project templates.

To solve this problem, on the project template screen, change framework version from 4.0 to 3.5 – and Asp.Net Web Service Application will now appear on the list of project templates. Once you have created your project, you can go to project properties, and change the framework back to version 4.0. Do a project build to verify that everything compiles, and you are all done.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s