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 ...Could not connect to database!!!Could not connect to database!!!
Previous
 
Next
New Post
9/17/2006 9:18 AM
 

Hi,

 

we are trying to install latest version and we have got to the point where Database is fine we tested with VS 2005 and connection works fine.  When we try to run the install page we get error "

Error Installing DotNetNuke

Current Assembly Version: 04.03.05

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

"

In uor web.config we setup our connection string as

  <connectionStrings>
    <!-- Connection String for SQL Server 2005 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 2000/2005
    <add
      name="SiteSqlServer"
      connectionString="Server=user-f5556bf10d;Database=DotNetNuke;uid=hassan;pwd=Buster;"
      providerName="System.Data.SqlClient" />
   -->

 


  </connectionStrings>
 

We are using SQL Server 2005  (not express 2005)

Can someone please tell us what we are doing wrong.

Many thanks 

 

 

 

 
New Post
9/19/2006 10:52 AM
 
Gone past this.  Problem was I was setting the connectionstring for SQL express when I am using sql 2005
 
New Post
9/19/2006 11:09 AM
 

have you tried both connection strings?

I usually uncomment the one Im using or delete the one Im not using.


DotNetNuke Search Engine
ASP.Net Search Engine
Email me to add your favorite sites to the search List.
 
New Post
9/19/2006 12:23 PM
 

Thank you dstruve

I did a post earlier on today saying that I went past this problem and yes it was the connectionstring.  I was using SQL 2005 express when in fact I wanted to use sql 2000

I on't know why my post doesn't appear here.  My problem moved on to another where I get "error occured" and something telling me to change my CustomErrors Mode to Off (from RemoteOnly) which i did and it didn't make any difference.

I did a new post here asking for help but so far I can't see it ;-(

 

 

 
New Post
9/19/2006 12:40 PM
 
I see that you have replied but i dont see your post, must be bug in forums.

DotNetNuke Search Engine
ASP.Net Search Engine
Email me to add your favorite sites to the search List.
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Could not connect to database!!!Could not connect to database!!!


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