Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object Test Bench Error
Message
 
To
22/08/2007 00:53:54
Dave Porter
Medical Systematics, Inc.
Merced, California, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01249506
Message ID:
01250041
Views:
22
Dave,

>When I try to invoke a method on an object on the object test bench I get:
>"
>An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in System.Data.dll
>
>Additional information: Incorrect syntax near 'ClaimSelectByPK'.
>"
>I don't see any Incorrect syntax anywhere near ClaimSelectByPk.
>The solution builds without errors.
>The stored procedure executes fine from within M$ SQL server...

Check your business object, and if there is a line of code in the constructor that sets the DefaultCommandType property, remove it. Next time you run the the Business Layer Generator, make sure you uncheck the option on the second page of the wizard to "Set DefaultCommandType".

Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Reply
Map
View

Click here to load this message in the networking platform