open Visual Studio 2010.
Click File->New->Web Site…
In the dialog window that opens, select the following:
.Net Framework 3.5.
Web Location = File System.
Type C#.
Notice in this list that “ASP.NET Web Service” is listed.
Now switch the framework to 4.0.
Notice that “ASP.NET Web Service” is not listed.
Can anyone shed light on what Microsoft is up to?
Did this get rebranded to another name in 4.0?
Am I supposed to use a new whiz-bang technology with 4.0, similar to ASP.NET Web Services?
It is considered obsolete.
The basic idea and a good advice is to build a WCF service instead. More flexible and WCF incorporates multiple versions of SOAP.
If you still want to make a Fx4 WebService application, just create the Fx3.5 one and upgrade it to Fx4.
It’s also possible to start with the Empty WebProject and add 1 or more ASMX WebServices through the Add new Item menu.