?
Solved

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

Posted on 2005-05-04
6
Medium Priority
?
1,614 Views
Last Modified: 2013-12-25
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

0
Comment
Question by:gregajesih
  • 3
  • 3
6 Comments
 
LVL 10

Expert Comment

by:edwardiii
ID: 13927843
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.
0
 

Author Comment

by:gregajesih
ID: 13957636
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
0
 
LVL 10

Accepted Solution

by:
edwardiii earned 2000 total points
ID: 13960081
Sorry that didn't help.  Here are three other potential solution sources.  For the EE posts, I've pasted the core of the accepted answers, but if that doesn't fix the issue, read through those posts completely, as minor adjustments per your deployment may be required:

These two cover your error specifically:

http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_20097380.html
"Copy and register msstdfmt.dll"

http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_20120501.html
"mscomct2.ocx is not in your package (.lst file). If you include it, you won't need to do anything"

This link may apply, as you mentioned a disparity between designed column count (3) and run-time (1):

http://support.microsoft.com/default.aspx?scid=kb;en-us;224192
"DataGrid Is Not Populated Using Jet.OLEDB.4.0 Provider and ADO Server Side Cursor"
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 

Author Comment

by:gregajesih
ID: 13978484
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

0
 

Author Comment

by:gregajesih
ID: 14067016
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.
0
 
LVL 10

Expert Comment

by:edwardiii
ID: 14067709
Hope this solution keeps on working; sounds like a frustrating situation:)
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question