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 ...DDN 4 Installation ErrorDDN 4 Installation Error
Previous
 
Next
New Post
1/16/2007 9:25 AM
 

Hi to all.

I try to install DNN 4. Let me show my environment:

Windows 2003 Server, SQL Server 2k (two instances), SQL Server 2005 Standard ( one instance for DNN), DNN is local on the server. Let's look to my web.config:

<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=(local)\MySQLInstance;Database=DotNetNuke;uid=User;pwd=Password;"
      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)\MySQLInstance;Database=DotNetNuke;uid=User;pwd=Password;"/>
    -->

Unfortunaltely I receive each time the same message:

Error Installing DotNetNuke

Current Assembly Version: 04.04.00

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

Wha't wrong?

BR

C.Hoffmann

 
New Post
1/16/2007 9:51 AM
 
Where did you create your database?  On SQL Server 2000/2005 or SQL Server 2005 Express?
 
New Post
1/16/2007 12:11 PM
 

Hi Oliver

DDN4 is installed on SQL Server 2005 Standard Edition. I found the reason for the Error in the time between. I've got no much experince with xml so I forgot to remove the comment signs in the connection string.

BR

Christian

 
New Post
1/17/2007 9:44 PM
 
For newbies like me to DNN, I think maybe folks should post what they did to fix the problem and not just that they fixed it.  I had the same issue and after reading this note a few times, finally caught on to the comment values in the web.config file.

I am using SQL Server 2000, so here is what I needed to do:

Comment strings are marked by using the following symbols : <!-- (to open the comment), --> (to close the coment)
The original web.config file is setup to automatically use the SQL Server 2005 string and not the SQL 2000/2005 string by default.

Note the line for the first string looks like this :
    <!-- Connection String for SQL Server 2005 Express -->
but the line for the next string does not close the comment (-->) until after the 'ProviderName' line.

This is what was getting me.  I had to move the close comment symbol (-->) on the first login attempt with 2005 to after the 'ProviderName' line, and then uncomment the 2000 login section by moving the close comment symbol to make the one line look like this:
    <!-- Connection String for SQL Server 2000/2005 -->

It was an easy thing to do, it just took some staring at it and the comment above to figure it out.

Hope this helps!

Todd
 
New Post
1/22/2007 10:29 PM
 

Dear tksherrer,

I totally agree with you. Your information was very helpful.

THANKS A LOT

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...DDN 4 Installation ErrorDDN 4 Installation Error


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