wcf-binding

WCF error: The caller was not authenticated by the service

此生再无相见时 提交于 2019-11-27 03:38:12
I am trying to access my WCF service on a server from my client console application for testing. I am getting the following error: The caller was not authenticated by the service I am using wsHttpBinding . I'm not sure what kind of authentication the service is expecting? <behaviors> <serviceBehaviors> <behavior name="MyTrakerService.MyTrakerServiceBehavior"> <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment --> <serviceMetadata httpGetEnabled="true"/> <!-- To receive exception details in faults for debugging

An error occurred when verifying security for the message

时光怂恿深爱的人放手 提交于 2019-11-27 02:05:57
问题 When I try to call a WCF service I am getting the following message "An error occurred when verifying security for the message." When I remove the custom authenication the service works no problem. I can't figure out though what I have misconfigured in my web.config. Any insight would be appreciated. <system.serviceModel> <services> <service behaviorConfiguration="NAThriveExtensions.nableAPIBehavior" name="NAThriveExtensions.nableAPI"> <endpoint address="" binding="basicHttpBinding"

Using netsh, bind an SSL certificate to a port number is failing

╄→гoц情女王★ 提交于 2019-11-27 01:46:23
问题 I have followed the instructions in SSL with Self Hosted WCF Service . When I am trying to bind the certificate on Windows 7 using netsh as described in How to: Configure a Port with an SSL Certificate., it is failing as follows. In Windows PowerShell PS C:\> netsh http add sslcert ipport=0.0.0.0:8732 certhash=0000000000003ed9cd0c315bbb6dc1c08da5e6 appid={00112233-4455-6677-8899-AABBCCDDEEFF} Bad numeric constant: 224. At line:1 char:104 + netsh http add sslcert ipport=0.0.0.0:8732 certhash

WCF change endpoint address at runtime

梦想的初衷 提交于 2019-11-26 21:45:15
I have my first WCF example working. I have the host on a website which have many bindings. Because of this, I have added this to my web.config. <serviceHostingEnvironment multipleSiteBindingsEnabled="true"/> This is my default binding http://id.web , which works with the following code. EchoServiceClient client = new EchoServiceClient(); litResponse.Text = client.SendEcho("Hello World"); client.Close(); I am now trying to set the endpoint address at runtime. Even though it is the same address of the above code. EchoServiceClient client = new EchoServiceClient(); client.Endpoint.Address = new

Specify the outgoing IP address to use with WCF client

依然范特西╮ 提交于 2019-11-26 21:43:19
问题 How to define the LocalEndPoint to use by a WCF client when calling a WCF service (if the client machine has multiple IP addresses) ? I have a machine located in a DMZ with two IP addresses, the external IP address can be reached through the firewall via a VPN connection from our webserver, located at an external service provider. On this machine runs a WCF and Unity-based custom app server, which should act as proxy or application level gateway (ALG). It shall accept the service calls from

What is the difference between a WCF Service Application and a WCF Service Library?

ε祈祈猫儿з 提交于 2019-11-26 21:31:05
I am developing a WCF web service and I used the WCF Service Application template to do that. Does creating a "WCF Service Application" fulfill this requirement? What are the advantage of creating a WCF Service Library over a WCF Service Application? A service application includes a website host already setup for you. A service library is a library of services that a host can reference and startup. If you start with a service library (recommended) you can then choose any host you wish (a windows service, IIS/ASP.NET, or even a console application) and you'd just reference your library from

WCF: How can I programmatically recreate these App.config values?

╄→尐↘猪︶ㄣ 提交于 2019-11-26 20:27:48
问题 I have a WCF service that works ok if I create the service without specifying any binding or endpoint (it reads it from the generated values in the App.config when I registered the WCF via Visual Studio). I have a simple method that returns the service reference: return new SmsServiceReference.SmsEngineServiceClient(); This works ok (because the values are read from the config). However, I'd like to have some of these values in a Database (the URI for example) and would like to do something

Setting up WCF TCP service in a web application

為{幸葍}努か 提交于 2019-11-26 19:58:23
问题 I've been battling with this for days, literally going through a hundred articles giving partial guidelines on how to set up a WCF TCP based service in a web application. If someone can help me, I will make this question into a complete guideline. Current status The net.tcp connection works on my development machine. It also works locally after being deployed to a Windows Server 2008 R2. However, it doesn't work remotely, even though it's possible to telnet to port 808 on the server remotely.

Transfer large amount of data in WCF service

梦想与她 提交于 2019-11-26 18:59:45
问题 I have created a web service in WCF which returns more than 54000 data-rows with 10 data in each row. I have used the wsHttpBinding for communication. The service works well with less data (i.e. 2000 rows) but it bombs out when attempting to send large record set with 50000+ rows(~2MB). The exception message is like this An error occurred while receiving the HTTP response to http://localhost:9002/MyService.svc . This could be due to the service endpoint binding not using the HTTP protocol.

.NET assembly runs in partial trust on a network drive, but all other in full trust

空扰寡人 提交于 2019-11-26 18:37:48
问题 We have a strange issue with our C++ solution (which calls .NET 4.0 assemblies) when running on a network drive. The solution hosts several WCF services with NetTcpBinding, one of them with a non-default binding configuration. A non-default NetTcpBinding is per se not possible under partial trust (see Stack Overflow question When does WCF NetTcpBinding need full trust on the client? ), but the solution runs under a fully trusted network drive. This does work on several different computers