Link to home
Start Free TrialLog in
Avatar of gregajesih
gregajesih

asked on

Datagrid cannot initialize data binding -- deploy problem develop on XP-> deploy to Win2k

Hello crew.

Deployed application opens a dialog saying "Datagrid cannot initialize data binding".
It seems a XP->Win2k deployment problem.

Description: VB6 SP5 installed on WinXP. Need to deploy to Win2k system (could not resist using Xp for myself).
Application uses among other ocx-es msdatgrd.ocx.
If I use previously made intall package and only overwrite myapp.exe, application starts but grid is empty. SO I guess there is still error but it appears not to be critical. Yet it is still an error.

I installed MDAC 2.8 on target system and it still doesn't help. Same error.

So what is the catch that XP-prepared package does wrong in comparison to "old" package ?

When analyzing the myapp.exe cracking point, I see that my datagrid only appears to have 1 column while it should have 3. And when I rename the columns in runtime, accessing 2nd column causes error because binding was not proper etc.

What resources is binding task trying ta access that it does not get ?
What to do ?
What additional info do you need to be able to help ?

Thanks
Gregor

Avatar of edwardiii
edwardiii

Hi, gregahesih.

Possibly the solution at this site will help:  http://www.andreavb.com/forum/viewtopic.php?TopicID=2702

See the "found the solution" comment by magikandrea on 2-23-2004 at 4:25 pm.
Avatar of gregajesih

ASKER

Sorry for respense delay. Server was down.
Manual registration with regsvr32 of MSBIND.DLL did not help. Same error reported: Cannot initialize data bindings..

Grega
ASKER CERTIFIED SOLUTION
Avatar of edwardiii
edwardiii

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
edwardIII, now this is bizzarre:

I tried all you said and it did not work. Then, I uninstalled my application from server. SInce I discovered that all the needed dll-s and ocx-es are already on the target server, I only copyed myapp.exe there and started it.

IT WORKED !!!

At this point I decided to close this case temporarily now...

BR
GregaJ

EdwardIII,

my question reopened and then I solved it partially with MDAC_TYP 2.8 and partially by registering old msstdfmt.
So I accept your answer.

Thanks.
G.
Hope this solution keeps on working; sounds like a frustrating situation:)