Products

Solutions

Resources

Partners

Community

About

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 ...Cannot get a brand new install to work - Upgrade Error; Could not connect to databaseCannot get a brand new install to work - Upgrade Error; Could not connect to database
Previous
 
Next
New Post
2/20/2006 2:09 PM
 

I have been trying with zero success to install DotNetNuke on a test Windows XP system running ASP.NET 2.0.50727 and SQL Server 2005.  I have been trying to follow the several other threads in this forum but fail to get anywhere.

 

I just created a new test application for it following the steps in the installation guide and get the following when opening http://localhost/test2 in the browser:

 

DotNetNuke Upgrade Error

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

ERROR: Could not connect to database.

Login failed for user 'test2'.

 

I have followed the instructions as exactly as my simple mind can.  The only step I cannot do is to apply the directory security for the ASPNET account as the Windows XP system is not part of a domain so the security tab is not really there.  Since the system is just a test sandbox system I just added ASPNET to the local Administrators group to be sure the account has total system access.

 

There is nothing in the event logs and no log in \Portals\_default\Logs.

 

The database is called test2 and the test2 and ASPNET both have complete access to the database interactively.  The ‘interesting’ part of web.config is below:

 

  <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);Database=test2;uid=test2;pwd=test2;"

      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=test2;uid=test2;pwd=test2;"/>

 

I would really appreciate pointers about what I may have done to annoy DNN such that it refuses to install.

 

Thanks!

 
New Post
2/20/2006 7:57 PM
 

Hello!

Rather than using (local), which is usually OK, I would explicitely name your SQL Server 2K5 instance.  The reason is that if you have SQL 2000, then (local) may point to this instance, or it could be SQLExpress...Also, the name may need to be in the format of "MachineName\SQLExpress", etc.  I am guessing since I don't know how you are configured.  My guess, though, is that if you open SSMS and (local) you will not find your test database within this registration instance, as you expect to.

Good luck!
John

 
New Post
2/20/2006 10:00 PM
 

I'm having a somewhat similar problem but with an additional error message "

DotNetNuke Upgrade Error

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

ERROR: Could not connect to database.
Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed."

This occurred after an automatic Windows Update - not a DNN upgrade

I, too, would appreicate help.

Thanks.

 
New Post
2/21/2006 7:31 AM
 
I fixed my problem - I used the repair capability in Add/Remove Programs for SQL Server Express and rebooted. This got the site working again.
 
New Post
2/21/2006 10:23 AM
 

Thanks for the good pointer, John.  Sadly, I have changed the message received but still no joy.

 

I have changed the connection string to be specific to the SQL Server 2005 instance (I hope):

 

Server=127.0.0.1/MSSQLSERVER;Database=test2;uid= test2;pwd= test2;

 

I have used the actual host name, ., and (local) in place of the loopback IP address and I have tried removing the MSSQLSERVER but I get various versions of messages like this:

 

Error Installing DotNetNuke

Current Assembly Version: 04.00.02

ERROR: Could not connect to database specified in connectionString for SqlDataProviderSystem.Data.SqlClient.SqlException: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) at (remainder trimmed)

 

I have turned off the Windows XP SP2 firewall and there is no effect.  The change does seem to have caused a log file called LogFailures.xml.resources in Portals\_default\Logs to be created but I fail to see anything in it that gives me a clue.

 

<logs><log LogGUID="c820a4b7-4230-449c-9123-7699ad844109" LogTypeKey="APPLICATION_SHUTTING_DOWN" LogUserID="-1" LogUserName="" LogPortalID="-1" LogPortalName="" LogCreateDate="2006-02-20T14:18:43.5317968-05:00" LogCreateDateNum="0" BypassBuffering="true" LogServerName="DONDESK"><properties /></log><log LogGUID="a16faa98-383d-4ea7-9d4e-6f6cd75a8213" LogTypeKey="APPLICATION_SHUTTING_DOWN" LogUserID="-1" LogUserName="" LogPortalID="-1" LogPortalName="" LogCreateDate="2006-02-21T08:28:38.866104-05:00" LogCreateDateNum="0" BypassBuffering="true" LogServerName="DONDESK"><properties /></log><log LogGUID="681f3747-1d65-4855-ad53-61a0291388ab" LogTypeKey="APPLICATION_SHUTTING_DOWN" LogUserID="-1" LogUserName="" LogPortalID="-1" LogPortalName="" LogCreateDate="2006-02-21T08:30:02.4963584-05:00" LogCreateDateNum="0" BypassBuffering="true" LogServerName="DONDESK"><properties /></log><log LogGUID="77823820-074a-47bc-9dad-0d803b485954" LogTypeKey="APPLICATION_SHUTTING_DOWN" LogUserID="-1" LogUserName="" LogPortalID="-1" LogPortalName="" LogCreateDate="2006-02-21T08:35:00.9455072-05:00" LogCreateDateNum="0" BypassBuffering="true" LogServerName="DONDESK"><properties /></log><log LogGUID="6551c879-af36-4797-8530-16decd75c912" LogTypeKey="APPLICATION_SHUTTING_DOWN" LogUserID="-1" LogUserName="" LogPortalID="-1" LogPortalName="" LogCreateDate="2006-02-21T08:39:33.5374752-05:00" LogCreateDateNum="0" BypassBuffering="true" LogServerName="DONDESK"><properties /></log><log LogGUID="051928bb-a00c-4d2f-b8ed-ae30b9dd7dd0" LogTypeKey="APPLICATION_SHUTTING_DOWN" LogUserID="-1" LogUserName="" LogPortalID="-1" LogPortalName="" LogCreateDate="2006-02-21T08:41:00.1720496-05:00" LogCreateDateNum="0" BypassBuffering="true" LogServerName="DONDESK"><properties /></log><log LogGUID="8b415149-c4ca-45b2-9d67-d960277a2c11" LogTypeKey="APPLICATION_SHUTTING_DOWN" LogUserID="-1" LogUserName="" LogPortalID="-1" LogPortalName="" LogCreateDate="2006-02-21T08:43:07.1546416-05:00" LogCreateDateNum="0" BypassBuffering="true" LogServerName="DONDESK"><properties /></log><log LogGUID="a8fceaa0-1b89-45c1-aef4-8d0597b5f1dc" LogTypeKey="APPLICATION_SHUTTING_DOWN" LogUserID="-1" LogUserName="" LogPortalID="-1" LogPortalName="" LogCreateDate="2006-02-21T09:00:07.3215696-05:00" LogCreateDateNum="0" BypassBuffering="true" LogServerName="DONDESK"><properties /></log><log LogGUID="be4f2431-05e5-438b-b46a-279920717f08" LogTypeKey="APPLICATION_SHUTTING_DOWN" LogUserID="-1" LogUserName="" LogPortalID="-1" LogPortalName="" LogCreateDate="2006-02-21T09:07:14.9865216-05:00" LogCreateDateNum="0" BypassBuffering="true" LogServerName="DONDESK"><properties /></log><log LogGUID="65db5b63-3e03-474d-af6a-362a6ad635f7" LogTypeKey="APPLICATION_SHUTTING_DOWN" LogUserID="-1" LogUserName="" LogPortalID="-1" LogPortalName="" LogCreateDate="2006-02-21T10:08:29.793952-05:00" LogCreateDateNum="0" BypassBuffering="true" LogServerName="DONDESK"><properties /></log></logs>

 

Call me clueless.

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Cannot get a brand new install to work - Upgrade Error; Could not connect to databaseCannot get a brand new install to work - Upgrade 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