baanconsultant
22nd March 2011, 13:08
I created a webservice (VS2008 SP1) that calls Baan DLL's using
createobject(My.Settings.BaanActiveXObject)

It run fine under Windows Server 2003.

With Windows Server 2008 R2 (IIS7), quite often the createobject method fails the first time, but succeeds the second time.

I created a loop that tries several times, this seems to solve the problem, but it's far from perfect. Does anyone know why the createobject method fails the first time?

I am using identity.impersonate to get to the right BECS configuration.