question

AVSanthoshADVDAADDIPLTEP2DT13-5516 avatar image
0 Votes"
AVSanthoshADVDAADDIPLTEP2DT13-5516 asked DuaneArnold-0443 commented

Not able to communicate from .NET core(ASP.NET core) application to WCF service

Hi,
I have created a ASP.NET core webAPI application in which I am trying to load one of assemblies which is dependent on .NET framework and this assembly contains the proxies to connect to WCF service. But I am getting the following error.

"The 'system.serviceModel/diagnostics' configuration section cannot be created. The machine.config file is missing information. Verify that this configuration section is properly registered and that you have correctly spelled the section name. For Windows Communication Foundation sections, run ServiceModelReg.exe -i to fix this error."

What could be the reason. How to fix this?

I tried running the tool suggested in the error.No luck.

dotnet-aspnet-core-webapiwindows-wcf
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

DuaneArnold-0443 avatar image
0 Votes"
DuaneArnold-0443 answered DuaneArnold-0443 commented

.NET Core is incompatible with legacy .NET Framework 4.8 and lower versions.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,
The same issue persists even when we don't use our WCF service and proxies instead we create sample WCF service and create new proxies and try to communicate. It works with .NET core 31. but not with .NET 5.0.This is something confusing. Any insights on this.

0 Votes 0 ·
DuaneArnold-0443 avatar image DuaneArnold-0443 AVSanthoshADVDAADDIPLTEP2DT13-5516 ·

Maybe you should look into using gRPC.

0 Votes 0 ·