Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WCF without NET 3.0

Tags:

c#

.net

wcf

mono

Does anyone tell me if it's possible to use WCF without .NET 3.0?

Our company develops a 3-tier client-server end-user solution based on .Remoting. One of the limitation of our project is using .NET 2.0. Unfortunately .NET 3.0 framework is too large to be included in our installation package and I don't know if MS license allows this. But WCF might helps us to drastically reduce our efforts in some tasks.

Does anyone have a chance to use WCF from Mono?

Thanks in advance

-- Murat

like image 948
Murat from Daminion Software Avatar asked Mar 16 '10 16:03

Murat from Daminion Software


People also ask

Is WCF supported in .NET 5?

NET Core and . NET 5 support calling WCF services, but won't offer server-side support for hosting WCF. There are two recommended paths for modernizing WCF apps: gRPC is built on modern technologies and has emerged as the most popular choice across the developer community for RPC apps.

Is WCF deprecated?

NET and its key APIs for the transition to . NET Core and the unified . NET, its heyday had passed and new technologies like gRPC were seen as the way forward. WCF was deprecated and handed over to the community, and developers working on .

Is Grpc faster than WCF?

What can we do to make GRPC run a little faster/leaner? GRPC is better than WCF in terms of performance. You can refer to the following link, which compares WCF with GRPC.learn.microsoft.com/en-us/dotnet/architecture/…

What is WCF used for?

Windows Communication Foundation (WCF) is a framework for building service-oriented applications. Using WCF, you can send data as asynchronous messages from one service endpoint to another.


2 Answers

Unfortunately this is not possible. System.ServiceModel and System.Runtime.Serialization assemblies are required and they are part of .NET 3.0.

Another important note is that WCF depends on HTTP.SYS (kernel level HTTP stack) which is available on Win2003, WinXP SP2 or higher, while you can still have .NET 2.0 installed on Win2000.

On the client side you could still have .NET 2.0 consuming the WCF service. You need to expose a basicHttpBinding endpoint for this purpose.

like image 164
Darin Dimitrov Avatar answered Sep 27 '22 17:09

Darin Dimitrov


Could you use WCF and .Net 3.0 just on the servers at least? You could write your clients to consume simple ASMX style web service calls, and keep their install footprint small, while still getting the architectrual benefits of WCF in the server software.

That is part of the point of n-tier software... you can more easily upgrade critical peices of the application because they are on a few servers instead of on thousands of clients. I would re-examine .Net 2.0 requirement at least on your top tiers. You should see an easy cost-benefit improvement using the flexibility of the WCF platform even if you have heavy server install.

like image 42
DanO Avatar answered Sep 27 '22 17:09

DanO