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

Forum

Issue 22 - Login failed for user xxxx
Last Post 2011-08-30 01:35 PM by Déclic Vidéo FX. 15 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
picoUser is Offline
Nuke Newbie
Nuke Newbie
Posts:4

--
2008-08-28 02:00 PM
    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 ...

     
        <!-- Connection String for SQL Server 2005 Express -->
       
        <!-- Connection String for SQL Server 2000/2005
              name="SiteSqlServer"
          connectionString="Server=(local);Database=DotNetNuke;uid=;pwd=;"
          providerName="System.Data.SqlClient" />
       -->
     

     
        <!-- Connection String for SQL Server 2005 Express - kept for backwards compatability - legacy modules   -->
       
    Joseph CraigUser is Online
    DNN Creative Support
    Nuke Master VI
    Nuke Master VI
    Posts:9299
    Avatar

    --
    2008-08-28 02:06 PM
    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 DNNCreative
    I recommend PowerDNN for DotNetNuke Hosting.
    picoUser is Offline
    Nuke Newbie
    Nuke Newbie
    Posts:4

    --
    2008-08-29 03:51 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
    CharlesUser is Offline
    Nuke Newbie
    Nuke Newbie
    Posts:4
    Avatar

    --
    2008-09-05 03:54 PM
    Thanks picoallen for the tip. The same error was driving me nuts; such a simple solution.

    Thanks again.
    -----------------------------------------
    Charles Legg, Independent Consultant
    Legg Consulting
    DerpirUser is Offline
    Nuke Ace
    Nuke Ace
    Posts:52
    Avatar

    --
    2008-09-05 04:21 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


    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
    Lee SykesUser is Offline
    DNN Creative Staff
    Nuke Master VI
    Nuke Master VI
    Posts:4945
    Avatar

    --
    2008-09-05 04:34 PM
    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/DNNCreative

    Lee Sykes's Facebook Profile
    beterthanlifeUser is Offline
    Nuke Newbie
    Nuke Newbie
    Posts:1

    --
    2008-09-10 04:28 PM
    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
    Joseph CraigUser is Online
    DNN Creative Support
    Nuke Master VI
    Nuke Master VI
    Posts:9299
    Avatar

    --
    2008-09-12 02:43 AM
    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 DNNCreative
    I recommend PowerDNN for DotNetNuke Hosting.
    ipcaliforniaUser is Offline
    Nuke Newbie
    Nuke Newbie
    Posts:2

    --
    2009-06-13 06:30 AM
    Hi -

    To reset the Server in SQL 2008, check out this post:

    http://social.msdn.microsoft.com/Fo...3d585365e3

    HTH

    ipcalifornia
    KenUser is Offline
    Nuke Newbie
    Nuke Newbie
    Posts:7

    --
    2010-09-08 02:35 PM
    Recently we had to update passwords for our database that DNN is attached to. While users are able to log in and use the system we have a nagging entry that keeps appearing in our event log that indicates that the Help Search Item collector can not log into the system (see event log below.)

    In attempting to resolve the problem I have insured that I can log into our database server with the username (dnnProd1) and the new password (no problem.) I have also verified that the connection parameters in the web.config are correct. I have made a grep sweep of the DNN directories as well as the registry looking for the aforementioned user to which I found nothing.

    I’m at wits end with this and am looking for any help that could help resolve the problem. Does anybody have a suggestion on how to resole this problem?

    AssemblyVersion: -1
    PortalID: -1
    PortalName:
    UserID: -1
    UserName:
    ActiveTabID: -1
    ActiveTabName:
    RawURL:
    AbsoluteURL:
    AbsoluteURLReferrer:
    UserAgent:
    DefaultDataProvider:
    ExceptionGUID:
    InnerException: Login failed for user 'DnnProd1'.
    FileName:
    FileLineNumber: -1
    FileColumnNumber: -1
    Method:
    StackTrace:
    Message: System.Data.SqlClient.SqlException: Login failed for user 'DnnProd1'. 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.SqlHelperParameterCache.DiscoverSpParameterSet(SqlConnection connection, String spName, Boolean includeReturnValueParameter, Object[] parameterValues) at Microsoft.ApplicationBlocks.Data.SqlHelperParameterCache.GetSpParameterSetInternal(SqlConnection connection, String spName, Boolean includeReturnValueParameter) at Microsoft.ApplicationBlocks.Data.SqlHelperParameterCache.GetSpParameterSet(String connectionString, String spName, Boolean includeReturnValueParameter) at Microsoft.ApplicationBlocks.Data.SqlHelperParameterCache.GetSpParameterSet(String connectionString, String spName) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(String connectionString, String spName, Object[] parameterValues) at DotNetNuke.Modules.Help.SqlDataProvider.GetTutorialsByModule(Int32 ModuleId) at DotNetNuke.Modules.Help.HelpController.GetByModules(Int32 ModuleId) at DotNetNuke.Modules.Help.HelpController.GetSearchItems(ModuleInfo ModInfo) at DotNetNuke.Services.Search.ModuleIndexer.GetSearchIndexItems(Int32 PortalID)

    Joseph CraigUser is Online
    DNN Creative Support
    Nuke Master VI
    Nuke Master VI
    Posts:9299
    Avatar

    --
    2010-09-08 11:13 PM
    There are TWO connection strings in web.config.  Can you verify that you checked both of them?

    Joe Craig, DNN Creative Support

    Subscribe to DNNCreative
    I recommend PowerDNN for DotNetNuke Hosting.
    Déclic Vidéo FXUser is Offline
    Nuke Pro
    Nuke Pro
    Posts:91
    Avatar

    --
    2011-08-20 09:30 PM
    Hello,

    I have the same and exact problem....
    I tried all methods described here, without success.
    I am using Windows 7 / SQL Express 2008

    But I think that my connection string is not correct. Can someone please check and correct me if necessary ?

    Here is what I have:
    <connectionStrings>
        <!-- Connection String for SQL Server 2000/2005 -->
        <add name="SiteSqlServer" connectionString="server=(local);database=my-db-name;uid=my-account-name;pwd=my-password;" providerName="System.Data.SqlClient" />
      </connectionStrings>

    And few lines after:
        <!-- Connection String for SQL Server 2000/2005 - kept for backwards compatability - legacy modules -->
        <add key="SiteSqlServer" value="server=(local);database=my-db-name;uid=my-account-name;pwd=my-password;" />



    Any idea ?
    Thanks a lot,
    DV FX
    Déclic Vidéo FX - http://declic-video-fx.com
    Joseph CraigUser is Online
    DNN Creative Support
    Nuke Master VI
    Nuke Master VI
    Posts:9299
    Avatar

    --
    2011-08-22 07:53 PM
    It looks like you are using the form of the connection string appropriate to SQL Server and not SQL Server Express.

    Try connectionstrings.com to figure out the format. There is an example, too, in the web.config file.

    I would try to be more specific, but I'm not currently connected to anything with SQL Server Express so it's hard to test right now.

    Joe Craig, DNN Creative Support

    Subscribe to DNNCreative
    I recommend PowerDNN for DotNetNuke Hosting.
    Joseph CraigUser is Online
    DNN Creative Support
    Nuke Master VI
    Nuke Master VI
    Posts:9299
    Avatar

    --
    2011-08-22 07:54 PM

    Joe Craig, DNN Creative Support

    Subscribe to DNNCreative
    I recommend PowerDNN for DotNetNuke Hosting.
    Joseph CraigUser is Online
    DNN Creative Support
    Nuke Master VI
    Nuke Master VI
    Posts:9299
    Avatar

    --
    2011-08-22 08:12 PM
    For a local machine named mycomputer and using integrated security: Data Source=mycomputer\SQLEXPRESS;Initial Catalog=mydatabasename;Integrated Security=True

    If you don't want to use integrated security, you can supply and user id and password: Data Source=MRINAL-THINK\SQLEXPRESS;Initial Catalog=dnndev;Persist Security Info=True;User ID=username; pwd=mypassword

    Joe Craig, DNN Creative Support

    Subscribe to DNNCreative
    I recommend PowerDNN for DotNetNuke Hosting.
    Déclic Vidéo FXUser is Offline
    Nuke Pro
    Nuke Pro
    Posts:91
    Avatar

    --
    2011-08-30 01:35 PM
    Hello Joseph,

    Thanks to your wonderful links, I managed to make it working !!! CONGRATULATIONS, without you, I would still fight...
    It was a problem of web.config, and the link gave me all information: http://www.dynamicdataworks.com/not...ress-.aspx

    I am now using:

     <!-- Connection String for SQL Server 2000/2005 --> 
         <add name="SiteSqlServer" connectionString="server=(local);database=my-db;uid=my-user;pwd=abcd;" providerName="System.Data.SqlClient" /> 
      
      
     <!-- Connection String for SQL Server 2000/2005 - kept for backwards compatability - legacy modules --> 
         <add key="SiteSqlServer" value="server=(local);database=my-db;uid=my-user;pwd=abcd;" /> 
    


    DV
    Déclic Vidéo FX - http://declic-video-fx.com
    You are not authorized to post a reply.


    Active Forums 4.3

    Latest Forum Posts

    Rename or move site from domain name to subdomain name by Bill Quinn
    Hi, I have an old DNN site on a a TLD like this: websitename.com I have created a portal on
    RE: Deploying dnn by Sameer
    Thanks joeseph glad with your answer it means i can use CE for my site if the traffic are not
    Unable to Create Skin Package by schilders
    Hi, I'm trying to create the skin package and manifest for my new skin. I created the new skin e
    RE: user adding images by Joseph Craig
    I think that you will need to go to the File Manager and give the user and/or security group file up
    RE: lightroom effect for skin by Joseph Craig
    There are modules available that do this. On the commercial side, I've used Mandeeps' Live Conten
    RE: Creating structured page content by Joseph Craig
    Take a look at Ventrian's News Articles module. While commercial, it has a very modest price! Th
    Creating structured page content by Stephen Bugden
    Hi, Can anyone recommend a module for creating and managing page content? The kind of thing I'
    lightroom effect for skin by everett31
    I’m looking for a way to add the lightbox effect to a skin file. I would like the end user to have
    RE: css3-mediaqueries.js and Dynamic Forms Crash Page in IE by WinXnet
    According to my web searching, @font-face references cause crashing in IE7 and IE8 with css3-mediaqu
    user adding images by rod lloyd
    I have set up permissions for certain users to edit a module, but when they log-on and enter Edit Co
    RE: Deploying dnn by Joseph Craig
    The free Community Edition of DotNetNuke is perfectly fine for creating "world class" websites. Whi
    RE: css3-mediaqueries.js and Dynamic Forms Crash Page in IE by WinXnet
    any idea what approach I should take - IE completely locks up. The only cause is the combo of the
    RE: css3-mediaqueries.js and Dynamic Forms Crash Page in IE by Joseph Craig
    If you're up to doing some debugging, you might be able to figure out where the problem lies. That'
    RE: Deploying dnn by Sameer
    Hi Joe Thanks for your reply i am planning to create my own DNN site so for that i have chec
    RE: css3-mediaqueries.js and Dynamic Forms Crash Page in IE by WinXnet
    Thanks for the response, but I was hoping it was something I could fix with some skin tweaks - one i
    RE: Changing Search text by Joseph Craig
    You will want to look here for references about the DotNetNuke skin objects. The document written b
    Changing Search text by Abraham Tameru
    Hi, Instead of having "Search" text near the search text box, I wanted to replace it by an image
    RE: Strange issue with file manager on sub domain (sperate portal) by Web Services
    Just sent it.
    RE: Not able to load my dotnetnuke website on Internet Explorer though it is working fine with other browsers by Joseph Craig
    Did you get this fixed? (Apologies for not getting to this sooner...)
    RE: Web Design Company London by Johnny Gregory
    Hello I am a Manager here at PowerDNN and I would like to see if you are still looking to get the wo
    You are not logged in.
    You must log in to access all 
    650+ videos, tutorials, podcasts, and more.
    RSS Feeds