[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 641
  • Last Modified:

eConnectMethods Constructor Hangs in eConnect SDK

I have a block of code that makes several calls inside of a System.Transaction TransactionScope (see this post).  When deployed to a windows 2008 server, it sometimes hangs on the following:

      eConnectMethods eConCall = new eConnectMethods();

It does not always hang here, and the same code never seems to hang on my development machine (XP sp3).  This is a .net 4.0 project.
0
b_levitt
Asked:
b_levitt
  • 4
  • 2
2 Solutions
 
sgray128Commented:
That sounds like a DCOM issue to me. GP version less than GP2010?

That line of code is where it first contacts the server. In my experience, though, if it works once it should be OK
0
 
b_levittAuthor Commented:
Sorry for the delay.  It does actually appear that it was consistently failing.  At one point it threw a dtc security error and adjusting the dtc security configuration let it start working.  I'm not sure what made it suddenly throw a better error.  I have another desktop doing the same thing and changing the dtc config doesn't appear to be helping but that I need to investigate a little further.

I should also mention that I'm attepting to use the econnect dlls without actually installing the econnect install.  I may try installing econnect on the failing desktop and see if that is the issue there.

This is GP 10.
0
 
sgray128Commented:
I'm pretty sure this is a DTC thing. It will hang at that point and not give you any error. The only way out is to crash the app. The Install PDF has a good guide for the install, if you follow it carefully you'll be OK
0
Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

 
b_levittAuthor Commented:
In the case of the xp machine, dropping in Application.Dynamics.dll fixed it but the weird thing is that this file is not on the windows 2008 server that previously had the problem.
0
 
b_levittAuthor Commented:
So far we've been able to resolve this in most cases by making sure the DTC security configuration is set to allow network connections.
0
 
b_levittAuthor Commented:
Assuming the issue is the DTC.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now