Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

eConnect Connection Error

313 views
Skip to first unread message

DavidM

unread,
Jul 2, 2007, 6:12:03 PM7/2/07
to
I have written two eConnect programs that work fine on my PC, but error out
when installed on the users PCs. Seems a simple enough issue, but I am
getting a onday morning block. What do I need to set up in SQL, or on the
user's PC, to get these programs to run?

Error:
--> System.Data.SqlClient.SqlException: Loging failed for user''. The user
is not
associated with a trusted SQL Server connection.

SQL is set for Mixed-Mode security. The connection string is
sConnectionString = "data source=" & vSQLServer & ";initial catalog=" &
GPCompany & ";integrated
security=SSPI;persist security
info=False;packet size=4096"

The call that is failing, for the users, is
eConCall.eConnect_EntryPoint(sConnectionString,
Microsoft.GreatPlains.eConnect.EnumTypes.ConnectionStringType.SqlClient,
MiscLogDocument,
Microsoft.GreatPlains.eConnect.EnumTypes.SchemaValidationType.None)
when uploading the XML document.


zman

unread,
Jul 2, 2007, 8:28:00 PM7/2/07
to
Make sure your MSDTC User is a Domain User that is associated with a SQL
Server account.

--
Lorren
Consulting Technology Lead
WennSoft Inc.

The views or opinions expressed in this post are mine and not those of
WennSoft.

Keith

unread,
Jul 3, 2007, 9:56:35 AM7/3/07
to
Hello David,

You may also need to check and see that DTC is setup correctly on the
server and the client machine. Here are some steps to do this.

This error occurs if Microsoft Distributed Transaction Coordinator (MS DTC)
is disabled for network transactions.
Resolution Section
To resolve this issue, follow these steps on a computer that is running
Microsoft Windows XP Service Pack 2 (SP2) or Windows Server 2003 Service
Pack (SP1):
1. Make sure that the eConnect object is running under a specific account:
a. Click Start, click Control Panel, click Administrative Tools, and then
click Component Services.
b. Expand Component Services, expand Computers, expand My Computer, and
then expand COM+ Applications.
c. Right-click eConnect 8 for Great Plains, and then click Properties.
d. Click the Identity tab.
e. In the Account box, click This User.
f. Specify a Windows user account that has the following characteristics:
" The user account has access to the computer that is running Microsoft SQL
Server.
" The user account has been added to SQL logins.
" The user account has at least DYNGRP permissions.


Note This user account must be at least a local administrator. Make sure
that you specify a user account where the administrator is the only person
who knows the logon information. This approach lets users start the
eConnect methods, but the users cannot use the account to gain access to
all the Microsoft Great Plains tables.
2. The DTC Service must use the NT AUTHORITY\NetworkService account, and
the Network DTC Access check box must be selected. To make sure that the
DTC service uses this account, follow these steps:
a. Click Start, click Control Panel, click Administrative Tools, and then
click Component Services.
b. Expand Component Services, and then expand Computers.
c. Right-click My Computer, and then click Properties.
d. Click the MSDTC tab, and then click Security Configuration.
e. Make sure that the following check boxes are selected:
" Network DTC Access
" Allow Remote Clients
" Allow Remote Administration
" Allow Inbound
" Allow Outbound
" No Authentication Required
f. Make sure that the DTC Logon Account is set to NT
AUTHORITY\NetworkService.
3. Add MSDTC.exe as an exception in Windows Firewall.
For all these changes to take effect, you must restart MS DTC and SQL
Server.

Thanks
Ke...@online.microsoft.com

Jan Smith (MSFT)

unread,
Jul 6, 2007, 11:18:50 AM7/6/07
to
Hi David,

Checking in to see if there is anything else we can do for you on this
topic.
Please post again at your convenience and we will be here for you.

Have a great week!

Jan Smith

Microsoft Online Support Engineer

Get Secure! - www.microsoft.com/security

==============================================

PLEASE NOTE: The partner managed newsgroups are provided

to assist with break/fix issues and simple how to questions.

We also love to hear your product feedback!

Let us know what you think by posting

from the web interface: Partner Feedback

from your newsreader: microsoft.private.directaccess.partnerfeedback.

We look forward to hearing from you!

=====================================================

When responding to posts, please "Reply to Group" via your newsreader

so that others may learn and benefit from this issue.

======================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

======================================================

Jan Smith (MSFT)

unread,
Jul 10, 2007, 4:21:29 PM7/10/07
to
Hi there

Anything else we can do for you here on this query?

Please post back at your convenience and we will be here for you.
Thanks again for using the partner newsgroups!

Paul

unread,
Jul 19, 2007, 2:34:00 AM7/19/07
to
Hi,

I am also getting the same kind of error

I am using econnect 9 on windows 2000 professional system

On integrating data from client machine to SQL server on a different machine
with integrated security, system throws a message "Login failed for user
'(null)'. Reason: Not associated with a trusted SQL Server connection."

We have workstation based network, not domain users , whether it can be the
reason for the error

Please give me a solution for this

Thanks in advance
Paul

Keith

unread,
Jul 19, 2007, 11:25:42 AM7/19/07
to
Hello Paul,

You will also need to go through the DTC settings on the server and client
machine.

Thanks
Ke...@online.microsoft.com

Paul

unread,
Jul 20, 2007, 2:14:01 AM7/20/07
to
Thank you Keith,

I am using windows 2000 professional , in MSDTC setting i didn't see any
security configuration and not able to set log on account to NT
AUTHORITY\NetworkService

Can you please tell how can i set it .

Thanks
Bibi

Kevin Johnson[MSFT]

unread,
Jul 20, 2007, 6:09:54 PM7/20/07
to
Depending on your Service Pack, you may not have the DTC network settings.

You mentioned that you are in a workgroup environment rather than a domain.
In this setup, SQL server can only authenticate local accounts on the SQL
box and will have problems with calls from a remote machine.

However, a workaround that I have heard of is to create identical user
accounts (exact same username and password) on both the client and SQL
server machines. Then configure the eConnect COM+ application on the client
to use this account on the identity tab. Then go to the SQL server and give
this account a windows login and put it into the DYNGRP role of DYNAMICS
and company databases.

Each machine is still using a local account for everything, but in a
workgroup environment like this, DTC passes the user credentials as-is
(plain text I believe) over to the SQL server which will authenticate it
since it has an identical local user account with those credentials and
you've given this account the proper permissions in SQL.

Best Regards,

Kevin Johnson - GP Developer Support

Michelle Brayton

unread,
Jul 20, 2010, 11:07:54 AM7/20/10
to

Kevin,

Does this work with econnect 10.0? I have a client on a workgroup setting
and needs econnect on client machines. They did setup a domain on the server
to install econnect but the clients are not part of the domain. Will adding
the econnect user as a local user allow for econnect to be installed and
connect to the client. Also, is this method of install supported by
Microsoft?

0 new messages