This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Im trying out LightSpeed for the first time but can't drag a stored proc to the designer surface successfully. I get the following error:
I am using the current nightly build (Nightly Build for 17 Jul 2009 - LightSpeedExpress-20090717.msi). And have tried uninstalling/reinstalling twice. |
|
|
On a Sql Server 2005 database. |
|
|
Hmm, sounds like one of the columns returned by the sproc has no name, which seems a bit strange. Could you send us the stored procedure definition please? Thanks! |
|
|
I checked and there was a an unamed column. Setting the name fixed this issue. Now I'm getting: System.InvalidOperationException was unhandled by user code I suspect the configuration is wrong. Here is what I have: <LightSpeed> I do also have the configuration section and connection string.
|
|
|
bump |
|
|
Oops, sorry for the delay in replying -- there seems to be an issue with the forums notifying us of new posts at the moment. Your configuration file should contain something like this: <configuration> <configSections> <lightSpeedContexts> Note that the configuration section is named lightSpeedContexts, not LightSpeed, and that you need an entry in the configSections section. See Help Topics > LightSpeed > Configuration in the help file for an example configuration file. If this doesn't fix it, could you post your config file (you can attach a file using the Options tab) and we will take a look at it. |
|
|
That did it. Thanks! Do you have a documentation page with example configurations for different db types? |
|
|
Sorry for all these questions but I keep getting errors. I am now trying to replace some of my L2SQL code and I was able to drag one proc over just fine to the model designer. But the second gave me this error: Exception while processing Server Explorer drag: System.Data.SqlClient.SqlException: Conversion failed when converting the varchar value 'A' to data type int. |
|
|
We don't have specific sample configurations for different database types, because the configuration options are database-type-independent. The only thing that would normally be database-dependent is the connection string. If there's a particular configuration option that you think we're not illustrating clearly enough, or whose interaction with the database type you feel is unclear, please do let us know and we'll try to improve the docs! |
|
|
I think this is occurring because we need to call the sproc to determine the kind of data it returns, which means we need to send it dummy data, and it looks like we may be sending the wrong kind of dummy data. Could you provide us with the sproc definition, and the CREATE TABLE statements for any tables referenced by the sproc, so we can reproduce and track this down? Thanks! |
|