Hi all,
I'm trying to use the Business Connector to execute my class. I've created
a dll to call on sql 2005 assembly. But my C# class can't access the axapta and
give the follow error message on the Ax. Logon statment:
My class:
public void Run(string IdIntranet, string Modulo)
{
Axapta ax;
ax = new Axapta();
ax.Logon(null, null, null, null);
ax.CallStaticClassMethod("GsInsereDiario_FundoFixo", "Run", "IdIntranet",
"Modulo");
ax.Logoff();
}
Error Message:
Microsoft.Dynamics.BusinessConnectorNet.LogonFailedException:
at Microsoft.Dynamics.BusinessConnectorNet.Axapta.Logon(BC_PROXY_ACCOUNT_INFO*
pBCProxyAccountInfo, String company, String language, String objectServer,
String configuration)
at Microsoft.Dynamics.BusinessConnectorNet.Axapta.Logon(String company, String
language, String objectServer, String configuration)
at ClassFundoFixo.FundoFixo.Run(String IdIntranet, String Modulo) in
C:\Documents and Settings\deselles\My Documents\Visual Studio
2005\Projects\ClassLibrary1\ClassLibrary1\ClassFundoFixo.cs:line 20
at TesteFundoFixo.Form1.button1_Click(Object sender, EventArgs e) in
C:\Documents and Settings\deselles\My Documents\Visual Studio
2005\Projects\TesteFundoFixo\TesteFundoFixo\Form1.cs:line 25
Thanks in advance,
Daniel Selles | Dynamics Ax Developer | Systems Advisers Group Brazil
Tel: +55 11 3345 5001 Fax: +55 11 5103 0255
Mob: +55 16 8117 7954 Web: www.systemsadvisers.com/brazil
Systems Advisers Group: We provide global solutions and services around
Microsoft Dynamics AX, Microsoft Dynamics GP and SunSystems. As one of the
fastest growing Microsoft Dynamics partners globally we are currently 1 of
only3 global "power vendors" to Microsoft for Microsoft Dynamics services. With
experience in global implementations in over 47 countries, the group has
Centres of Excellence in Asia Pac., Europe and Latin America for
onshore-offshore capabilities to suit the needs of your organisation.
Offices in: Belgium | Brazil | France | Germany | India | The Netherlands | UAE
| United Kingdom | USA
For more information visit us at www.systemsadvisers.com
<http://www.systemsadvisers.com/> or write [EMAIL PROTECTED] <mailto:[EMAIL
PROTECTED]>
[Non-text portions of this message have been removed]