.net - The connection name 'LocalSqlServer' was not found in the applications configuration or the connection string is empty -


so yesterday installed php , mysql on development machine. since following error when trying run 1 of .net projects:

the connection name 'localsqlserver' not found in applications configuration or connection string empty.

it references line of machine.config:

<add name="aspnetsqlroleprovider" connectionstringname="localsqlserver" applicationname="/" type="system.web.security.sqlroleprovider, system.web, version=4.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a" /> 

i have searched online, high , low , can confirm machine.config has necessary connection string:

  <connectionstrings> <add name="localsqlserver" connectionstring="data source=.\sqlexpress;integrated security=sspi;attachdbfilename=|datadirectory|aspnetdb.mdf;user instance=true" providername="system.data.sqlclient" /> <add name="localmysqlserver" connectionstring="" /> 

interestingly enough, performed exact same operation of installing php , mysql on production server (server 2008) , there no problem there. dev machine windows 7.

my whole dev machine broken because of this. how can repair machine.config or fix , resolve problem? has experienced before?

nugs

maybe there web.config somewhere contains:

<connectionstrings>     <clear/>     ... </connectionstrings> 

you might want double-check you're looking @ right machine.config. there separate machine.configs each framework version, , separate ones 32-bit , 64-bit framework.


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -