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: Could not connect to database specified in connectionString for SqlDataProviderERROR: Could not connect to database specified in connectionString for SqlDataProvider
Previous
 
Next
New Post
9/5/2006 3:06 PM
 

Hi folks,

Since I have a freshly installed version of Visual Web Developer Express, as an alternate approach, I decided to try to install DNN 4.3.4 from scratch using Michael Washinton's well document, step-by-step:  "Setting up Your DotNetNuke Version 4 Development Environment" - (http://www.adefwebserver.com/DotNetNukeHELP/DNN4_DevelopmentEnvironment/DNN4DevelopmentEnvironment1.htm)

I followed the instructions perfectly, and in fact, every one of his screens matched mine exactly (with the exception of the directory name - mine was shortened to "DNN434")

At the point that his instruction states: "The site sets up using the default settings that are set to use SQL Server Express." is where I got the following error message:

Error Installing DotNetNuke

Current Assembly Version: 04.03.04

ERROR: Could not connect to database specified in connectionString for SqlDataProvider

There was no way to reach Michael on his site, so I'm trying my luck here...

When I looked at SQL Server Management Studio Express CTP, I could not see a new database... I noticed that his instructions did not say anything about the creatiion of the database, so I thought that perhaps the script took care of this.  Perhaps not?

If anyone has gone through Michael's instructions, perhaps they can spot something missing?

Thanks!


Rob Poretti - Poretti Productions
 
New Post
9/5/2006 8:24 PM
 

Here is your clue: ERROR: Could not connect to database specified in connectionString for SqlDataProvider

There are two things I would do: a) Check the connection string in the web.config file to make sure it was correct. OR b) check and make sure the database exists.


Shadow
 
New Post
9/6/2006 10:27 AM
 

Right... I had already looked into that.  The connection string was originally:

<connectionStrings>

<add name="SiteSqlServer" connectionString="Data Source=rob\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|database.mdf;" providerName="System.Data.SqlClient"/>

</connectionStrings>

So I added a database called DNN434 and changed the connection string to:

<add name="SiteSqlServer" connectionString="Data Source=rob\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|dnn434.mdf;" providerName="System.Data.SqlClient"/>

I also changed the <appSettings> add key string appropriately.

I still got this error:

ERROR: Could not connect to database specified in connectionString for SqlDataProvider

So... it sounds like the database is still not correctly set-up.  I'm looking into this, but Michael if you're reading, please make a note about this in your instructions...

Cheers! 

 


Rob Poretti - Poretti Productions
 
New Post
9/6/2006 4:23 PM
 
If you use the default connection string format from DNN, you need to create your dnn434.mdf in the App_Data folder of the DNN web application. 

http://msdn2.microsoft.com/en-us/library/ms228037.aspx

Otherwise, switching to a more traditional connectiong string, without the AttachDbFileName syntax might be easier.

e.g. place something similar to this in both required locations in the web.config.

    <!-- Connection String for SQL Server 2005 Express C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\ -->
    <add name="SiteSqlServer" connectionString="Data Source=.\SQLExpress;Integrated Security=True;Database=dnn434;" providerName="System.Data.SqlClient" />



 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...ERROR: Could not connect to database specified in connectionString for SqlDataProviderERROR: Could not connect to database specified in connectionString for SqlDataProvider


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