Questions tagged [wcfserviceclient]
84 questions
1
vote
0 answers
How to return Json response message for http error like 404 in wcf Service?
I have the below function which i am returning employees list. If
there is no list present in DB, I need to return httpstatusErrorcode
with error message
public List FetchAllEmployes(int EmployTypeID)
{
try
{
var…

Vicky
- 21
- 5
1
vote
0 answers
retrieve client IpAddress in WCF service
I am trying to utilise a WCF service built in .Net 4.0 with custom business functionality in a html page (using jquery) and want to retrieve the client IPAddress in WCF service whoever is trying to access my service through the defined html page.…

Srikanth Reddy Ch
- 13
- 4
1
vote
1 answer
creating the wcf service client causes a InvalidOperationException
I have 2 solutions:
In solution 1 I have a web project with wcf service references.
In solution 2 I have a wpf project where I start the following wcf client:
When I create an instance of my wcf client:
using (var client = new…

Pascal
- 12,265
- 25
- 103
- 195
1
vote
1 answer
WCF help, how can I expose a service over http, that calls another service over net.tcp?
I have a WCF .svc file hosted in IIS. I want to use basicHTTP binding. This services job is to actually call another service over net.tcp. Everything works fine locally, but when I deployed, I'm getting this error.
The provided URI scheme 'http'…

Hcabnettek
- 12,678
- 38
- 124
- 190
1
vote
0 answers
WCF Service timing out when calling. Works fine with WcfTestClient
so I have a WCF Web service hosted on IIS. I can invoke the methods from a remote pc using Wcftestclient and it works just fine with no error.
However when I call the web service function from a .net windows form or from visual fox pro, after around…

user4316519
- 33
- 1
- 8
1
vote
1 answer
WCF service issue when client has multilple IP addresses
I need some help in resolving an issue I'm facing an with communication of a desktop client with WCF service hosted on IIS.
What I'm trying to do in my test case:
Server hosts a WSDualHttpBinding service
Client establishes a connection (calls…

GC.
- 13
- 3
1
vote
1 answer
Accessing and installing app.config based on user specific
I am having 2 app.config files on working for https access and another for http access, if i am having two option button one for http and another for https, if user select 1st option i.e http how i can store inside C:\program files while installing…

reapen
- 705
- 4
- 13
- 26
1
vote
1 answer
Is it possible to configure a WCF service client to throw a custom FaultException?
I was wondering if it was possible to configure a WCF service client to use a custom type instead of FaultException when throwing faults. The custom type would inherit from FaultException, but also have some additional details about the error.
The…

MetaFight
- 1,295
- 14
- 30
1
vote
1 answer
Wrong use of SendOrPostCallback variable(delegate(object state)) gives me WCF exception : "The server did not provide a meaningful reply"?
I'm new in WCF. I am currently working on a project where I explained in my last question posted here --> How can I implement callbacks to another server in c#
I am trying to study callback with an example. It uses Console Application for hosting…

Brenelyn
- 593
- 4
- 8
- 15
0
votes
0 answers
WCF Service Error - The security check for the received data was not successful
On a particular client when trying to call a WCF Service endpoint I get the following error:
The security check for the received data was not successful.
An unsecured error was received on a secure channel.
A required security header with local name…
0
votes
1 answer
The provided URI scheme 'https' is invalid; expected 'http', Even after specifying
I did a lot of searching and nothing seems to work.
I have done a custom binding for my Https service .
which looks like this.
0
votes
1 answer
Manually produce System.ServiceModel.Channels.CommunicationObject Faulted event
I have WCF service that sometimes rise Faulted event on production for yet unknown reasons.
I want to reproduce and test such situation in development environment, but I don't understand how to achieve that.
Faulted event belongs to…

nuclear sweet
- 1,079
- 10
- 27
0
votes
2 answers
secure data transfer between Silverlight 4 and WCF service
Background
So after fumbling around with wsHttpBinding on my WCF services I find out that Silverlight doesnt support it!! After thinking of sending encrypted data over the wire that is decrypted on both the service and client side I figured that…

user20358
- 14,182
- 36
- 114
- 186
0
votes
1 answer
Add Service Refrence in VS19 that requires authentication with client certificate
How do I add a Connected Service that requires a Certificate?
I need to call a SOAP API developed by another company. The company has supplied me with a pfx-file based on a cer-file I've created. I've installed the certificate in "Trusted Root…

Blue_PowerRanger
- 1
- 2
0
votes
1 answer
WCF: Cannot find the X.509 certificate
Error when browsing Outlook.svc from IIS.
Cannot find the X.509 certificate using the following search criteria: StoreName 'My', StoreLocation 'LocalMachine', FindType 'FindBySubjectName', FindValue ''

Suhas S
- 15
- 3