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 ...Problem with Database access attempting to Install 4.3.5Problem with Database access attempting to Install 4.3.5
Previous
 
Next
New Post
10/8/2006 3:08 PM
 

What am I missing here?

 

Per the DotNetNuke 4.X Installation Guide.pdf (pdf page #’s 33-43)…

 

  • Environment Status:

            MachineName                         = MRCXP

Op Sys                                    = XP SP2

SQL 2005 Express Instance    = MRCXP\SQLEXPRESS

 

  • I unzipped the Source.Zip in c:\inetpub\wwwroot\DotNetNuke_2\...
  • Set the proper permissions for the MRCXP\ASPNET account for the DotNetNuke_2 folder…
  • Created a Database DotNetNuke/dnnUser/dnnUser1
  • I copied release.config to web.config…
  • Added the following lines to the web.config as directed…
  • Then I hit Ctrl-F5...
  • The build appeared successful and I saw the redirect to the Install URL...
  • At this point I received either:

          <Error Message A>

            Error Installing DotNetNuke

         Current Assembly Version: 04.03.05

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

          </Error Message A>

 

         OR...

 

         <Error Message B>

      DotNetNuke Upgrade Error

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

            ( [DATABASEVERSION] ) 

            ERROR: Could not connect to database.
      
            Login failed for user 'MRCXP\ASPNET'.

         </Error Message B>

 

  • I made 3 attempts at this with changes in the web.config as follows below...
  • Please review the following and see if you spot what I'm doing incorrectly...
  • Thank you for your time, assistance and patience in revieing this...

<1st Run Attempt>

Set the "Server" settings in web.config using default "Server = (local)" settings: 

<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"/>

 

<add name="DotNetNuke"       connectionString="Server=(local);Database=DotNetNuke;uid=dnnUser;pwd=dnnUser1;"

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;User Instance=True;AttachDBFilename=|DataDirectory|Database.mdf;"/>

 

<add key="DotNetNuke" value="Server=(local);Database=DotNetNuke;uid=dnnUser;pwd=dnnUser1;" />

<!-- Connection String for SQL Server 2000/2005 - kept for backwards compatability - legacy modules

<add key="SiteSqlServer" value="Server=(local);Database=DotNetNuke;uid=;pwd=;"/>

-->

</appSettings>

 

******

I see the call to the Install URL and then...

Error Installing DotNetNuke

Current Assembly Version: 04.03.05

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

</1st Run Attempt>

 

<2nd Run Attempt>

So I reset the "Server" values to Server =  MRCXP in 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"/>

 

<add name="DotNetNuke" connectionString="Server=MRCXP;Database=DotNetNuke;uid=dnnUser;pwd=dnnUser1;"

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;User Instance=True;AttachDBFilename=|DataDirectory|Database.mdf;"/>

 

<add key="DotNetNuke" value="Server=MRCXP;Database=DotNetNuke;uid=dnnUser;pwd=dnnUser1;" />

 

<!-- Connection String for SQL Server 2000/2005 - kept for backwards compatability - legacy modules

    <add key="SiteSqlServer"      

      value="Server=(local);Database=DotNetNuke;uid=;pwd=;"/>

-->

</appSettings>

 

******

I see the call to the Install URL and then...

DotNetNuke Upgrade Error

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

ERROR: Could not connect to database.

Login failed for user 'MRCXP\ASPNET'.

</2nd Run Attempt> 

 

<3rd Run Attempt>

With Server = MRCXP\SQLEXPRESS

 <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"/>

 

<add name="DotNetNuke" connectionString="Server=MRCXP\SQLEXPRESS;Database=DotNetNuke;uid=dnnUser;pwd=dnnUser1;"

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;User Instance=True;AttachDBFilename=|DataDirectory|Database.mdf;"/>

 

<add key="DotNetNuke" value="Server=MRCXP\SQLEXPRESS;Database=DotNetNuke;uid=dnnUser;pwd=dnnUser1;" />

 

<!-- Connection String for SQL Server 2000/2005 - kept for backwards compatability - legacy modules

<add key="SiteSqlServer"

  value="Server=(local);Database=DotNetNuke;uid=;pwd=;"/>

-->

</appSettings>

 

****** 

I see the call to the Install URL and then...

Error Installing DotNetNuke

Current Assembly Version: 04.03.05

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

</3rd Run Attempt> 

 

 

 

 
New Post
10/8/2006 6:43 PM
 
I think that your problem is in this step here: Created a Database DotNetNuke/dnnUser/dnnUser1.  Did you create a database name dnnuser1 in a folder named dnnuser in a top level folder named DotNetNuke?   Your connection string says that the database is located in the default data directory and has the name of Database.mdf.

Shadow
 
New Post
10/8/2006 6:58 PM
 

Hey thank you for your response.  I'm trying to understand this interface and I appreciate your help.

When I refer to "Created a Database DotNetNuke/dnnUser/dnnUser1"

That refers to the database creation tasks descibed in the Installation Guide:

In SQL Server 2005 Express:

* I created a Database: DotNetNuke

* I created a new login: dnnUser p=dnnUser1

* I granted dnnUser the db_owner properties as described.

Thanks again for your response and assistance.

Sincerely

Chilly

 
New Post
10/9/2006 1:31 AM
 

Unfortunately I don't have any good news for you but just want to say that I have been having the exact same problem.

In fact, I actually installed 4.3.5 using SQLExpress without any problem whatsoever. However, after about a week of operation I suddenly, without explanation, started getting the same errors as you. Nothing I do now can get back into the site. Even more frustrating is that this release simply WILL NOT install against SQL Server 2005.

In my opinion there is a bug somewhere or we are not being given the full picture. I posted a message last week and have yet to get a single reply.

Quite frankly it's bloody annoying and tends to put one off using the product even though I know it is a good portal.

 

 
New Post
10/9/2006 10:59 AM
 

Thank you for your time in reviewing this and your assistance.

When I say Created a Database DotNetNuke/dnnUser/dnnUser1. 

That is my shorthand reference to following the Installation Guide regarding the creation of the DotNetNuke Database in SQL Server 2005 Express.

In SQL Server 2005 Express...

* Created database:       DotNetNuke

* Created User:             dnnUser (pwd=dnnUser1)

Thanks again for your response and assistance.

Chilly

 

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Problem with Database access attempting to Install 4.3.5Problem with Database access attempting to Install 4.3.5


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