Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET Web Service Application in .net 4

I was going through the MSDN walkthrough on using client application services. http://msdn.microsoft.com/en-us/library/bb546195.aspx

This is for .net 3.5..but i need to do it in .net 4. The thing is that it doesn't have any ASP.NET Web Service Applications listed. Has it introduced any replacement for that? Or is there any workaround?

Regards.

like image 507
Dimith Avatar asked Jun 02 '11 07:06

Dimith


People also ask

What is a ASP.NET web application?

ASP.NET is a free web framework for building great websites and web applications using HTML, CSS, and JavaScript. You can also create Web APIs and use real-time technologies like Web Sockets. ASP.NET Core is an alternative to ASP.NET.

What is Web service in .NET C#?

Web Service is known as the software program. These services use the XML to exchange the information with the other software with the help of the common internet Protocols. In the simple term, we use the Web Service to interact with the objects over the internet.

How do I create a Web service project in .NET using Visual Studio?

In Visual Studio, create a new project using the ASP.NET Web Application (. NET Framework) template, and select the Empty template when prompted. Type a name and create the project. In Solution Explorer, right-click the project node, choose Add > New Item, and then choose Web Service (ASMX).

What is ASP net5?

ASP.NET 5 is an open source web framework for building modern web applications that can be developed and run on Windows, Linux and the Mac. It includes the MVC 6 framework, which now combines the features of MVC and Web API into a single web programming framework.


1 Answers

One of the way is to select target platform as .NET 3.5 in the drop-down at the top of New Project dialog - this will allow you to select "ASP.NET Web Service Application" project template. Once you select the template, you may change the target platform to .NET 4 using project properties.

I believe that the main reason for this template not being available in .NET 4 view is that this project uses ASP.NET web services (asmx files). Microsoft has declared this to be an obsolete technology and recommends to use WCF services instead.

You can expose ASP.NET application services (authentication, role etc used the sample sited by you) as WCF services. See section titled "Using application services as WCF services" in this link. So I will recommend you to choose ASP.NET Web Application project and then expose ASP.NET services as WCF services.

like image 153
VinayC Avatar answered Nov 01 '22 22:11

VinayC