login failed for user in "classifiedsDB"

Last post 05-17-2008 1:03 PM by planesgalore. 3 replies.

Sort Posts:

  • login failed for user in "classifiedsDB"

    05-16-2008, 12:48 PM


     

    I've been working on adding another data field to my site.  I've tried to follow the instructions from an earlier posting on this forum.  I edited the classifieds_Ads database - Tables, Views, and Stored Procedures.  There was one place in UpdateAd that gave an error.   I updated BLL/Ads.vb and DAL/Ads.xsd.  I was very careful to keep the new column in the same order at each edit.  Last night I brought up the page and everything looked ok.  This morning I got the following error.  I double checked my DB passwords are ok and no changes were made between last night and this morning.  I'm truely stumped and would appreciate any help or advice.  Thanks.  Bev 

    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 'classifiedsDB'.

    Source Error:

    [No relevant source lines]


    Source File: App_Code.mpk4ywwu.11.vb    Line: 1837

    Stack Trace:

    [SqlException (0x80131904): Login failed for user'classifiedsDB'.]
       System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +800131
       System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +186
       System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1932
       System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK) +33
       System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) +172
       System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart) +381
       System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +181
       System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +173
       System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +357
       System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +30
       System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +424
       System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +66
       System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +494
       System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +82
       System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105
       System.Data.SqlClient.SqlConnection.Open() +111
       System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +121
       System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) +162
       System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) +107
       AdsDataComponentTableAdapters.AdsDataAdapter.GetAdsByRandomOrder(Int32 NumRecords, Int32 AdStatus, Int32 AdLevel) in App_Code.mpk4ywwu.11.vb:1837
       AspNet.StarterKits.Classifieds.BusinessLogicLayer.AdsDB.GetFeaturedAdsSelection(Int32 maxNumAds) in d:\hosting\rporterpg\App_Code\BLL\Ads.vb:225
       AspNet.StarterKits.Classifieds.Web.FeaturedAdCache.FetchFeaturedAd() in d:\hosting\rporterpg\App_Code\Web\FeatureCache.vb:94
       AspNet.StarterKits.Classifieds.Web.FeaturedAdCache.GetFeaturedAd(HttpContext context) in d:\hosting\rporterpg\App_Code\Web\FeatureCache.vb:81
       AspNet.StarterKits.Classifieds.Web.FeaturedAdCache.GetFeaturedAd() in d:\hosting\rporterpg\App_Code\Web\FeatureCache.vb:69
    
    [TargetInvocationException: Exception has been thrown by the target of an invocation.]
       System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +0
       System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +72
       System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +308
       System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +29
       System.Web.UI.WebControls.ObjectDataSourceView.InvokeMethod(ObjectDataSourceMethod method, Boolean disposeInstance, Object& instance) +480
       System.Web.UI.WebControls.ObjectDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +1960
       System.Web.UI.WebControls.Repeater.GetData() +50
       System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +232
       System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +53
       System.Web.UI.WebControls.Repeater.DataBind() +72
       System.Web.UI.WebControls.Repeater.EnsureDataBound() +55
       System.Web.UI.WebControls.Repeater.OnPreRender(EventArgs e) +12
       System.Web.UI.Control.PreRenderRecursiveInternal() +86
       System.Web.UI.Control.PreRenderRecursiveInternal() +170
       System.Web.UI.Control.PreRenderRecursiveInternal() +170
       System.Web.UI.Control.PreRenderRecursiveInternal() +170
       System.Web.UI.Control.PreRenderRecursiveInternal() +170
       System.Web.UI.Control.PreRenderRecursiveInternal() +170
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2041
    

  • Re: login failed for user in "classifiedsDB"

    05-16-2008, 4:03 PM
    • Loading...
    • manorfarm
    • Joined on 02-21-2008, 10:45 PM
    • Posts 39

    Is this change working ok locally?

    I can see it is not working remotely -

    Have you republished your updated sql files to the server?

    I don't think this about db passwords - it might be about permissions but I am slightly baffled as to why they would change given the changes you were making

  • Re: login failed for user in "classifiedsDB"

    05-16-2008, 8:41 PM

    Hi. 

    I made changes to sql database files by using the edit function in godaddy's database console.  I opened the database, edited the files and saved them. 

    Then I used expression web and VWD to edit the website files.  I expected errors, and got a few.  Made more edits and late last night the site came up ok. 

    I made changes to the published file using the FTP function in EW and checked for errors online.  I know I should make changes locally, but sometime ago my local server quit working and I haven't figured out why yet. 

    I haven't tested the new field really, because I haven't added the new field to the pages yet. 

    Thanks for your response, I'm going to call godaddy and see if they have any ideas.  I did back up the database before I changed it and I do have a clean copy of the website locally in case I have to start over. 

    I really appreciate the help I've received through this forum.  Thanks again.

  • Re: login failed for user in "classifiedsDB"

    05-17-2008, 1:03 PM

    I was able to get the home page to load by resetting my database passwords.  Now I am getting the following error

     


     

    Object reference not set to an instance of an object.

    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.NullReferenceException: Object reference not set to an instance of an object. 

     I'm completely puzzled because I haven't done anything to PasswordRecovery or anything in this file.  Can anyone give me an idea where to look for the problem?  Where can I learn about these unhandled exceptions so I can troubleshoot my own errors?  Thanks

    Source Error:

    Line 23: 	Protected Sub PasswordRecovery_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles PasswordRecovery.Init
    Line 24: 		Dim s As SiteSettings = SiteSettings.GetSharedSettings()
    Line 25: 		PasswordRecovery.MailDefinition.From = s.SiteEmailFromField
    Line 26: 	End Sub
    Line 27: 


    Source File: d:\hosting\r\Login.aspx.vb    Line: 25

    Stack Trace:

    [NullReferenceException: Object reference not set to an instance of an object.]
       Login_aspx.PasswordRecovery_Init(Object sender, EventArgs e) in d:\hosting\rporterpg\Login.aspx.vb:25
    

Page 1 of 1 (4 items)
Microsoft Communities
Page view counter