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 with DNN and SQL2000Error could not connect to database with DNN and SQL2000
Previous
 
Next
New Post
2/17/2007 6:55 PM
 

Hi all,

I have a problem with my installation of DNN. (I'm a novice !). I can't make a connexion with DNN and SQL database for to continue installation. this is my error :

Error Installing DotNetNuke
Current Assembly Version: 04.03.07
ERROR: Could not connect to database specified in connectionString for SqlDataProvider

but i d'ont understant really..... I checked all issues, but no.... i d'ont understand....  normally this error can be in the web config file, this is my string : 

<add key="SiteSqlServer" value="Server=tfr1Dotnet\DNN;Database=DotNetNuke;uid=dnn;pwd=toto;"/> 

the server is tfr1dotnet\DNN where DNN is my SQL instance, and DotNetNuke my database, the user "dnn" is owner of this base and is also in security modul. (SQL 2000 for version)

for me this file is ok..... ! I make a DSN configuration in ODBC, but nothing.....it's same error

solution found on internet don't resolv my problem

can you help me ?

thanks very much

Florence

 
New Post
2/17/2007 10:42 PM
 

There are TWO connection strings - the one that you show above under the <appSettings> node of web.config AND also the primary connection string under the <connectionStrings> node of web.config. Make sure that both of these connection strings have been properly set and their value="  "   and connectionString="  "   attributes are the same.

Also check that the <!-- . . . . . .  --> comment markers have been properly placed so that the SQL Server 2005 Express connections are commented out and the ones for SQL Server 2000/2005 are the active ones.

Also, try connecting to the database using SQL Server Management Studio Express or similar tool with the same database and usernames and password.  If you are not able to connect outside of DNN then the problem most likely lies in the database setup itself.

 


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
2/18/2007 4:15 PM
 

thanks for your answer and your information

I checked for the comment markers, because I d'ont know this information, but the connection with database is always not Ok,  so, with an other tool, the connexion to dotnetnuke database is ok !

this is my webconfig file : (a part of)

what do you think ? Really I don't see where there is an error.... checked with server = Local, with server=tfr1dotnet and with Trf1dotnet\DNN (where DNN is instance), and with server= @ip, but it's doesn't work.

<connectionStrings>
<!-- *************** CONNECTION POUR SQL 2000 *********************** -->
<!-- Connection String for SQL Server 2000/2005 -->
    <add
      name="SiteSqlServer"
      connectionString="Server=tfr1dotnet;Database=DotNetNuke;uid=dnn;pwd=toto;"
      providerName="System.Data.SqlClient" />
</connectionStrings>
<appSettings> 
    <!-- Connection String for SQL Server 2000/2005 - kept for backwards compatability - legacy modules -->
    <add key="SiteSqlServer" value="Server=tfr1dotnet;Database=DotNetNuke;uid=dnn;pwd=toto;"/>
    <add key="InstallTemplate" value="DotNetNuke.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"/>
    <add key="HostHeader" value="" /><!-- Host Header to remove from URL so "www.mydomain.com/johndoe/Default.aspx" is treated as "www.mydomain.com/Default.aspx" -->
    <add key="RemoveAngleBrackets" value="false" /><!--optionally strip angle brackets on public login and registration screens-->
    <add key="PersistentCookieTimeout" value="0" /><!--use as persistent cookie expiration. Value is in minutes, and only active if a non-zero figure-->
  </appSettings>

thanks for your help

Florence

 
New Post
2/19/2007 9:43 AM
 
Have you tried to log into the database with enterprise manager to validate that your login and server information is working correct?  I have found that to be a very important idea.

-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
2/19/2007 4:39 PM
 

Yes, of course, I also tried to log into the database DotNetNuke with login dnn and pass toto, with enterprise manager, and it's all rights ! and really I don't understand why it's ok with enterprise manager and also with ODBC DNS File !  I reinstall SQL server also ..... and same error....

I'm desesperate really .......

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Error could not connect to database with DNN and SQL2000Error could not connect to database with DNN and SQL2000


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