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 ...Manual Installation on GodaddyManual Installation on Godaddy
Previous
 
Next
New Post
6/14/2006 11:15 AM
 

OK JetJam, I followed your instructions for installing 4.3.0, and here is the error I am getting. I rechecked the DB and it is correct in my web.config.

Error Installing DotNetNuke

Current Assembly Version: 04.03.00

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

 

Here is my connection string data from 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=whsql-v02.prod.mesa1.secureserver.net;Database=Database=DB_*****;uid=myID;pwd=(myloginpassword);" 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=whsql-v02.prod.mesa1.secureserver.net;Database=Database=DB_*****;uid=myID;pwd=myloginpassword;"/>
    -->
    <add key="InstallTemplate" value="DotNetNuke.install.config" />
    <add key="AutoUpgrade" value="true" />

 

Can anyone help here. Thanx


If God does not live in Colorado, I bet he visits there a lot!!
 
New Post
6/14/2006 11:29 AM
 

Rajan:

In re-reading your connection strings I have spotted serveral errors in the connection string under appsettings. 

Please note that you are missing a significant section of the connections string after the word key.  Currently reads KeyServer=... should be key="SiteSqlServer" value="Server=...

The connection string should not have the provider attribute in the appsettings area.

The value should also be on one continuous line, not broken up as it appears (could just be the site formating) as this adds a line break value to the connection string which will also cause an error. 

rajan_hans wrote

<connectionStrings>
   <!-- Connection String for SQL Server 2000/2005-->
    <add
      name="SiteSqlServer"
      connectionString="Server=whsql-v02.prod.mesa1.secureserver.net; Database=DB_68228;uid=myUID;pwd=myPass;"
      providerName="System.Data.SqlClient" />
  
  </connectionStrings>

and the appsettings are:

<appSettings>
   
<!-- Connection String for SQL Server 2000/2005 - kept for backwards compatability - legacy modules
    <!-- <add key="SiteSqlServer" value="Server=(local);Database=DotNetNuke;uid=;pwd=;"/>-->
    <add keyServer=whsql-v02.prod.mesa1.secureserver.net; Database=DB_68228;uid=myUID;pwd=myPass;"
      providerName="System.Data.SqlClient" >
   
    <add key="InstallTemplate" value="DotNetNuke.install.config" />

Should Read:

<add key="SiteSqlServer" value="Server=whsql-v02.prod.mesa1.secureserver.net; Database=DB_68228;uid=myUID;pwd=myPass;"/>

 
New Post
6/14/2006 12:08 PM
 

Hi Michael,

Yeah that was an error that I had corrected last night itself. But I had not removed provider attribute. I did that just right now but still getting the same Runtime error.... :(

This is how things are setup -

<connectionStrings>
   
    <!-- Connection String for SQL Server 2000/2005-->
    <add
      name="SiteSqlServer"
      connectionString="Server=whsql-v02.prod.mesa1.secureserver.net;Database=DB_xxxx;uid=myUsername;pwd=MyPass;"
       />
  
  </connectionStrings>
  <appSettings>
   
    <!-- Connection String for SQL Server 2000/2005 - kept for backwards compatability - legacy modules
    <!-- <add key="SiteSqlServer" value="Server=(local);Database=DotNetNuke;uid=;pwd=;"/>-->
   

<add key="SiteSqlServer" value="Server=whsql-v02.prod.mesa1.secureserver.net; Database=DB_xxxx;uid=myUsername;pwd=MyPass;"/>
   
    <add key="InstallTemplate" value="DotNetNuke.install.config" />
   
    <!--  Alternative Install Templates (included in package)
    <add key="InstallTemplate" value="Club.install.config" />
    <add key="InstallTemplate" value="Personal.install.config" />
    <add key="InstallTemplate" value="SmallBusiness.install.config" />
    -->
    <add key="AutoUpgrade" value="true" />
    <add key="InstallMemberRole" value="true" />
    <add key="ShowMissingKeys" value="false" />
    <add key="EnableWebFarmSupport" value="false" />
    <add key="EnableCachePersistence" value="false"/>
  </appSettings>

 
New Post
6/14/2006 12:28 PM
 

Hi Michael,

Yeah that was an error that I had corrected last night itself. But I had not removed provider attribute. I did that just right now but still getting the same Runtime error.... :(

This is how things are setup -

<connectionStrings>
   
    <!-- Connection String for SQL Server 2000/2005-->
    <add
      name="SiteSqlServer"
      connectionString="Server=whsql-v02.prod.mesa1.secureserver.net;Database=DB_xxxx;uid=myUsername;pwd=MyPass;"
       />
  
  </connectionStrings>
  <appSettings>
   
    <!-- Connection String for SQL Server 2000/2005 - kept for backwards compatability - legacy modules
    <!-- <add key="SiteSqlServer" value="Server=(local);Database=DotNetNuke;uid=;pwd=;"/>-->
   

<add key="SiteSqlServer" value="Server=whsql-v02.prod.mesa1.secureserver.net; Database=DB_xxxx;uid=myUsername;pwd=MyPass;"/>
   
    <add key="InstallTemplate" value="DotNetNuke.install.config" />
   
    <!--  Alternative Install Templates (included in package)
    <add key="InstallTemplate" value="Club.install.config" />
    <add key="InstallTemplate" value="Personal.install.config" />
    <add key="InstallTemplate" value="SmallBusiness.install.config" />
    -->
    <add key="AutoUpgrade" value="true" />
    <add key="InstallMemberRole" value="true" />
    <add key="ShowMissingKeys" value="false" />
    <add key="EnableWebFarmSupport" value="false" />
    <add key="EnableCachePersistence" value="false"/>
  </appSettings>

 
New Post
6/14/2006 1:39 PM
 

Well I found two typo errors in my connection string.... connectionString="Server=whsql-v02.prod.mesa1.secureserver.net;Database=Database=DB_*****;

and have corrected them. But I am still getting the same error

Error Installing DotNetNuke

Current Assembly Version: 04.03.00

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

Anyone have any ideas? Could use some help.


If God does not live in Colorado, I bet he visits there a lot!!
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Manual Installation on GodaddyManual Installation on Godaddy


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