ttss82
18th October 2002, 09:01
I found the following code works with no problem when using VB.NET (Windows application):
DIM BaanObj as System.Object
BaanObj = CType(Server.CreateObject"Baan4.Application"), Baan4.Baan4)
'
' some code
'
BaanObj.Timeout = 30
BaanObj.ParseExecFunction(dllname, dllfunction)
A Baan BW Client is started with no problem in Automation mode ( as I see it in toolbar) and properties ans metods are executed and the control is returned to the calling program.
-----------------------------------------------
When I use the same code in ASP.NET code behind, the BW client
is started (I do not see it in the toolbar, but bw process is active).
I can normally access BaanObj.Timeout property.
But when I try to execute BaanObj.ParseExecFunction method just nothing happened (page is just waiting...) and the control is never returned to calling program (I have to stop the browser manualy).
My ASPNET user is in the Administrator group. I also have setup the DCOM security properties with "dcomcnfg", so the security is not the problem.
Do you have any idea, what else can I try?
Any help will be very welcome.
Tomaz
DIM BaanObj as System.Object
BaanObj = CType(Server.CreateObject"Baan4.Application"), Baan4.Baan4)
'
' some code
'
BaanObj.Timeout = 30
BaanObj.ParseExecFunction(dllname, dllfunction)
A Baan BW Client is started with no problem in Automation mode ( as I see it in toolbar) and properties ans metods are executed and the control is returned to the calling program.
-----------------------------------------------
When I use the same code in ASP.NET code behind, the BW client
is started (I do not see it in the toolbar, but bw process is active).
I can normally access BaanObj.Timeout property.
But when I try to execute BaanObj.ParseExecFunction method just nothing happened (page is just waiting...) and the control is never returned to calling program (I have to stop the browser manualy).
My ASPNET user is in the Administrator group. I also have setup the DCOM security properties with "dcomcnfg", so the security is not the problem.
Do you have any idea, what else can I try?
Any help will be very welcome.
Tomaz