Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where did ASP.NET Web Service go in .Net Framework 4.0?

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?

like image 749
sapbucket Avatar asked Mar 13 '12 20:03

sapbucket


People also ask

Is .NET framework 4.0 still supported?

Support for . NET Framework 4 on Windows Server 2003 SP2 ended on July 14, 2015, and support on all other operating systems ended on January 12, 2016.

Does ASP.NET still exist?

The main difference is that ASP.NET Core is cross-platform which means it can run on macOS, Linux, and Docker as well as of course Windows. While ASP.NET is still supported and updated by Microsoft, most of their focus going forward will be to develop the new . NET Core platform.

Is ASP.NET going away?

Does this mean ASP.NET Web Forms is dead and should no longer be used? Of course not! As long as the . NET Framework ships as part of Windows, ASP.NET Web Forms will be a supported framework.


2 Answers

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.

like image 129
Henk Holterman Avatar answered Oct 15 '22 03:10

Henk Holterman


I don't have Visual Studio here, but IIRC it's hidden somewhere like this:

  • Select "Add Service Reference" in the solution explorer context menu
  • Click the "Advanced..." button (the button in the lower left corner of the dialog)
  • Click the "Add Web Reference" button

See also this blog post for more details and screenshots.

like image 31
M4N Avatar answered Oct 15 '22 02:10

M4N