Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Dynamics
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 4-Dec-12 5:25am

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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
  Permalink  
v3

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

  Print Answers RSS
0 OriginalGriff 350
1 Jochen Arndt 190
2 Richard MacCutchan 135
3 Sergey Alexandrovich Kryukov 120
4 DamithSL 105
0 OriginalGriff 6,045
1 DamithSL 4,611
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,310


Advertise | Privacy | Mobile
Web02 | 2.8.141220.1 | Last Updated 9 Jul 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100