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 ...Database error in install wizardDatabase error in install wizard
Previous
 
Next
New Post
6/20/2010 11:44 AM
 
Hi,

I'm trying to setup DNN on my own laptop, as I want to see how easy I could change an existing ste into a DNN site.

I am using the freebie version of SQL Server2008 R2 with Advanced Services (as I need Reporting Services)

I've done the prequisites, setup the site in IIS etc, and I'm running the Install Waizrd.

The auto option is blanked out because "The Auto option has been disabled as the DotNetNuke Application cannot connect to a valid SQL Server database. You can continue to use either of the other two Wizard options and configure the Database settings at the appropriate Wizard step."

My web.config has the following connection string in it

<add name="SiteSqlServer"
connectionString="Data Source=amjecacer_win7\SQL;
Initial Catalog=DotNetNuke;
Integrated Security=True"
providerName="System.Data.SqlClient" />

which is a valid connection string for my database.

When I get to the database connection page of the wizard (3rd page in), I select:

- SQL Server 2005/2008 database
- the name of the server (amjecacer_win7\SQL)
- the name of the Database (DotNetNuke) - I have already created thisdatabase and I can login to this database
- Select Integrated Security
- leave the qualifier as blank

When I click next, I get the error message:

Connection Error(s):
Index #: 0
Source: .Net SqlClient Data Provider
Class: 11
Number: 4060
Message: Invalid Database
Index #: 1
Source: .Net SqlClient Data Provider
Class: 14
Number: 18456
Message: Sql login failed


Any idea why this is? I can login to the database using the SSMS and Integrated Security

 
New Post
6/20/2010 7:37 PM
Accepted Answer 
Couple of things you need to do, make sure your site is running in an App Pool that has the Network Service account as the user it runs under. Then add the Network Service acct as a dbo to your database. That should do it. Also make sure you have set the permissions on the physical folder to allow Network Service read and write and that when you unzipped the installation Zip file you Unblocked the file before unzipping. Thats a Windown protection feature. And one last thing you may need to turn off Read Only on the folder.

Philip Beadle - Employee
 
New Post
6/21/2010 12:48 PM
 
Hi Phillip,
I had started another thread a few days ago discussing the same issue. I wasn't able to login into my db using SQL Server 2008 R2. By adding the network service account as a login, and giving that login dbo rights, I was able to login in and install. I do have a question though. Is this a new step needed for R2 as I've never had to do this in the past?

Here's the other thread: http://www.dotnetnuke.com/Community/F...

Thank you.

Vinny Malanga
IMI Software, Inc.
 
New Post
6/21/2010 6:15 PM
 
Philip Beadle wrote:
Couple of things you need to do, make sure your site is running in an App Pool that has the Network Service account as the user it runs under.

 Ding ding ding - we have a winner.

Thanks Phil - changed the application pool to run as Network Service, and I was away - thanks for the help :)

 
New Post
9/22/2010 8:50 PM
 
Philip Beadle wrote:
Couple of things you need to do, make sure your site is running in an App Pool that has the Network Service account as the user it runs under. Then add the Network Service acct as a dbo to your database. That should do it. Also make sure you have set the permissions on the physical folder to allow Network Service read and write and that when you unzipped the installation Zip file you Unblocked the file before unzipping. Thats a Windown protection feature. And one last thing you may need to turn off Read Only on the folder.

 thanks that really solved my problem also ,

just an explanation how to do it in the sql manager 2008:

1- in SQL server manager , navigate to  the security under the sqlserver "not the security of the Database you are using " as this is one of the mistake i was doing ...

2 - and then in the security -->logins add : NT AUTHORITY \ NETWORK SERVICE (you can use search and then advanced search to find it)

3- and now back to yourdatabase --> security --> users : add a new user with NT AUTHORITY \ NETWORK SERVICE as a log in name (also you can find in the seach ) 

4- then go to yourdatabase --> security --> roles --> data base roles --> db_owner and add that user as a db_owner 

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Database error in install wizardDatabase error in install wizard


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