Questions tagged [communicationexception]
48 questions
15
votes
5 answers
System.Net.WebException: The request was aborted: the request was cancelled
I have a WCF service that has been giving me this error under load conditions (and I can't seem to recreate the error otherwise). We've been trying to find a way around it for about a week now with no such luck..
The error I see has two parts to…

Audzzy
- 151
- 1
- 1
- 3
11
votes
8 answers
WCF, BasicHttpBinding: Stop new connections but allow existing connections to continue
.NET 3.5, VS2008, WCF service using BasicHttpBinding
I have a WCF service hosted in a Windows service. When the Windows service shuts down, due to upgrades, scheduled maintenance, etc, I need to gracefully shut down my WCF service. The WCF service…

David Chappelle
- 1,243
- 5
- 13
- 29
9
votes
4 answers
CommunicationException with 'not recognized sequence' message in WCF
I get a CommunicationException while using WCF service. The message is:
The remote endpoint no longer recognizes this sequence. This is most likely due to an abort on the remote endpoint. The value of wsrm:Identifier is not a known Sequence…

brain_pusher
- 1,507
- 3
- 21
- 31
5
votes
4 answers
CommunicationException [Root exception is ConnectException: Connection timed out]
I'm getting this exception occasionally, while trying to connect Active Directory.
javax.naming.CommunicationException: :
[Root exception is java.net.ConnectException: Connection timed out: connect]
Here is my code:
…

Karthik Bose
- 33,556
- 3
- 33
- 43
4
votes
1 answer
WCF CommunicationException with no Exception message details
One of the things I never understood about WCF is why no Exception message details are propagated back to the calling client when the server encounters an unhandled exception.
For example, if I have the following server…

Bart
- 167
- 1
- 6
3
votes
1 answer
Communications link failure due to: java.io.EOFException
My webapp is running on Tomcat 5.5, I declared the datasource in web.xml:
jdbc/OrdiniWebDS
javax.sql.DataSource
Container
…

mauretto
- 3,183
- 3
- 27
- 28
3
votes
1 answer
System.ServiceModel.CommunicationException when parsing WCF ProtocolException
I am trying to use the recommended code from this page http://blogs.msdn.com/b/nathana/archive/2011/03/31/deciphering-a-soap-fault-with-a-400-status-code.aspx as follows:
static FaultException ParseProtocolExecption(ProtocolException ex)
{
try
{
…

Ron Woods
- 122
- 1
- 7
3
votes
2 answers
WCF response too long - authentication error
In the project that I currently work for, there is exposed a WCF service which returns an array of a business entity, let's call it Invoice :
Invoice[] GetInvoicesByTypeAndTime(InvoiceType invoiceType, byte startHour, byte? endHour);
The…

Andrei Rînea
- 20,288
- 17
- 117
- 166
3
votes
3 answers
WCF call fails when results returned from Entity Framework
I have created a simple test solution using Entity Framework and WCF. I have only one function in the service contract, called GetAllCustomers() that retrieves the customers from the database and returns them to the client. The client app calls the…

JoeMjr2
- 3,804
- 4
- 34
- 62
3
votes
1 answer
WCF CommunicationException related to ServiceKnownType after running for sometime (or IIS App Pool recycle?)
I have a WCF service, hosted in IIS. This service is defined by a generic interface with interface-types as arguments or return types, and so we make use of the ServiceKnownType attribute to define the available implementations of said interfaces at…

RJ Lohan
- 6,497
- 3
- 34
- 54
2
votes
0 answers
OpenJMS: context creation fails with InvalideClassException
I am using OpenJMS with NetBeans 6.9.1. I have created a simple NetBeans Platform Application and a module inside it. I have started my openjms-0.7.7-beta using its startup.bat file. Now in the module the following code executes to start listening…

user758867
- 121
- 1
- 5
2
votes
3 answers
JavaEE6: How to safeguard web application when the database shut down
First of all, my framework is Java EE 6 with JSF, managed bean, EJB and JPA. I write a simple program to query information from the database. So when I click a button, it trigger an event to a managed bean, where an event listener method will access…

Thang Pham
- 38,125
- 75
- 201
- 285
2
votes
1 answer
Dynamics CRM Cause CommunicationException
I am using MS Dynamics CRM api to get data (more then 5000 records) from it.
I am using XML based query to get data
EntityCollection resultSet = _orgServiceProxy.RetrieveMultiple(new FetchExpression(query));
sometime time it works and most of the…

Saboor Awan
- 1,567
- 4
- 24
- 37
1
vote
2 answers
CommunicationException with Windows Phone 7 and PHP Web Service
I have a PHP web service built with the NuSOAP library. I've adapted the web service to work with Windows Phone and everything seems fine.
The problem is when I receive the reply, I get a CommunicationException. I think that is the url of the…

aperez
- 121
- 1
- 13
1
vote
1 answer
WCF Silverlight CommunicationException
This post will be lengthy and I apologize on beforehand for that.
I'm trying to make a a Silverlight application communicate with a service I'm running from visual studio, it's not hosted in IIS at the moment. I'm trying to have as little code and…

Oxymoron
- 1,382
- 4
- 20
- 40