c# - Mindscape.LightSpeed Database connectivity problem -


i'm using mindspace.lightspeed in c# desktop application first time i'm getting errors , unable connect database. alt text

my app.config contains following code:

<?xml version="1.0" encoding="utf-8" ?><configuration> <configsections> <section name="lightspeedcontext" type="mindscape.lightspeed.configuration.lightspeedconfigurationsection,mindscape.lightspeed" /></configsections><connectionstrings> <add name="defectsconstr" connectionstring="data source=.\sqlexpress2k5;initial catalog=defects;persist security info=true;user id=sa;password=123"   providername="system.data.sqlclient" /></connectionstrings>  <lightspeedcontext>  <add name="development" connectionstringname="defectsconstr" dataprovider="sqlserver2005"/> </lightspeedcontext> </configuration> 

i have managed reproduce problem, need change configuration file section name is

lightspeedcontexts , not lightspeedcontext

see configuration file

<?xml version="1.0"?> <configuration>   <configsections>     <section name="lightspeedcontexts" type="mindscape.lightspeed.configuration.lightspeedconfigurationsection,mindscape.lightspeed"/>   </configsections>   <connectionstrings>     <add name="blog" connectionstring="data source=blog.dat"/>   </connectionstrings>   <lightspeedcontexts>     <add name="blog" connectionstringname="blog" dataprovider="sqlite3" identitymethod="keytable" pluralizetablenames="false"/>   </lightspeedcontexts> </configuration> 

Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -