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 ...Yet another install failedYet another install failed
Previous
 
Next
New Post
7/3/2006 9:03 PM
 

I have spent over 1 day trying to figure out what the heck is happening here and there is still no clear solution on how to make nuke 4.0 work with SQL Express and Server 2003. 

I have tried several variations to the suggestions given and verified that everything should be working but yet I still can't connect to the database to even get it installed.

Surely there has to be an easy way to do this.

Here is what I have:

Dot Net Nuke Installation Folder
--------------------------------------
D Drive is my data drive.  I have a folder called Web in the D drive (d:\web).  I have the nuke install package in a folder named Nuke1 (D:\web\nuke1)

Windows User Account
-----------------------------------
Just for kicks, I made a user account, DNN-User.  Not sure if this is needed.  See below in the SQL and IIS sections on what I did to this account.


SQL Express Configuration
-----------------------------------
I installed SQL Express using the defaults.  Named Pipes, TCP/IP and shared memory are all running (After I restarted the services)

I created a DB named DNN.  When I go into the security section underneath the DB, I have the user account 'dbo' (using the SA account) as the DBO of the database.

I then added the windows account from above as the schema and database owner


IIS
----------------
I had setup the web site, giving scripts and executables permissions to run.  I originally left the Annomous access account alone then went back and changed it to the Windows user account from above to see if that would help.  The web site is configured for .net 2.0, not 1.1.


Network Service Account
--------------------------------
I have set the Network Service Modify Access to the root of D.  I have inheritance enabled so all subfolders and files get this permission

web.config settings
--------------------------------------
<connectionStrings>
    <!-- Connection String for SQL Server 2005 Express -->
    <add name="SiteSqlServer" connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|DNN.mdf;" providerName="System.Data.SqlClient" />

  <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|DNN.mdf;"/>

 

I'm so tired about this.  This is a clean install of the site.  Even after blowing away the Db, web site, and files several times, I am no closer to setting ths up.

 

My current error is:

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

 

What logs can I look at?  How can it not connect?  What am I missing?

Thanks!

 
New Post
7/3/2006 11:29 PM
 

Here's a few things I see wrong:

1) Have you verified you can connect to the DB as that user? (using manager studio)

2) There already is a SQL Express DB in the AppData directory.  I haven't done a SQL Express in a while, but I don't see where you've specified the default catalog (db) either.  Try changing the string to this:

="SiteSqlServer" connectionString="Data Source=.\SQLExpress;Initial Catalog=DNN,Integrated Security=True;User Instance=True;providerName="System.Data.SqlClient"

 
New Post
7/5/2006 12:10 AM
 

Blew away my install and reinstalled v.4 into another folder.

Configured the web site to use asp.net 2.0
DB name is now DotNetNuke
Added a DB user account who is the database and schema owner (per the docs)
Network service has full rights to my web partition (D:) from the root down.  Verified the folder I made has the account listed with the same permissions and it does.

1)  I am logged in as the admin of the server.

2) Your command didn't work.
Tried:

'System.Data.SqlClient' is an unexpected token. Expecting white space. Line 31, position 161.
----------------------------------------------------------------------------------------------------------------------------------
<add name="SiteSqlServer" connectionString="Data Source=.\SQLExpress;Initial Catalog=DotNetNuke,Integrated Security=True;User Instance=True; providerName="System.Data.SqlClient" />

ERROR: Could not connect to database specified in connectionString for SqlDataProvider
----------------------------------------------------------------------------------------------------------------------------------
<add name="SiteSqlServer" connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|DotNetNuke.mdf;" providerName="System.Data.SqlClient" />

Any other thoughts?
-Karl

 
New Post
7/5/2006 12:48 AM
 

With SQLExpress you have two options to create a db.

- The first is to create a database form Visual Studio or Visual Web Developer. With this option you create a file in the APP_DATA directory (DotNetNuke.MDF). The setting in web.config is defaulted to this option.

- The second option is to create a new database as before (using Sql server management). Here you have a data and a log file in the Program Files\MS Sql....\Data directory. If you want this option you have to comment out the default setting in web.config and activate the Sql 2000 / Sql 2005 setting (and change the seting.

So what option did you use to create the db?


Geert Veenstra
 
New Post
7/5/2006 9:44 PM
 

I did the 2nd option.  This might clear up things as I was only using the SQL Express connection string (Being that I am using SQL Express)

Let me see what happens now.

 

 

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Yet another install failedYet another install failed


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