How can I activate WCF without HTTP activation with .Net 4?

I have a .Net 3.51 service that uses non-HTTP activation. It works great. I want to convert it to .Net 4.

In Windows 7, if you go to the control panel, "Add Uninstall Programs", turn Windows features on or off, there is an element "Microsoft.NET Framework 3.5.1, WCF Non HTTP Activation".

How do I do this for .Net 4?

Mark

+4
source share
2 answers

In fact, enabling it for 3.5.1 also includes it for 4. I have exceptions because appdomain has returned to .net 2. Activating non-http works fine.

+2
source

Publishing what worked for me, as there are several conflicting or outdated instructions.

Source: https://docs.microsoft.com/en-us/dotnet/framework/wcf/samples/namedpipe-activation

From the Start menu, select Control Panel.

Select "Programs and Features."

Turn on or off Windows components.

Expand the Microsoft .NET Framework 3.0 node and check the Windows Database Connectivity component.

I just did it for 4.5:

enter image description here

0
source

Source: https://habr.com/ru/post/1303710/


All Articles