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 ...Install Error-Could not connect to databaseInstall Error-Could not connect to database
Previous
 
Next
New Post
3/11/2007 5:47 PM
 
I actually looked at it and removed the comments and added for the SQL Express and it installed great. I overlooked the commented out lines.

Thanks for all your help!
 
New Post
3/11/2007 6:17 PM
 

To ssaunders,

Your connection strings look OK.  Am I correct that you have manually created the database and the user/password login and added it to the database logins with db_owner rights? Are you able to connect to the "DotNetNuke" database in SQL Server Management Studio using the same username and password that is in the DNN connection strings (that is, using SQL Server Authentication mode and not Windows Authentication mode)?  Was there any additional information given in the error message besides "cannot connect to the database"?


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
3/11/2007 7:04 PM
 

I actually got this to work by adding the ASPNET user-id as db_owner in the DotNetNuke database that I manually created.  My server is setup for SQL Server and Windows authentication mode so I ended up removing the uid and pwd and using the following connection string:

 <add name="SiteSqlServer" connectionString="Server=localhost;Trusted_Connection=true;Database=DotNetNuke" providerName="System.Data.SqlClient" />

<add key="SiteSqlServer" value="Server=localhost;Trusted_Connection=true;Database=DotNetNuke" />

It also connects when I use the user/password login in the connection string.

thanks...

 
New Post
3/12/2007 9:25 AM
 
I hope that someone can help me I'm currently having a lot of trouble setting up on my localhost and have had a few different errors over the last week that I have been at it.
I'm fairly sure the problem is in the database. I have actually got my portal to work but its like me and  my success with  women . Any success I have had is short lived and cannot be replicated in any useful way in a real world environment.
I got the site to work by debugging the default file in vwd2005 when I did this the site installed and ran no problem but when I try and access the site from localhost it gives the following error

DotNetNuke Upgrade Error

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

ERROR: Could not connect to database.

Cannot open database "dotnetnuke" requested by the login. The login failed. Login failed for user 'WS00073\ASPNET'.

I have tried a couple of conn strings this is the one I am currently using with the one I tried previously commented out

<connectionStrings>
    <!-- Connection String for SQL Server 2005 Express -->
    <add name="SiteSqlServer" connectionString="Data Source=.\SQLExpress;Integrated Security=True;Database=dotnetnuke;" providerName="System.Data.SqlClient" />
    <!--<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);Database=DotNetNuke;uid=;pwd=;"
      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;Database=dotnetnuke;" />
    <!--
    <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;uid=;pwd=;"/>
    -->

I've created a couple of databases
one in SQL Server 2005 using the management studio and that one's in the sql express data directory and I made a copy of that blank database and put it in the App_Data folder I have also created two new user groups in the security tab in the properties for the dnn site folder I have granted modify permission to ASP.NET and NETWORK SERVICES just to be sure.

Because I can get the site to work in vwd2005 I think I must be nearly there, it's a bit frustrating to say the least.

Any help appreciatted, thanks
 
New Post
3/18/2007 9:46 PM
 

DotNetNuke Upgrade Error

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

ERROR: Could not connect to database.

Keyword not supported: '67.19.23.66;database'.

 

 

Anyone know why this would be??

 

My config file looks as follows:

<

<!--

<add

name="SiteSqlServer"

connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|Database.mdf;"

providerName="System.Data.SqlClient" />

 

<!--

<

 

</

<

<!--

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

 

<!--

<

<

<

<

<

<

<

<

<

<

</

connectionStrings> Connection String for SQL Server 2005 Express --> Connection String for SQL Server 2000/2005 -->add name="SiteSqlServer" connectionString="Server=67.19.23.66:1433;Database=mhrdnn;uid=mhrdnn;pwd=xxx;" providerName="System.Data.SqlClient" />connectionStrings>appSettings> Connection String for SQL Server 2005 Express - kept for backwards compatability - legacy modules --> Connection String for SQL Server 2000/2005 - kept for backwards compatability - legacy modules -->add key="SiteSqlServer" value="Server=67.19.23.66:1433;Database=mhrdnn;uid=mhrdnn;pwd=xxx;"/>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>

 

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Install Error-Could not connect to databaseInstall Error-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