eConnect help

Hi!

I just would like to ask if anyone of you has used eConnect to develop Microsoft Great Plains. Im using C# to develop GP and I have a problem using eConnect. There's a config file that I need to refer to which contains the connection string that I need to use to conncet to the database. Here is the code

string sConnectionString =@"data source=PH-WWDT44\FORUM9US;initial catalog=TWO;integrated security=SSPI;persist security info=False;packet size=4096";

string reqDoc = requester.eConnect_Requester(sConnectionString,EnumTypes.ConnectionStringType.SqlClient, xmldoc);

I have hardcoded the connection string. :) However the connection string can be found at a config file written in xml. I need to know the path of the config file and then read the xml and then get the connection string but I have a problem on how to get the path for the config. So basically, help on getting the path of the config file. Thanks!

[1319 byte] By [chobitas] at [2007-12-25]
# 1

Hi

You can find the file here: C:\Program Files\Microsoft Great Plains\eConnect9\Services\Outgoing Service\eConnect_OutGoing.exe.config

The setting is called BackOfficeConnString.ConnectionString

Hope this helps

Cephalopod at 2007-8-31 > top of Msdn Tech,.NET Development,.NET Framework Data Access and Storage...
# 2
You might try posting the question here http://vstoolsforum.com/
stevegray at 2007-8-31 > top of Msdn Tech,.NET Development,.NET Framework Data Access and Storage...

.NET Development

Site Classified