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
|
Hello, I am getting this error when trying to create a Context, in the "context" (huh, huh) of .NET 3.5 with MySql 5.1 and MySql .NET Connector 5.2.6:
System.TypeInitializationException: The type initializer for 'Mindscape.LightSpeed.LightSpeedContext' threw an exception. ---> System.ArgumentException: Requested value 'MySqlClient' was not found.
My Web.config has this:
<connectionStrings><add name="dfing.local.mysql.lightspeed" connectionString="server=localhost;database=dfing;User ID=dfing;Password=__"/></connectionStrings> <lightSpeedContexts>
I have tried the following values for the dataProvider attribute: 'MySqlClient', 'MySql.Data.MySqlClient', 'MySQL Database (MySQL Data Provider)', and 'MySQL Data Provider' to no avail. I have a reference to the MySql provider dll in my project, it builds, but doesn't run. I have tried removing the reference to my installed MySql data provider and adding one for the version that comes with LightSpeed, but still no dice.
HELP! |
|
|
The dataProvider value needs to be a value from the Mindscape.LightSpeed.DataProvider enumeration. Thus, for MySQL, it needs to be "MySql5" (without the quotes). In 2.2 RTM, I think this is case sensitive, so it's necessary to get the capitalisation right. (More recent builds are case-insensitive.) |
|