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?
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.
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.
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.
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.
I don't have Visual Studio here, but IIRC it's hidden somewhere like this:
See also this blog post for more details and screenshots.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With