You need to Register for free and Login to post a message in the forum.

Forum

Subject: Issue 22 - Login failed for user xxxx
Prev Next
You are not authorized to post a reply.

Author Messages
picoallen
DNN Creative Magazine Subscriber
Nuke Newbie
Nuke Newbie
Posts:4

28 Aug 2008 9:00 AM  
Hello,

I'm following the 'How to transfer a localhost DNN installation to a live website' tutirial in issue 22, but have hit a brick wall.

Once I've created the new user, assigned it to my DNN database and ammended the web.config file, I get the 'Login failed for user' error that is pasted below.

The installation works corectly before doing this. I've redone it several times over and have repeated it on a second computer - always with the same result.

I've pasted the connection string bits from the web.config file below the error code.

I'm using MSSQL Express 2008 rather than 2005. Perhaps the connection string needs to be different.

Does anyone have any thoughts?

Thanks
Craig Allen


Login failed for user 'craigallen'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: Login failed for user 'craigallen'.

Source Error:


An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.

Stack Trace:

[SqlException (0x80131904): Login failed for user 'craigallen'.]
System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +428
System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +65
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +117
System.Data.SqlClient.SqlConnection.Open() +122
Microsoft.ApplicationBlocks.Data.SqlHelperParameterCache.DiscoverSpParameterSet(SqlConnection connection, String spName, Boolean includeReturnValueParameter, Object[] parameterValues) +233
Microsoft.ApplicationBlocks.Data.SqlHelperParameterCache.GetSpParameterSetInternal(SqlConnection connection, String spName, Boolean includeReturnValueParameter) +343
Microsoft.ApplicationBlocks.Data.SqlHelperParameterCache.GetSpParameterSet(String connectionString, String spName, Boolean includeReturnValueParameter) +175
Microsoft.ApplicationBlocks.Data.SqlHelperParameterCache.GetSpParameterSet(String connectionString, String spName) +45
Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(String connectionString, String spName, Object[] parameterValues) +207
DotNetNuke.Services.Log.EventLog.DBLoggingProvider.Data.SqlDataProvider.GetLogTypeConfigInfo() +71
DotNetNuke.Services.Log.EventLog.DBLoggingProvider.DBLoggingProvider.GetLogTypeConfigInfo() +101
DotNetNuke.Services.Log.EventLog.DBLoggingProvider.DBLoggingProvider.GetLogTypeConfigInfoByKey(String LogTypeKey, String LogTypePortalID) +66
DotNetNuke.Services.Log.EventLog.DBLoggingProvider.DBLoggingProvider.AddLog(LogInfo objLogInfo) +75
DotNetNuke.Services.Log.EventLog.LogController.AddLog(LogInfo objLogInfo) +193


Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053


---------------

Connection string bits from the web.config file ...

 
   
   
   
 

 
   
   
jncraig
DNN Creative Staff
Nuke Master II
Nuke Master II
Posts:2318


28 Aug 2008 9:06 AM  
Use SQL Server Management Studio or the express version to see which username and password will connect to the database. You may need to add new logins at the server level.

Also, I don't know for a fact that DotNetNuke will run with SQL Server 2008. You may need to check that, too.

Joe Craig
DNN Creative Support
Subscribe to the website
picoallen
DNN Creative Magazine Subscriber
Nuke Newbie
Nuke Newbie
Posts:4

28 Aug 2008 10:51 PM  
Thanks Joe,

You put me on the right track there. Turns out that I had server authentication set to
'Windows Authentication' mode rather than the required
'SQL Server and Windows Authentication mode.

For anyone else with this problem, you can change the authentication mode by right-clicking your server node in the SQL Management Studio, then going to the security tab.
Then you need to restart the server using the SQL Server Configuration Tool.

Cheers
Craig Allen
CharlesLegg
DNN Creative Magazine Subscriber
Nuke Newbie
Nuke Newbie
Posts:1

05 Sep 2008 10:54 AM  
Thanks picoallen for the tip. The same error was driving me nuts; such a simple solution.

Thanks again.
derpir
DNN Creative Magazine Subscriber
Nuke Active Member
Nuke Active Member
Posts:37


05 Sep 2008 11:21 AM  
Thanks Joe,

You put me on the right track there. Turns out that I had server authentication set to
'Windows Authentication' mode rather than the required
'SQL Server and Windows Authentication mode.

For anyone else with this problem, you can change the authentication mode by right-clicking your server node in the SQL Management Studio, then going to the security tab.
Then you need to restart the server using the SQL Server Configuration Tool.

Cheers
Craig Allen


OK I am using SQL server Express 2005 and I can't really find were to change the authentication mode as Craig describes above.
I have also followed Lees videos and are stuck with this, have anyone give me a helping hand, anyone?

best regards
leesykes
DNN Creative Staff
Nuke Master III
Nuke Master III
Posts:3325

05 Sep 2008 11:34 AM  
I just checked and it does have it:

Right click on the SQL server node - this is the node with the green arrow on it
Properties
Security

Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/leesykes

Lee Sykes's Facebook Profile
beterthanlife
Nuke Newbie
Nuke Newbie
Posts:1

10 Sep 2008 11:28 AM  
Hi all,

really useful post, however I have checked my sqlserver authentication and it is already set to "SQL server and windows authentication mode", yet i still get " Login failed for user 'xxxx' ".


I know my uid and password are correct, yet I cant connect to the database! PLZZZZZZ HELP!

my web.config connection string is:

Data Source=DB1;Initial Catalog=StudNet;User ID=xxx;Password=xxx
jncraig
DNN Creative Staff
Nuke Master II
Nuke Master II
Posts:2318


11 Sep 2008 9:43 PM  
Can you connect to your database using SQL Server Management Studio (or Express version)?

What server address is in your connection string?

Are you using SQL Server or SQL Server Express?

Joe Craig
DNN Creative Support
Subscribe to the website
You are not authorized to post a reply.
Forums > Users Lounge > DNN Creative Articles > Issue 22 - Login failed for user xxxx



ActiveForums 3.7

Latest Forum Posts

RE: localhost Install issues by leesykes
If you go to the subscribe page and click on the get free trial button - this takes you to a page wh...
localhost Install issues by cdees
I've set up a local host and want to run DNN for a local development machine.  The host is set up; h...
RE: Reversing Limited Access to the Admin Menu by wynnjon
That is what I thought.  So for my clients that will need to manage user accounts, I can not limit t...
RE: Reversing Limited Access to the Admin Menu by leesykes
I seem to recall it doesn't work
RE: Reversing Limited Access to the Admin Menu by wynnjon
Thanks Lee-  I will give that a try.An additional question- If you place the "User Accounts" page un...
RE: Reversing Limited Access to the Admin Menu by leesykes
all you need to do is reverse the process within the SQL tables.Compare the data to the other rows i...
RE: Module not working when logged off. by leesykes
thanks for the info,
Reversing Limited Access to the Admin Menu by wynnjon
Hi!  I followed the tutorial for limiting the access to the admin menu.  What a great thing!However,...
RE: Trouble installing! Designer trying to be a Developer. by leesykes
glad to hear you found a solution, thanks,
RE: Skim Question by leesykes
You could but you will not be able to have an XHTML compliant page as the SolpartMenu is non-complia...
RE: Include in Menu - Weird Request by leesykes
For your sitemap.xml file - use GSiteCrawlerYou could create the site map before moving the sub menu...
RE: Trouble installing! Designer trying to be a Developer. by awright14
It looks like I had ASP installed in the wrong order.  Copying and pasting this into the Run Command...
RE: Need Help Changing Containers Contentpane's Text Color by leesykes
Hello,Have you tried adding a class to the content area of your container and then styling the p, a,...
RE: Vertical SolpartMenu by leesykes
hello,If you wish to display the admin and host menus within the house menu, you need to enable it i...
RE: Firefox Does Not Display WMV File In Media Module by leesykes
Hello,I have just tested this and I can play a wmv file in Firefox 3.0.3, so it does suggest that it...
RE: advice wanted convert site to DNN while keeping existing asp functionality by leesykes
You could try using the IFrame module in DotNetNuke and then just link the IFrame to the current pag...
RE: Need Help Changing Containers Contentpane's Text Color by CROKeefe
Thanks for the quick update... I know it looks broken right now, but I had the TITLE classes working...
RE: Need Help Changing Containers Contentpane's Text Color by leesykes
The default class for a container is .head so you will find that the .head class will override any s...
RE: Module not working when logged off. by t.ramya85
have to set the cache time to '0' in that module setting.
Trouble installing! Designer trying to be a Developer. by awright14
Hi Everyone,Just to let you know, I'm very new at this - very new to any type of dev environments in...
AppTheory
RSS Feeds