wcf-binding

Invalid HTTP status code 405 in Chrome only

六眼飞鱼酱① 提交于 2019-12-22 06:53:04
问题 I have a WCF service which saves a customer to a database and works as expected in Internet Explorer but not in Chrome (for that reason i will leave out the HTML/Json as it makes me think this is a web config issue but i can post if anyone likes). In Chrome i get the error: Failed to load resource: the server responded with a status of 405 (Method Not Allowed) Subscriber.htm:1 XMLHttpRequest cannot load http://example.com/MyService.svc/SaveCustomer. Invalid HTTP status code 405 My Web Config:

MTOM Encoding and Custom binding

大兔子大兔子 提交于 2019-12-22 05:38:50
问题 How do I configure custom binding and MTOM encoding? I have a custom binding like given below, <customBinding> <binding name="stsBinding"> <security authenticationMode="UserNameOverTransport" requireDerivedKeys="false" keyEntropyMode="ServerEntropy" requireSecurityContextCancellation="false" requireSignatureConfirmation="false"> </security> <httpsTransport /> </binding> </customBinding> And my MTOM binding is like below, <basicHttpBinding> <binding name="HttpStreaming" maxReceivedMessageSize=

WCF Service configuration HTTPS with CustomBinding

喜你入骨 提交于 2019-12-22 05:07:29
问题 I needed a custombinding on a WCF Service to allow me to pass raw content to WCFRest service. Works great, but I can't get it to accept transport level security. I want https and basicauthentication as I use elsewhere. Endpoint looks like this: <endpoint address="" behaviorConfiguration="web" contract="SmsService.ISmsReceive" binding="customBinding" bindingConfiguration="RawReceiveCapable"></endpoint> customBinding looks like this: <customBinding> <binding name="RawReceiveCapable"> <security

WCF Error : 'It is likely that certificate 'my cert' may not have a private key that is capable of key exchange

送分小仙女□ 提交于 2019-12-22 02:05:54
问题 I have a WCF service I'm trying to host on our production web server (IIS6). I've set the web up and tied our cert to the web. When I try to browse to the service url, I receive the following error in the event log : The exception message is: It is likely that certificate 'CN= .mydomain, OU=Secure Link SSL Wildcard, OU=I.T., C=US' may not have a private key that is capable of key exchange or the process may not have access rights for the private key. Please see inner exception for detail.. --

How can I set the receiveTimeout and sendTimeout to infinity with this WCF contact?

*爱你&永不变心* 提交于 2019-12-22 01:27:55
问题 I have the following app.config in my Host: <services> <service name="DCC_Service.DCCService" behaviorConfiguration="serviceBehavior"> <endpoint binding="netNamedPipeBinding" contract="DCC_Service.IDCCService" address="DCCService" /> <endpoint binding="mexNamedPipeBinding" contract="IMetadataExchange" address="mex" /> <host> <baseAddresses> <add baseAddress="net.pipe://localhost/"/> </baseAddresses> </host> </service> </services> <behaviors> <serviceBehaviors> <behavior name="serviceBehavior"

WCF maxBytesPerRead limit to 4096

一曲冷凌霜 提交于 2019-12-21 21:21:20
问题 I am using basic WCF web service in steaming mode to download files from server. I have specified binding on server side as <basicHttpBinding> <binding name="DBUpdateServiceBinding" closeTimeout="23:59:59" openTimeout="23:59:59" receiveTimeout="23:59:59" sendTimeout="23:59:59" maxReceivedMessageSize="10067108864" messageEncoding="Mtom" transferMode="Streamed"> <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="8192" maxNameTableCharCount="16384"

WCF: Call Service using parameter in URL with &

余生长醉 提交于 2019-12-21 11:33:06
问题 I have my WCF service with URL template like.. http://localhost:8448/service/SearchProduct/{productid}/{categoryid}/{search}/{pageSize} /{currPage} Here, I want to call this service path by using & parameters in the URL, like.. http://localhost:8448/service/SearchProduct/?productid=10&categoryid=34&search=newproducts&pageSize=10&currPage=5 But when I call service using above path, I got the exception "Endpoint not found." Could you please tell me How would I call this service by using passing

How to override WebServiceHostFactory MaxReceivedMessageSize?

杀马特。学长 韩版系。学妹 提交于 2019-12-21 11:25:22
问题 There are a lot of similar questions out there, but I have tried every solution in every one of them to no avail. We have a web service that initialises with WebServiceHostFactory, but if any more than 64k is thrown at it, we get a '400 Bad Request'. Normally, this would just be resolved by bumping up the MaxReceivedMessageSize, MaxBufferSize and MaxBufferPoolSize. The problem is that using the WebServiceHostFactory, the Web.Config is completely ignored. No changes I make in the ServiceModel

System.ServiceModel.AddressAccessDeniedException: HTTP could not register URL http::8080

梦想与她 提交于 2019-12-20 11:15:11
问题 I have created my first self-hosted WCF service. I hosted it in a C# console app but it throws an error: System.ServiceModel.AddressAccessDeniedException: HTTP could not register URL http: 8080 When I run Visual Studio 2013 as administrator, then it works well, but not if I don't. So any way to get it done automatically instead of starting VS as an ADMIN? So far I created a HelloService class library in which I added a WCF service which consists of an interface IHelloService and HelloService

Hosting Multiple TCP WCF service Endpoints on single Port

主宰稳场 提交于 2019-12-19 10:26:11
问题 I am hosting 3 WCF services inside windows services.Each WCF service contains Multiple endpoints. Right now, i am host all my endpoints thru TCP binding on different ports. Is there any way to host all these end points from different wcf services on same port? 回答1: Sure is! You can use the Net.TCP Port Sharing service. Net.TCP Port Sharing on MSDN 回答2: I just looked into that, out of curiosity. The behavior I discovered seems so strange that I almost don't want to put it here. But it worked