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 ...SQL 2005 Connection StringSQL 2005 Connection String
Previous
 
Next
New Post
11/10/2006 2:26 PM
 

This is my third install of DNN and I thought I had it down, but I am getting a DB connection error.

 Error Installing DotNetNuke

Current Assembly Version: 04.03.05

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

_________________________________________________________________________________

Here are my web.config settings:

<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="Data Source=CAROLANDROB;Database=DotNetNuke;uid=TestUser;pwd=P@ssword1" providerName="System.Data.SqlClient"/>

</connectionStrings>

<appSettings>

<!-- Connection String for SQL Server 2005 Express - kept for backwards compatability - legacy modules

<add key="SiteSqlServer" value="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|Database.mdf;"/>-->

<!-- Connection String for SQL Server 2000/2005 - kept for backwards compatability - legacy modules-->

<add key="SiteSqlServer" value="Data Source=CAROLANDROB;Database=DotNetNuke;uid=TestUser;pwd=P@ssword1"/>

__________________________________________________________________________

I tested the connection string using the server manager and it is fine there. I even copied the connection string from the properties of the server manager into the web.config with no success. This is driving me crazy.

The only difference between the installations that I have done are:

1. This one is on my home machine and hitting the local copy of SQL Server(CAROLANDROB) instead of a remote development server at work.

 2. This install is using version 4.3.5 instead of  using version 4.0.3

LITTLE HELP?!

Thanks,

Rob

 
New Post
11/10/2006 3:55 PM
 

A few things that might want to try:

1) Add a ";" at the end of the password string as in: 

<add key="SiteSqlServer" value="Data Source=CAROLANDROB;Database=DotNetNuke;uid=TestUser;pwd=P@ssword1;"/>

2) Verify that TestUser has access to the database "DotNetNuke"

3) If you are using Visual Studio, verify that you have a connection named "SiteSqlServer".

 

If you still have problems, we'll take it from there.

 

sk

 

 
New Post
11/10/2006 4:20 PM
 

Try this

<add

name="SiteSqlServer"

connectionString="Server=(local);Database=XXXXXX;uid=yyyy;pwd=zzzzzzz;"

providerName="System.Data.SqlClient"

and

<add key="SiteSqlServer" value="Server=(local);Database=XXXXX;uid=yyyy;pwd=zzzzzzz;"/>

 
New Post
11/10/2006 4:39 PM
 

Olsmar,

Well, we're getting somewhere. The "Server=(local);" was a hit, but it causes an upgrade error:

DotNetNuke Upgrade Error

The Assembly Version ( [ASSEMBLYVERSION] ) does not match the Database Version ( [DATABASEVERSION] )

ERROR: Could not connect to database.

Login failed for user 'CAROLANDROB\ASPNET'.

I am now trying to use integrated security. Could that cause this error?

My current connection strings are:

<!-- Connection String for SQL Server 2000/2005-->

<add name="SiteSqlServer" connectionString="Server=(local);Database=DotNetNuke;Integrated Security=True;" providerName="System.Data.SqlClient"/>

</connectionStrings>

<appSettings>

<!-- Connection String for SQL Server 2005 Express - kept for backwards compatability - legacy modules

<add key="SiteSqlServer" value="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|Database.mdf;"/>-->

<!-- Connection String for SQL Server 2000/2005 - kept for backwards compatability - legacy modules-->

<add key="SiteSqlServer" value="Server=(local);Database=DotNetNuke;Integrated Security=True;"/>

This thing is real fussy. It must be looking for a very specific string format. Any other ideas?

 
New Post
11/10/2006 4:52 PM
 

sk,

I had tried it with and without the ; at the end of the connection string,

TestUser is my only user in the DotNetNuke database,

and the connection exists in visual studio. I changed the server to "Server=(local) and that has changed my error to:

DotNetNuke Upgrade Error

The Assembly Version ( [ASSEMBLYVERSION] ) does not match the Database Version ( [DATABASEVERSION] )

ERROR: Could not connect to database.

Login failed for user 'CAROLANDROB\ASPNET'.

I have also tried using integrated security just for something to do.

Still no luck. There must be a single magical combination that will unlock the mystery of the connection string.

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...SQL 2005 Connection StringSQL 2005 Connection String


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