sandycrum
22nd February 2005, 23:13
Hi,
I am asking for your help. We run Baan IVc4 with Informix database on HPUX. I am a developer that has done some OLE work with Baan and Excel using their samples to pass a concatenated string to a Baan dll. I have some limited experience with Web programming.
What I need to do is create a small web application using ASP.net and C# to pass the same concatenated string to the Baan dll. Since I was already familiar with the VBA code used in the Excel stuff, I decided to try and get that same logic to work in my Visual Studio Web app.
I have setup a working web app on my PC with IIS. I have added a reference to the Baan4.tlb file, which Visual Studio has copied to my project bin folder as interop.baan4.dll I assume for the COM wrapper functionality.
I can start and run my web app without any reference to Baan OK - but when I add a statement to create the Baan object:
Baan4Class connectBaan=new Baan4.Baan4Class();
I get errors indicating the call to the server failed and all stops:
System.Runtime.InteropServices.COMException: Server execution failed
I do not have enough experience with this stuff to figure out what is wrong. I have been taking the trial and error approach for the last several days and looking at vast lists of googled searches without great success.
Can someone give me a heads up or script that will work - or is this a lost cause? The lack of information about this has me worried.
Thanks in advance for any help that can be offered.
I am asking for your help. We run Baan IVc4 with Informix database on HPUX. I am a developer that has done some OLE work with Baan and Excel using their samples to pass a concatenated string to a Baan dll. I have some limited experience with Web programming.
What I need to do is create a small web application using ASP.net and C# to pass the same concatenated string to the Baan dll. Since I was already familiar with the VBA code used in the Excel stuff, I decided to try and get that same logic to work in my Visual Studio Web app.
I have setup a working web app on my PC with IIS. I have added a reference to the Baan4.tlb file, which Visual Studio has copied to my project bin folder as interop.baan4.dll I assume for the COM wrapper functionality.
I can start and run my web app without any reference to Baan OK - but when I add a statement to create the Baan object:
Baan4Class connectBaan=new Baan4.Baan4Class();
I get errors indicating the call to the server failed and all stops:
System.Runtime.InteropServices.COMException: Server execution failed
I do not have enough experience with this stuff to figure out what is wrong. I have been taking the trial and error approach for the last several days and looking at vast lists of googled searches without great success.
Can someone give me a heads up or script that will work - or is this a lost cause? The lack of information about this has me worried.
Thanks in advance for any help that can be offered.