Hi all,
We want to transfer data from a c# program into a table in Axapta. We do this by using a button and everytime it is clicked, it takes data from a textbox, logs on axapta, transfers data and logs off axapta. When we run the program using axapta's default "Admin" user, it runs successfully. Everytime we click the button, it successfully logs on, transfers data and logs off. When we run the program with a user given administrators privilege (selected groups of that user involves "Admin"), the first logon-transfer-logoff is done successfully. But when we do the second click, the running program is terminated by operating system. No exceptions are thrown. Termination is done in axapta.logon2 method. When we have searched for an information or exception occurence in the Event Viewer in Windows, we have found a few warnings and information. How can we solve this problem? Here is the c# code: Private Axapta2 axapta; private void button1_Click(object sender, System.EventArgs e) { string Axapta_Parameter; try { // user logon information is set at the beginning.Every logon process is done using that information // being set axapta.Logon2(this.user,this.userPassword,this.company,this.language,this.serverManager,this.objectServer,this.configuration,this.IsWebUser,this.reserved2,this.reserved3); } catch(Exception e2) { Console.Write(e2.ToString()); } // get the data from textbox Axapta_Parameter=textBox1.Text; // send the data in this method into Axapta this.Send_To_Axapta(Axapta_Parameter); try { // after every transfer, logoff axapta axapta.Logoff(); } catch(Exception e2) { Console.Write(e2.ToString()); } } Here are the warnings and information (All these are taken while doing the second logon): Event type : Warning source : Axapta COM Connector event id : 110 Axapta COM Connector Session 8. Exception 0xc0000005 occured in thread 0x890 handling session 8. ------------------------------------------------------------------------------------------------ Event type : Information source : Axapta COM Connector event id : 169 Axapta COM Connector Session 8. System information dump: --# FV EIP----- RetAddr- FramePtr StackPtr Symbol 0 .V 77e6b458 0101005a 040d8118 0012e280 Mod: KERNEL32[KERNEL32.dll], base: 77e40000h 1 .V 0101005a 00000000 00000000 0012e280 SymGetSymFromAddr exit code 126 SymGetLineFromAddr exit code 126 SymGetModuleInfo exit code 126 Stackdump exit code 126 (The specified module could not be found) -------------------------------------------------------------------------------------------------- Event type : Warning source : Axapta COM Connector event id : 110 Axapta COM Connector Session 8. Exception 0xc0000005 occured in thread 0x890 handling session 8. -------------------------------------------------------------------------------------------------- Event type : Information source : Axapta COM Connector event id : 169 Axapta COM Connector Session 8. System information dump: --# FV EIP----- RetAddr- FramePtr StackPtr Symbol 0 .V 77e6b458 60066d72 0012e36c 0012e30c Mod: KERNEL32[KERNEL32.dll], base: 77e40000h 1 .V 60066d72 60066efd 0012e3b0 0012e30c Mod: AxCom[AxCom.dll], base: 60000000h 2 .V 60066efd 60008490 0012e3f8 0012e30c Mod: AxCom[AxCom.dll], base: 60000000h 3 .V 60008490 00000000 00000000 0012e30c Mod: AxCom[AxCom.dll], base: 60000000h Stackdump exit code 487 (Attempt to access invalid address) ------------------------ Yahoo! Groups Sponsor --------------------~--> Put more honey in your pocket. (money matters made easy). http://us.click.yahoo.com/r7D80C/dlQLAA/cosFAA/kGEolB/TM --------------------------------------------------------------------~-> Sharing the knowledge on Axapta. Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/Axapta-Knowledge-Village/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/