CathyB
20th January 2003, 20:14
I am trying to access the Baan object from ASP.Net and I am receiving an Access is Denied error. Does anyone have any suggestions?
Here is my code:
Dim BaanObj as Object
Sub BaanConnect()
If BaanObj Is Nothing Then
BaanObj = Server.CreateObject("Baan4.Application")
BaanObj.Timeout = 10
MsgBox("Connected")
End If
End Sub
mark_h
20th January 2003, 20:22
Not sure if this is the correct forum, but I figured it might get some answers here. The code and utilities forum is for actual code for utilities and sessions. So hopefully you will get some answers here.
Mark
mark_h
21st January 2003, 16:54
I had some time to look at this post, the code you posted looks just like what I use in Excel for the OLE piece. Now I do not know anything about ASP.NET, but I do know that certain client versions, porting sets and tools versions do not play well together. I learned this the hard way when Baan support told me this was no longer supported for our versions, but here on the board I learned that it worked for others. So I went for a while where I had to use an old client to get it to work, then when we got a new porting set the new client started working. I know this is not much help, but you may have to go to baan support.
Mark
CathyB
21st January 2003, 16:59
Thanks for your reply. My posted source code works fine in VB 6.0 and in vb.net but not in ASP.Net so I think it is a specific problem to ASP.Net.
ttss82
6th February 2003, 12:01
You should use the utility "dcomcnfg.exe" in windows, search for Baan4 Application and look at SECURITY tab.
Hope this helps,
Regards,
Tomaz