Group: StrataFrame Users
Posts: 87,
Visits: 3.3K
|
Hi Trent,
Thanks for you efforts trying to sort this out - I believe that I have found the cause of this problem.
I ran the sample application that you sent me on a different computer running VS2010 yesterday and got the same result as shown in my earlier post. What I found however was if I added a quick watch the object was instantiated and if I continued the grid did display. see attached screen shots. I tried again on my computer and got the same results.
I looked at your BO definition in the applicationbasepage.cs
private CustomersBO _Customers = new CustomersBO();
I use VB not C# but what stood out was the new keyword. In my applicationbasepage.vb I had declared my BOs as using
Public WithEvents Customers As CustomersBO
as this was what was used in the StrataFrame sample application. This definition would result in my application working under VS2008 but not under VS2010. If I changed this definition to
Public WithEvents Customers As New CustomersBO
my application ran correctly under VS2010.
I have looked at the compile options for in VS2008 & VS2010 and they seem to be set the same in both case. (explicit on, strict off, infer on). If there has been a change in behaviour between the V2008 & VS2010 then I am happy to add the new keyword in VS2010 - what I can't understand (yet!) is why the Strataframe VB Web Sample runs under VS2010 as it does not include the new keword in the BO definitions,
Best regards,
Andy
|