• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 217
  • Last Modified:

VB .NET - Error message

When passing a dataset from a function to another form, and binding it to a datagrid I sometimes get this error at runtime: "Cant create a list for the field CUSTOMER."

The strange thing is that the same code is OK when it is run from the form it is created in. It never gives this error message unless it is the first time it is run from another form. Any following times it runs after that are OK, and the code executes as expected.

What does this error actually mean? I cant find anything wrong with the code. If it was, then it should fail every time it runs and not just the first time.
0
itnifl
Asked:
itnifl
  • 4
  • 3
1 Solution
 
abelCommented:
Can it be that you have pasted the wrong error? Should it be "Can't create a child list for field XXX"? It seems to be a common error with .NET 1.1. What version do you use of VS and .NET CLR?
0
 
itniflAuthor Commented:
I am using VS 2008. I have .Net framework 1.1 and 3.5.
I tried to translate the error from norwegian to english.
"Can't create a child list for field XXX," can just as well be the correct translation.
0
 
abelCommented:
> can just as well be the correct translation.

just to get this right, because the correct error and/or error number (you can look that up in the error inspector) is very important in finding a good solution. What is it in your own language? (there's a chance I speak it a bit too...)
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
abelCommented:
It seems to be an old problem. Maybe there's a conflict with your 1.1? I doubt it, because 1.1 cannot be used with VS 2008 anyhow. Here's a report from microsoft on your error: http://support.microsoft.com/kb/816799 with a workaround

Another workaround was apparently posted here: http://www.experts-exchange.com/Programming/Languages/C_Sharp/Q_21051055.html
0
 
itniflAuthor Commented:
The error that comes sometimes, but only in a first search through the database, resulting in a filling of a dataset and passing it from function and a form to another is this:
"Kan ikke opprette en underordnet liste for feltet KUNDE."

The translation "Can't create a child list for field XXX," is correct in my opinion.
0
 
abelCommented:
Have you tried the links I showed you? And if so, what have you tried?
0
 
itniflAuthor Commented:
The links linked to pages that had the same name on the error, but didnt apply to my case. I had a bunch of search functions in a form, that was repeaditly used in the program from different other forms. The solution was to create a new instance of the search form for each form that was going to use it. That gave each form a clean instance to work with, that was cleared after use.

Dont know really why that would be a problem, but the solution worked.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now