All Questions
267 questions
0
votes
2
answers
2k
views
How to deal with CommunicationObjectFaultedException
I've got a SOAP request method that returns back a token. For 99% of the time this works fine however 1% of the time I get back a communicationObjectFaultedException.
Is this just unavoidable or is ...
0
votes
1
answer
122
views
WCF - EndpointNotFoundException when calling from another Web Application (WCF or REST API)
recently I've met problem with EndpointNotFoundException when calling from another Web Application (WCF or REST API) in WCF.
I'm trying to connect to external WCF service which needs login and ...
0
votes
1
answer
65
views
How doing the exception handling in WCF REST C#
I have a Wcf Rest service
[OperationContract]
[WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare)]
void Import(stringrequest);...
0
votes
1
answer
2k
views
How to catch/handle exceptions in WCF that occur due to type casting or passing invalid values to the variables while calling through postman
I'm beginner to WCF. While building RestFul Apis, im facing the some crash issue.
On my hunt to Handling exception through WCF, i have gotten help from various sources like the following:
WCF ...
1
vote
1
answer
208
views
IndexOutOfRangeException in MessageSecurityOverHttpElement when creating WCF client from service reference
I have a normal WCF service reference created using 'Add Service Reference' in an application used by thousands of people.
An instance of the client is created using new MyServiceClient() and it ...
0
votes
0
answers
58
views
Error control/handler (capture) with Behavior in wcf. Business layer
I have a project (backend) where it receives a call in the service layer, but it also makes calls to another API in the business layer.
I have added a behaviour to those calls so I do not have to ...
0
votes
1
answer
312
views
Formatter error of WCF webservice while consuming through soap UI
I am consuming https wcf service ,where for an input string useremail,if i put valid strings or emails , no issues.But if i put <test>test(1)</test>.Through soap UI i am getting a big ...
0
votes
0
answers
58
views
service is in a fault state exception only in one environment
I am using the same DLLs of various services that I used in one of the development environment to the Test. I ensured configs are same except for endpoint address where it is the servername in each ...
0
votes
0
answers
69
views
How to catch exceptions in WCF service?
I have a calculator that does basic arithmetic using user input from 2 TextBoxand works out averages(mode, mean, median, range) from a listBox thats populates using a NumericUpDown.
The calculations ...
0
votes
0
answers
1k
views
How to fix "The type initializer for '' threw an exception" [WCF]
I have a WCF application and some clients in my solution. What is the problem - when i try to access any method implemented in service from client, i get this error. I correctly added service ...
2
votes
0
answers
143
views
How to identify a specific exception from CommunicationException class?
I have a WCF Service that is running on a server using the protocol TLS 1.2. My application, which uses .NET Framework 4.0, communicates with this service. It can communicate through TLS 1.2, with the ...
7
votes
1
answer
271
views
Provide Fault Method in WCF receives FaultException with no details
I have implemented an IErrorHandler for my service witch needs to return 403 instead o 400 in case of wrong Authorization.
This is how my ProvideFault method looks like:
public void ProvideFault(...
0
votes
1
answer
700
views
Timeout exception - c# ( wcf )
While I'm executing the server method asynchronously, getting this Timeout exception continuously.
"Additional information:
This request operation sent to http://schemas.microsoft.com/2005/12/...
1
vote
0
answers
154
views
Re-registration of WCF endpoint thows "already exists" even after an abort
I'm facing a strange problem with WCF endpoint manager highly available windows service using Azure Service fabric, which provides callbacks when the service becomes active.
Everytime the service ...
0
votes
1
answer
151
views
How to handle Transport and Communication level Exception in WCF?
I know that we can use FaultException and FaultContract to catch these exception?
Is there any other way to (Except FaultException/FaultContract) catch specifically these two Exception (Transport and ...