Wcf dataportal with asp.net mvc as client #2865
Replies: 2 comments
-
WCF has no future in .NET. Microsoft didn't implement it in .NET Core (.NET 5, .NET 6, etc.). As a result, your long-term strategy should be to migrate off WCF to another network transport. The primary data portal channel in CSLA today is If you can't switch to http, you'll need to continue trying to debug the WCF issue you are describing. I would recommend using fiddler or some similar tool to watch the traffic on the network. It sounds like the server is returning an ASCI error message, and the data portal is attempting to treat it like a binary stream (which is what it expects). Usually this sort of thing happens because the server is rejecting the call due to a security issue or something like that. |
Beta Was this translation helpful? Give feedback.
-
Thanks تم الإرسال من هاتف Huawei الخاص بي-------- الرسالة الأصلية --------من: Rockford Lhotka ***@***.***>التاريخ: الاثنين، ٤ أبريل، ٢٠٢٢ ٧:٠٨ مإلى: MarimerLLC/csla ***@***.***>نسخة إلى: mohammedsweif ***@***.***>, Manual ***@***.***>الموضوع: Re: [MarimerLLC/csla] Wcf dataportal with asp.net mvc as client (Discussion #2865)
WCF has no future in .NET. Microsoft didn't implement it in .NET Core (.NET 5, .NET 6, etc.). As a result, your long-term strategy should be to migrate off WCF to another network transport.
The primary data portal channel in CSLA today is HttpProxy, where the server is usually hosted in an ASP.NET or aspnetcore web site as an http endpoint. That endpoint is most easily implemented as a controller, and CSLA provides a pre-built data portal controller to make it easy to set up that endpoint.
If you can't switch to http, you'll need to continue trying to debug the WCF issue you are describing.
I would recommend using fiddler or some similar tool to watch the traffic on the network. It sounds like the server is returning an ASCI error message, and the data portal is attempting to treat it like a binary stream (which is what it expects).
Usually this sort of thing happens because the server is rejecting the call due to a security issue or something like that.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
i have wcf datapotal with this configuration
</system.serviceModel>
now I need to call this service from asp .net mvc as a client
how can I configure it
when I configure it as csla dataportal book like
add key="CslaDataPortalProxy" value="Csla.DataPortalClient.WcfProxy, Csla"
add key="DalManagerType" value="myassemply.DalManager, myassemply.DataLayer"
add key="csladataportalurl" value="http://localhost:1934/wcfportal.svc"
The remote server returned an error: (415) Cannot process the message because the content type 'text/xml; charset=utf-8' was not the expected type 'application/soap+msbin1+gzip'..
Beta Was this translation helpful? Give feedback.
All reactions