Hi Agus, I have already tried it does't work. I think there are anything wrong with the Axapta instalation in my CPU because I'm following the statements on Axapta book and it does't work properly. Thank you for help, 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]>
________________________________ De: development-axapta@yahoogroups.com em nome de Agus Riyadi Enviada: qua 9/5/2007 07:18 Para: development-axapta@yahoogroups.com Assunto: Re: [development-axapta] Business Connector Hi Daniel, I never use sql 2005 assembly but maybe you can try this : In what security context does your sql 2005 assembly works ? You can capture that with System.Security.Principal.WindowsIdentity.GetCurrent().Name() method. It must be in the security context of windows domain user registered in the Axapta instance. There also must be valid configuration for the user if you use logon method. In sql side, maybe you also need to set proper 'permission set' properties. Regards, Agus On 5/9/07, Daniel Selles <[EMAIL PROTECTED] <mailto:DanielS%40systemsadvisers.com> > wrote: > > 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/ <http://www.systemsadvisers.com/> > or write > [EMAIL PROTECTED] <mailto:info%40systemsadvisers.com> > <info%40systemsadvisers.com><mailto: > [EMAIL PROTECTED] <mailto:info%40systemsadvisers.com> > <info%40systemsadvisers.com>> > > [Non-text portions of this message have been removed] > > > [Non-text portions of this message have been removed] [Non-text portions of this message have been removed]