Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Error in machine.config file - Parser Error Message: The connection name 'LocalSqlServer'Error in machine.config file - Parser Error Message: The connection name 'LocalSqlServer'
Previous
 
Next
New Post
11/28/2012 7:01 AM
 

Hi  this is the annoying error I am getting.. 

Parser Error Message: The connection name 'LocalSqlServer' was not found in the applications configuration or the connection string is empty.

I'm trying to setup dnn 7 and this is the error I am getting and I've searched quite a few sites but not sure how to resolve this - 

I had a beta version of dnn running,so I dropped the db, dropped all the files, extracted the new ones, edited the config file and I can't get any further than this.  Any suggestions would be helpful.

I'm running iis 7, .net 4.0 framework in both classic and integrated. I changed the appliction pool bindings but that didn't help either.

Thanks

Nina



Nina Meiers My Little Website
If it's on DNN, I fix, build, deploy, support,skin, host, design, consult, implement, integrate and done since 2003.
Who am I? Just a city chic, having a crack at organic berry farming.. and creating awesome websites.
 
New Post
11/28/2012 7:19 AM
 

I had the same error. Here is a quick fix that will allow you to install DNN7.

Just add the following to the "connectionStrings" section of your web.config file:

<remove name="LocalSqlServer" />
      <add name="LocalSqlServer" connectionString="Data Source=DBServerName;Integrated Security=false;Initial Catalog=DBName;User ID=DBLogin;Password=DBPassword" providerName="System.Data.SqlClient" />

So you "connectionStrings" section should look like this:

<connectionStrings>
    <!-- Connection String for SQL Server 2008/2012 Express -->
    <add name="SiteSqlServer" connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|Database.mdf;" providerName="System.Data.SqlClient"/>
    <!-- Connection String for SQL Server 2008/2012
    <add name="SiteSqlServer" connectionString="Server=(local);Database=DotNetNuke;uid=;pwd=;" providerName="System.Data.SqlClient" />
    -->
      <remove name="LocalSqlServer" />
      <add name="LocalSqlServer" connectionString="Data Source=DBServerName;Integrated Security=false;Initial Catalog=DBName;User ID=DBLogin;Password=DBPassword" providerName="System.Data.SqlClient" />

  </connectionStrings>


 
New Post
11/28/2012 7:30 AM
 

Thanks for that quick update - does that mean I need to put in my own details to the db including db name, user ID password etc?

What if my server is remote? Does that make a difference since I don't connect all my sites via the same machine.

I appreciate you telling me exactly where to put it as well.

Nina


Nina Meiers My Little Website
If it's on DNN, I fix, build, deploy, support,skin, host, design, consult, implement, integrate and done since 2003.
Who am I? Just a city chic, having a crack at organic berry farming.. and creating awesome websites.
 
New Post
11/28/2012 7:44 AM
 
Just chuck it in your web.config exactly as above & install DNN like you normally would though the wizard (no need to enter your details manually).
 
New Post
11/28/2012 7:47 AM
 
Thanks I'll give it a whirl in the AM.
Much appreciated..

Nina

Nina Meiers My Little Website
If it's on DNN, I fix, build, deploy, support,skin, host, design, consult, implement, integrate and done since 2003.
Who am I? Just a city chic, having a crack at organic berry farming.. and creating awesome websites.
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Error in machine.config file - Parser Error Message: The connection name 'LocalSqlServer'Error in machine.config file - Parser Error Message: The connection name 'LocalSqlServer'


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out