Last post Mar 24, 2006 03:09 PM by hal900
Mar 23, 2006 04:36 PM|hal900|LINK
Hi, I've been searching the newsgroups and working this problem for a full day now and I'm hoping someone can point me in the right direction here
I have created a module that uses two (or more) INFO types. Two of those types are used in CBO.FillCollection to get an arraylist of objects. One use of the info objects returns the expected arraylist of objects while the other returns an arraylist of Nothing
I've debugged the code (stepping throught CBO.FillCollection and CBO.CreateObject) and can step through the default New of each object. But when CreateInstance returns, it returns Nothing
Dim objObject As Object = Activator.CreateInstance(objType)
Each time this line executes, objObject as Nothing in the debugger. I examine objtype.name and it is "PlanPriceInfo" as it is supposed to be. There is no error raised on this line and the next line executes as expected.
I've scrutinized both info types "PlanPriceInfo" (failed) and "PlanShippingInfo" (successful) for issues but they are both small (3-4 parameters) and I could see no problems.
Has anyone see this, or have any ideas where else to look?
Mar 23, 2006 11:51 PM|ecktwo|LINK
I've seen something like this before and might apply in this case...
The data provider (SqlDataProvider) is a separate project from your controller class. When you make a change in the data provider, it does not automatically gets recognized by the module's project. One possible solution is to remove the data provider from
your module's project reference, then add it back in.
Mar 24, 2006 03:09 PM|hal900|LINK
Thanks for the reply,
I tried your suggestions and did some other things like clearing the vswebcache, but nothing helped. I did stumble on the fact that Nothing is not the result of the CreateInstance having a problem, but is related to the new object being assigned to an object
of type Object or to the arraylist. So the odessey continues ...