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 issue in "Configure Database Connection " pageDatabase issue in "Configure Database Connection " page
Previous
 
Next
New Post
6/2/2012 4:08 PM
 

OK, I am really frustated. Playing around this for more than 2 days and still din get any result. Hope someone can help me here.

I am following the video that website has provided for installing DDN. Every thing is fine till DB stage.

here is my configuration and settings.

Windows 7 Home Premium, IIS 7.5, SQL Server 2008 R2 Express edition

I have created a database called "myDotnetnuke". Created a user called "mycms" and assign the db_owner for "myDotnetnuke" to that.

My SQL security is " SQL Server and Windows Authentication mode".

Problem:

During the installation I chose "Typical" and in "Configure Database Connection" I chose SQL Server 2005/2008 (Express file). For server name I write dot(.). For filename I write "myDotnetnuke". Uncheck the integrated security and for User ID write "mycms" and the password I have provided. Then I get the following error.

Connection Error(s):
Index #: 0
Source: .Net SqlClient Data Provider
Class: 20
Number: 2
Message:

if I write the server name as "{My Computer Name}\sqlexpress" I will get the following error.

Connection Error(s):
Index #: 0
Source: .Net SqlClient Data Provider
Class: 14
Number: 15364
Message:

I even tried "Automatic" mode without having any Database created and it always Fail in creating Database. I can assure you that my DB is fine as I am using Visual Studio 2010 and creating so many web application and working with my DB without any problem.

If anyone can help me to decode these error I will really appreciate. Thanks!

 
New Post
6/2/2012 8:11 PM
 

When connecting to a database that you have created using SQL Server Authentication (with sql username and password) do not choose SQL Server 2005/2008 (Express). That option should only be selected when using the SQL Server Express AND the user instance file (App_Data\Database.mdf).

As for the server if you have installed SQL Server 2008 Express using the default server name I normally use .\SQLExpress although I think that the . (dot) alone should also work.

If you continue to have problems connecting after trying the SQL Server 2005/2008 option (not Express), please post the connection string that the Wizard is building in the <connectionStrings> section of the site's web.config file.

 


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
6/2/2012 9:29 PM
 

Now it goes to next step but fails and it shows:

Installing Database - Version 06.00.00...FAILURE ERROR: See D:\dotnetnuke\Providers\DataProviders\SqlDataProvider\06.00.00.log.resources for more information.

But there is no file as such it shows in the error!

btw my connection string in web.config is like this:

<connectionStrings>
    <!-- Connection String for SQL Server 2005/2008 Express -->
    <add name="SiteSqlServer" connectionString="Data Source=.\SQLExpress;Initial Catalog=myDotnetnuke;User ID=mycms;Password=dotnetnuke" providerName="System.Data.SqlClient" />
    <!-- Connection String for SQL Server 2005/2008
    <add name="SiteSqlServer" connectionString="Server=(local);Database=DotNetNuke;uid=;pwd=;" providerName="System.Data.SqlClient" />
    -->
  </connectionStrings>

Any idea now?

Thanks

 
New Post
6/2/2012 10:31 PM
 

You have configured the SQL Server as a Server connention and you have to choice the Server connection instead the file connection !

<connectionstrings />

<!-- Connection String for SQL Server 2005/2008 Express

<add name="SiteSqlServer" connectionString="Data Source=.\SQLExpress;Initial Catalog=myDotnetnuke;User ID=mycms;Password=dotnetnuke" providerName="System.Data.SqlClient" />-->

<!-- Connection String for SQL Server 2005/2008 -->

<add name="SiteSqlServer" connectionString="Server=localhost;Database=myDotnetnuke;uid=mycms;pwd=dotnetnuke;" providerName="System.Data.SqlClient" />

And make sure you also set the 2nd Connection string !

NOTICE:
After failing a install you have to delete the existing database and recreate it.  Be sure you set the dbowner tho the dbo schema, if you let it free the username is used from the SQL Server as its dbowner schema - this needs then a modification in the web.config file abot by default set is dabaseOwner="dbo" in the web.config file.

 

 
New Post
6/3/2012 5:00 AM
 
Matthias Schlomann wrote:

You have configured the SQL Server as a Server connention and you have to choice the Server connection instead the file connection !

 I think I had to write that I followed what William Severance told and I chose SQL Server database instead of File! Even for me it is interesting why then in Web.config SQL Express is active and SQL Server is commented!

And if you read my first post I have written that I have assigned the db_owner to my database for the user I have created.

What I did next was to create brand new Database again and assigned db_owner. This time before I go through the installation I changed the web.config and used the "SQL Server" for my connection and commented the Express one. When I ran the install page it showed me:

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.

I went through the Typical option and chose "SQL Server" but same problem. It goes to next stage but shows this error again:

Installing Database - Version 06.00.00...FAILURE ERROR: See D:\dotnetnuke\Providers\DataProviders\SqlDataProvider\06.00.00.log.resources for more information.

and there is no error file as such! but db has created and the installation is not completed!

Where am I doing wrong? It seems other users don't have the same problem or I cannot find the same situation in your blog.

Any help?


 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Database issue in "Configure Database Connection " pageDatabase issue in "Configure Database Connection " page


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