Why does executing a Stored Procedure With SubSonic 2.1 Inconsistently Populate sp.cmd? -


i need execute stored procedure subsonic 2.1 deletes records following code:

var sp = dal.sps.uspdeleteimportapplication(); sp.execute(); 

sometimes following error:

"message":"object reference not set instance of object.","stacktrace":" @ subsonic.dataservice.executequery(querycommand cmd) in c:\svn\subsonicproject\trunk\subsonic\dataproviders\dataservice.cs:line 542 @ subsonic.storedprocedure.execute() in c:\svn\subsonicproject\trunk\subsonic\activerecord\storedprocedure.cs:line 277

when stepping through code debugger, i've noted dataprovider return stored procedure null _cmd object, if step through again can procedure execute.

my other stored procedures work consistently no errors. there i'm overlooking? under conditions data provider not connection string?


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -