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

bh_vfp
4th March 2004, 17:25
Tomaz,

Do you know the solution now ???

Bas

Jabran
15th September 2005, 10:20
Hello,

Just wondering if you found some clue. I am having similar problem, though I am not calling baan from ASP .Net but from a win32 service. The common thing is that both are lauching the bw.exe process in non user mode (service mode). I have also mentioned some observation under this thread (http://www.baanboard.com/baanboard/showthread.php?t=25090) .

Will applreciate if you can share your findings.

Thanks very much.

Regards,
Jabran

gurmeetmakkar
9th June 2006, 13:05
Dear

Please give a sample of zoom
i know how to assign the zoom session in form.
but i donot know how to display particular mannar
e.g
i want to show only purchase in tansfer manual(not show sfc production ,sfc manual and other)

thanks

Gurmeet Singh

ckassab
15th June 2006, 22:30
Hi,

Sorry if the answer not responds your questions directly but BOBS

http://www.baanboard.com/twiki/bin/view/Infodevel/BaanOleBrokerServer

Is developed using .NET and may be helps you with your problem.

Carlos Kassab

javier_ent
24th October 2007, 18:48
Hi Carlos, long time no seeing you...:D

BOBS is a pretty good option, although I had some troubles in the past regarding the socket management... So I tried using the same API with web services or directly from the web page. I found the same problem mentioned here... the bw.exe process was shown at the task manager, but application would never get an answer from it once you send the ParseExec function. After some time learning about DCOMs and services I found that the problem was regarding the DCOM process security, I just missed to include the IIS users as well as the anonymous user. Once I corrected this I could work with no problems.

Please try searching for "DCOM security setup" at google and you'll find some coherent answers.

Any doubts I'm at your orders.

-----------------------------------------------------
BSE Javier Nuñez
Baan OLE Developer
SAP RFC Developer
.NET Developer
Java Developer