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
|
Unhandled Exception: System.Configuration.ConfigurationErrorsException: Configuration system failed to initialize ---> System.Configuration.ConfigurationErrorsException: Only one <configSections> element allowed per config file and if present must be the first child of the root <configuration> element. (D:\Development\net\experiments\DAL_MVC_EXTJS\Sandbox\bin\Debug\Sandbox.exe.Config line 8)
that's my app.config:
<?xml version="1.0"?> <configuration>
<startup> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/> </startup>
<configSections> <section name="lightSpeedContexts"type="Mindscape.LightSpeed.Configuration.LightSpeedConfigurationSection,Mindscape.LightSpeed" /> </configSections>
<connectionStrings> <add name="Dev" connectionString="Server=localhost; Database=test2; Uid=root;Pwd=3x;" /> </connectionStrings>
<lightSpeedContexts> <add name="defaul" connectionStringName="Dev" dataProvider="MySQL5" /> </lightSpeedContexts>
</configuration> what's wrong?
|
|
|
ok found that configSections should be immediately after the root element., but got another problem now
Unhandled Exception: System.InvalidOperationException: The ConnectionString prop erty has not been initialized. at System.Data.SqlClient.SqlConnection.PermissionDemand() at System.Data.SqlClient.SqlConnectionFactory.PermissionDemand(DbConnection o uterConnection) at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection ou terConnection, DbConnectionFactory connectionFactory) at System.Data.SqlClient.SqlConnection.Open() at ☻.♣.get_Connection() at Mindscape.LightSpeed.UnitOfWork.PrepareCommand(IDbCommand command) at ♦.☺.☻() at ♣.♦.⌂(String , IdentifierExpression , Query ) at Mindscape.LightSpeed.UnitOfWork.Calculate(String calculation, IdentifierEx pression attribute, Query query) at Mindscape.LightSpeed.UnitOfWork.Count(Query query) at Mindscape.LightSpeed.Linq.Plan.SingleQueryPlan.PerformCountQuery(IUnitOfWo rk unitOfWork) at Mindscape.LightSpeed.Linq.Plan.SingleQueryPlan.ExecuteImmediate(IUnitOfWor k unitOfWork, Type returnType) at Mindscape.LightSpeed.Linq.LinqQueryProvider.Execute(Expression expression)
so it doesn't see my connection string and I used to make the same way as on screencast here http://www.mindscape.co.nz/products/lightspeed/screencasts/gettingstarted.aspx any ideas guys? |
|
|
I had a typo, now better but still getting errors:
Unhandled Exception: System.IO.FileNotFoundException: Could not load file or ass embly 'MySql.Data, Version=5.2.5.0, Culture=neutral, PublicKeyToken=c5687fc88969 c44d' or one of its dependencies. The system cannot find the file specified. at ♫..CreateCommand() at.♫..ctor(LightSpeedContext ) at Mindscape.LightSpeed.Data.DataProviderAdapter.☻(LightSpeedContext ) at ♦.☺.☻()
anything I should do? |
|
|
|
|