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 ...SQL Server connection- install of DNN 4.00.02 with SQL Server 2005 and Windows server 2003SQL Server connection- install of DNN 4.00.02 with SQL Server 2005 and Windows server 2003
Previous
 
Next
New Post
2/20/2006 1:28 PM
 
OK, maybe I am dense because nothing is working. I have enabled windows and SQL authentication in the SQL server and restarted the server and no difference. Maybe it will help if I give you the various error messages. In the SQL server logs when I try to go to http://localhost/dotnetnuke
in my browser on the local machine I get a failure to log in. The first messages in theSQL Server log is "Error: 18456, Severity: 14, State: 6" then I get "Login failed for user 'DSD-WIN\dnnuser'. [CLIENT: ]" Then the next two lines in the log are "Login succeeded for user 'DSD-WIN\dnnuser'. Connection: trusted. [CLIENT: ]" and then "Login succeeded for user 'NT AUTHORITY\NETWORK SERVICE'. Connection: trusted. [CLIENT: ]".
What would cause the server to reject the login once and then immediately accept it?


In the browser window, the full error is Error Installing DotNetNuke
Current Assembly Version: 04.00.02
ERROR: Could not connect to database specified in connectionString for SqlDataProviderSystem.Data.SqlClient.SqlException: Login failed for user 'DSD-WIN\dnnuser'. at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) at System.Data.SqlClient.SqlConnection.Open() at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) /************************************************************/ /***** Initialization Script *****/ /***** *****/ /***** *****/ /***** Note: To manually execute this script you must *****/ /***** perform a search and replace operation *****/ /***** for dbo. and dnn_ *****/ /***** *****/ /************************************************************/ if exists (select * from dbo.sysobjects where id = object_id(N'Version') and OBJECTPROPERTY(id, N'IsTable') = 1) begin if 'dnn_' <> '' begin EXECUTE sp_rename N'dbo.Version', N'dnn_Version', 'OBJECT' EXECUTE sp_rename N'PK_Version', N'PK_dnn_Version', 'OBJECT' EXECUTE sp_rename N'IX_Version', N'IX_dnn_Version', 'INDEX' ALTER TABLE dbo.dnn_Version ADD CONSTRAINT IX_dnn_Version UNIQUE NONCLUSTERED ( Major, Minor, Build ) ON [PRIMARY] end end else begin if not exists (select * from dbo.sysobjects where id = object_id(N'dnn_Version') and OBJECTPROPERTY(id, N'IsTable') = 1) begin CREATE TABLE dbo.dnn_Version ( [VersionId] [int] IDENTITY (1, 1) NOT NULL , [Major] [int] NOT NULL , [Minor] [int] NOT NULL , [Build] [int] NOT NULL , [CreatedDate] [datetime] NOT NULL ) ON [PRIMARY] ALTER TABLE dbo.dnn_Version WITH NOCHECK ADD CONSTRAINT [PK_dnn_Version] PRIMARY KEY CLUSTERED ( [VersionId] ) ON [PRIMARY] ALTER TABLE dbo.dnn_Version ADD CONSTRAINT IX_dnn_Version UNIQUE NONCLUSTERED ( Major, Minor, Build ) ON [PRIMARY] end end System.Data.SqlClient.SqlException: Login failed for user 'DSD-WIN\dnnuser'. at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) at System.Data.SqlClient.SqlConnection.Open() at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) if exists (select * from dbo.sysobjects where id = object_id(N'dnn_GetDatabaseVersion') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure dbo.dnn_GetDatabaseVersion System.Data.SqlClient.SqlException: Login failed for user 'DSD-WIN\dnnuser'. at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) at System.Data.SqlClient.SqlConnection.Open() at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) create procedure dbo.dnn_GetDatabaseVersion as select Major, Minor, Build from dnn_Version where VersionId = ( select max(VersionId) from dnn_Version ) System.Data.SqlClient.SqlException: Login failed for user 'DSD-WIN\dnnuser'. at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) at System.Data.SqlClient.SqlConnection.Open() at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) if exists (select * from dbo.sysobjects where id = object_id(N'dnn_FindDatabaseVersion') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure dbo.dnn_FindDatabaseVersion System.Data.SqlClient.SqlException: Login failed for user 'DSD-WIN\dnnuser'. at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) at System.Data.SqlClient.SqlConnection.Open() at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) create procedure dbo.dnn_FindDatabaseVersion @Major int, @Minor int, @Build int as select 1 from dnn_Version where Major = @Major and Minor = @Minor and Build = @Build System.Data.SqlClient.SqlException: Login failed for user 'DSD-WIN\dnnuser'. at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) at System.Data.SqlClient.SqlConnection.Open() at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) if exists (select * from dbo.sysobjects where id = object_id(N'dnn_UpdateDatabaseVersion') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure dbo.dnn_UpdateDatabaseVersion System.Data.SqlClient.SqlException: Login failed for user 'DSD-WIN\dnnuser'. at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) at System.Data.SqlClient.SqlConnection.Open() at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) create procedure dbo.dnn_UpdateDatabaseVersion @Major int, @Minor int, @Build int as insert into dnn_Version ( Major, Minor, Build, CreatedDate ) values ( @Major, @Minor, @Build, getdate() )

I am guuuessing my problem is that I still have something wrong in my web.config file but I can't for the life of me see what that could be. Any ideas would be appreciated. Believe me, I have been searching for the answers to this question for two days and trying everything I could find before I resorted to asking the forum.

Thanks in advance if you can help!
 
New Post
2/20/2006 2:54 PM
 

I had this problem too. I think it was a problem with installing DNN when the SQL database already exists. To fix that problem, I deleted the SQL database prior to starting DNN for the first time. Then, when DNN starts up it is able to create the databse.

 

That fixed it for me, although I really don't understand why it is a problem to install DNN and point it to a pre-existing database.

I'm sure somewhere here will correct me if I am totally out to lunch on this one.

 

 

 
New Post
2/20/2006 6:03 PM
 

Hi,

Why your use Windows user ?

Personaly , i have create user in sql using the manager (see the install manual) and after just modify the web.config:

"Server=servername;Database=hobby;uid=hb;pwd=zzzz;"

Bye
Olivier

 
New Post
2/21/2006 8:35 AM
 
Microsoft recommends using Windows authentication, although on my machine, where I am certain I have it secured I use SQL Authentication to avoid the hassle.

Do you know the truth when you hear it?
Néstor Sánchez
The Dúnadan Raptor -->Follow Me on Twitter Now!
 
New Post
2/21/2006 8:42 AM
 

Deba,

Could you check to see if your connection strings are properly formatted? There are at least two things that users have been missing:

1) use the authentication format for the connection string that matches the authentication format used by your SQL

2) Make sure you are commenting and uncommenting the connection string areas properly.


Do you know the truth when you hear it?
Néstor Sánchez
The Dúnadan Raptor -->Follow Me on Twitter Now!
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...SQL Server connection- install of DNN 4.00.02 with SQL Server 2005 and Windows server 2003SQL Server connection- install of DNN 4.00.02 with SQL Server 2005 and Windows server 2003


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