wcf-binding

WCF Multiple Bindings

删除回忆录丶 提交于 2020-01-03 08:26:11
问题 I'm getting the following error when I try multiple end points.. System.ServiceModel.AddressAlreadyInUseException: The TransportManager failed to listen on the supplied URI using the NetTcpPortSharing service: the service failed to listen. at System.ServiceModel.Channels.SharedConnectionListener.SharedListenerProxy.Register() at System.ServiceModel.Channels.SharedConnectionListener.SharedListenerProxy.Open(Boolean isReconnecting) at System.ServiceModel.Channels.SharedConnectionListener

Metadata error when running WCF service as particular user

天大地大妈咪最大 提交于 2020-01-03 05:57:11
问题 I have deployed a WCF service that works great when the application pool runs as a particular domain user, but when I change the application pool to run as a different user, I get an XPATH error and my service doesn't even return metadata. I'm perplexed - my new user has permissions to all the service files (including config files), runs fine as an app pool identity, and database permissions don't matter because I can't even pull up a contract list. Can anybody shed some light on this? I've

What is the default WCF Binding?

五迷三道 提交于 2020-01-01 08:03:46
问题 I've been struggling for a few days with this problem, learning a lot of things on bindings in the process. One thing puzzles me, though: various links (see this or that for example) explicitly state "By default, WCF project is created using WsHttpBinding", but that's not what I see. This is what I do: Open Visual Studio 2010 and choose New Project / Visual C# / WCF Service Application Don't touch anything inside the code, set a local IIS Url for the service (say http://localhost/WcfService7)

What is the default WCF Binding?

人盡茶涼 提交于 2020-01-01 08:03:12
问题 I've been struggling for a few days with this problem, learning a lot of things on bindings in the process. One thing puzzles me, though: various links (see this or that for example) explicitly state "By default, WCF project is created using WsHttpBinding", but that's not what I see. This is what I do: Open Visual Studio 2010 and choose New Project / Visual C# / WCF Service Application Don't touch anything inside the code, set a local IIS Url for the service (say http://localhost/WcfService7)

WCF Error: The message with Action cannot be processed at the receiver

自古美人都是妖i 提交于 2020-01-01 07:24:30
问题 I get famous error in web application, which is WCF client: The message with Action cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver. Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Message, Transport, None). Several

Sending object to WCF service. MaxStringContentLength (8192 bytes) exceeded when deserializing

Deadly 提交于 2019-12-31 03:58:25
问题 I created a simple WCF web service that has one method: SubmitTicket(flightticket ft, string username, string password) On the client side, I have an application for filling out a form (a flight ticket) and sending it to this newly created web service. When this flightticket object exceeds 8192bytes I get the following error: "There was an error deserializing the object of type flightticket. The maximum string content length quota (8192) has been exceeded while reading XML data. This quota

How to consume WCF wsHttpBinding Service in application built in 2.0?

有些话、适合烂在心里 提交于 2019-12-31 03:40:08
问题 WCF service is running with 'wsHttpBinding' Binding. The application which gonna consume WCF Service is non-wcf compliance or in other words, it is on the top of Framework 2.0 and I can't use ServiceModel in this app (since only 3.5 supports ServiceModel). Any suggestions, how to consume above WCF Service in application built in 2.0? 回答1: This won't work - typically. .NET 2.0 only support basicHttpBinding, or the new REST-style webHttpBinding . You could potentially retrofit the WSE (Web

Streaming with WCF and MTOM

陌路散爱 提交于 2019-12-30 03:24:06
问题 I am using WCF bindings with streamed transfer mode, for both uploading and downloading binary content to/from a service. I've managed to get it working. I'll include the configuration, contracts, etc for reference. I've made some tests to benchmark different bindings and encodings. Uploading results seems ok. NetTcp being the fastest, followed by BasicHttp-MTOM and then BasicHttp-Text. What suprises me is that, when downloading large files, MTOM is very slow as opposed to Text encoding with

WCF maxReceivedMessageSize not being read from config

雨燕双飞 提交于 2019-12-29 05:06:32
问题 I have a the following server side app.config for a WCF service: <system.serviceModel> <bindings> <wsHttpBinding> <binding name="default" maxReceivedMessageSize="5000000"> <readerQuotas maxStringContentLength="5000000" maxArrayLength="5000000" /> </binding> </wsHttpBinding> </bindings> <services> <service behaviorConfiguration="Core.TOAService.Service1Behavior" name="Core.TOAService.TOAService"> <endpoint address="" binding="wsHttpBinding" contract="Core.TOAService.ITOAService"> <identity>

Configure wcf service programmatically

試著忘記壹切 提交于 2019-12-28 07:05:09
问题 I have a remote wcf service, I connect it by WSHttpBinding. If I use the empty service constructor which mean it will take all the configurations from the app.config , everything is ok, (I mean MyService s = new MyService()). Now I want to configure the wcf programmatically . it's simple till I arrive to the authentication issue , it was so hard to do that . Here is the app.config which I use , you can see there my security configurations . <system.serviceModel> <bindings> <wsHttpBinding>