Click here to Skip to main content
15,894,540 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: (untagged)
We're running Great Plains Dynamics 2010 and have a web service (c# .net 2.0) that does our eConnect calls for us. The problem that we're having is that it appears that eConnect on our Great Plains server is closing the connection and we are receiving the below error.

System.ServiceModel.CommunicationObjectFaultedException: The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state.
at System.ServiceModel.Channels.CommunicationObject.Close(TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelFactory.OnClose(TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelFactory.TypedServiceChannelFactory`1.OnClose(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Close(TimeSpan timeout)
at System.ServiceModel.ChannelFactory.OnClose(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Close(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Close()
at Microsoft.Dynamics.GP.eConnect.ServiceProxy.Dispose()
at Microsoft.Dynamics.GP.eConnect.GetNextDocNumbers.Dispose()
at GP10InterfaceService.GetNextSOPNumber(String DocID, Int32 SopTypeNumber)


This usually occurs if the web service hasn't been called in the past 10 minutes or so, and is usually triggered by the 'GetNextSOPNumber' as this is the first portion of our method that reaches out to our Great Plains server.

We've tried setting the receiveTimeout for the eConnect service to be "infinite", and ensuring the service is running under an Administrator account. I've been able to circumvent the error and our process to run by calling the 'GetNextSOPNumber' within a try/catch just to wake the connection up, but this is clearly a hack.

If any further information/details is needed, please let me know.

Any help is greatly appreciated.
Posted

1 solution


C#
change a parameter in the eConnect service config file.  To do this, locate the eConnect web services configuration file, which is usually installed at:

C:\Program Files\Microsoft Dynamics\eConnect 11.0\Service\ Microsoft.Dynamics.GP.eConnect.Service.exe.config

Open this file using a text or XML file editor and change the httpGetEnabled parameter to false.

Here is complete information about above error - 
dynamicsgpland.blogspot.com/.../econnect-2010-integration-service-wont.html

Thanks
Avinash Mane
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900