Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error in code - with Stored Proc
Message
From
27/07/2004 11:21:09
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00928301
Message ID:
00928322
Views:
19
It sounds to me like oCompany hasn't been instantiated yet.

~~Bonnie

>I have stepped through it, i never get into the this.oCompnay object. It bombs right away.
>I have removed the ds in front of it, and it bombs.
>I have tested the storeproc from with in the VS.IDE server manager and it returns the right results.
>
>It also compiles fine, it is only at runtime.
>
>Thanks!
>
>
>
>>Hi, Shawn,
>>
>>Generally, that error means that you're trying to refer to an object that hasn't been instantiated.
>>
>>I can't tell from the code if the error refers to the dataset or the object reference 'oCompany'. Maybe the dataset has a null reference because the stored proc errored out...or maybe oCompany isn't set.
>>
>>If you step through the code one line at a time and set a watch on those two things, that might help.
>>
>>Kevin
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform