Print Page | Close Window

the login credentials supplied are not valid

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=2102
Printed Date: 13-May-2026 at 9:42pm


Topic: the login credentials supplied are not valid
Posted By: wwlgray
Subject: the login credentials supplied are not valid
Date Posted: 27-Aug-2010 at 8:49am
I am using the login example and it works fine from my dev computer and from my dev webserver. When i move the app to my test web server I always get the login credential error. I am hitting the same db from all locations. Any help would be appreciated.



Replies:
Posted By: wwlgray
Date Posted: 27-Aug-2010 at 10:00am
Here is the log file

XML Log:

Date Time UserName Namespace Class:Method Message
2010-08-27 12:55:35 IdeaBlade.Core TraceFileXmlLogger::GetLogHeader ------------ Log Created ------------
2010-08-27 12:55:34 IdeaBlade.Core IdeaBladeConfig::Initialize Initializing configuration ...
2010-08-27 12:55:34 IdeaBlade.Core.Composition PartsCatalog::LoadCatalog MEF assembly probing started: 8/27/2010 12:55:34 PM. If this takes a long time, use IdeaBlade.Core.Composition.CompositionHost to specify/restrict which assemblies to probe.
2010-08-27 12:55:34 IdeaBlade.Core.Composition PartsCatalog::LoadCatalog Assembly 'Custodias AdminWeb, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' added to PartsCatalog
2010-08-27 12:55:34 IdeaBlade.Core.Composition PartsCatalog::LoadCatalog MEF assembly probing completed: 8/27/2010 12:55:34 PM
2010-08-27 12:55:35 IdeaBlade.Core AuthHelper::LoadRuntimeLicense IdeaBlade License: 'EnterpriseUniv, Express', KeyDate: 4/15/2010, AllowedSessions: 10000. Found on Assembly: 'Custodias AdminWeb, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
2010-08-27 12:55:35 IdeaBlade.Core.Configuration ServerSettingsElement::ConstrainSettingsBasedOnLicenseCore The configured SupportedClientApplicationType is Both
2010-08-27 12:55:35 IdeaBlade.Core.Configuration ServerSettingsElement::ConstrainSettingsBasedOnLicenseCore Could not find a valid license to enable session-agnostic load balancing.
2010-08-27 12:55:35 IdeaBlade.Core.Composition CompositionHost::GetImportDefMultiple Probed for non-default 'ITraceLoggerProvider' and found no matching exports.
2010-08-27 12:55:35 IdeaBlade.Core.Composition CompositionHost::GetImportDefSingle Probed for default 'ITraceLoggerProvider' and found 'IdeaBlade.Core.DefaultLoggerProvider'.
2010-08-27 12:55:35 IdeaBlade.Core TraceFns::CompleteTracingInitialization IdeaBladeConfig resolution: File: C:\base\root\CUSTMAD\web.config - found
2010-08-27 12:55:35 IdeaBlade.Core TraceFns::CompleteTracingInitialization IdeaBladeConfig resolution: Logging file: C:\base\root\CUSTMAD\DebugLog.xml
2010-08-27 12:55:35 IdeaBlade.Core TraceFns::CompleteTracingInitialization Bound to .NET runtime version 4.0.30319.1
2010-08-27 12:55:35 IdeaBlade.Core TraceFns::CompleteTracingInitialization DevForce version 6.0.4.0
2010-08-27 12:55:35 IdeaBlade.EntityModel.Server EntityServiceHost::AddBehaviors Using DC serializer for EntityService
2010-08-27 12:55:35 IdeaBlade.Core.Composition CompositionHost::GetImportDefSingle Probed for any 'ServiceHostEvents' and found 'IdeaBlade.EntityModel.Server.ServiceHostEvents'.
2010-08-27 12:55:35 IdeaBlade.EntityModel.Server EntityServiceHostFactory::CreateServiceHost EntityService listening on http://css-svr-3-dev.cco.local/CUSTMAD/EntityService.svc
2010-08-27 12:55:35 IdeaBlade.EntityModel.Server EntityServiceHostFactory::CreateServiceHost EntityService listening on http://css-svr-3-dev.cco.local/CUSTMAD/EntityService.svc/sl
2010-08-27 12:55:35 IdeaBlade.Core.Composition CompositionHost::GetImportDefSingle Probed for any 'EntityServiceApplication' and found 'IdeaBlade.EntityModel.EntityServiceApplication'.
2010-08-27 12:55:35 :CreateIdeaBlade.EntityModel.Server RemoteEntityService: EntityService created
2010-08-27 12:55:35 IdeaBlade.EntityModel.Server EntityServer::.ctor EntityServer created for DataSourceExtension: [None]
2010-08-27 12:55:35 IdeaBlade.EntityModel.Server SessionManager::GetLoginManager Anonymous access: enabled
2010-08-27 12:55:35 IdeaBlade.Core.Composition CompositionHost::GetImportDefSingle Probed for non-default 'IEntityLoginManager' and found no matching exports.
2010-08-27 12:55:35 IdeaBlade.EntityModel.Server SessionManager::GetLoginManager Looking for AspAuthenticatingLoginManager
2010-08-27 12:55:35 IdeaBlade.EntityModel.Web AspAuthenticatingLoginManager::.ctor ASP.NET security service integration enabled
2010-08-27 12:55:35 IdeaBlade.EntityModel.Web AspAuthenticatingLoginManager::.ctor ASP.NET authentication mode: Forms
2010-08-27 12:55:35 IdeaBlade.Core.Composition CompositionHost::GetImportDefSingle Probed for default 'IEntityLoginManager' and found 'IdeaBlade.EntityModel.Web.AspAuthenticatingLoginManager'.
2010-08-27 12:55:35 IdeaBlade.Core.Composition CompositionHost::GetImportDefMultiple Probed for any 'IEntityQueryExecutor' and found 'IdeaBlade.EntityModel.Edm.EdmQueryExecutor'.
2010-08-27 12:55:35 IdeaBlade.Core.Composition CompositionHost::GetImportDefMultiple Probed for any 'IEntityQueryExecutor' and found 'IdeaBlade.EntityModel.Edm.PassthruEsqlQueryExecutor'.
2010-08-27 12:55:35 IdeaBlade.Core.Composition CompositionHost::GetImportDefMultiple Probed for any 'IEntityQueryExecutor' and found 'IdeaBlade.EntityModel.Edm.StoredProcQueryExecutor'.
2010-08-27 12:55:35 IdeaBlade.Core.Composition CompositionHost::GetImportDefMultiple Probed for any 'IEntityQueryExecutor' and found 'IdeaBlade.EntityModel.Edm.UdtQueryExecutor'.
2010-08-27 12:55:35 IdeaBlade.Core.Composition CompositionHost::GetImportDefSingle Probed for default 'IDataSourceKeyResolver' and found 'IdeaBlade.EntityModel.DefaultDataSourceKeyResolver'.
2010-08-27 12:55:35 IdeaBlade.Core.Composition CompositionHost::GetImportDefMultiple Probed for non-default 'IKnownTypeProvider' and found no matching exports.
2010-08-27 12:55:35 IdeaBlade.EntityModel.Server EntityServerHost::<AddBehaviors>b__2 Using DC serializer for EntityServer
2010-08-27 12:55:35 IdeaBlade.EntityModel.Server EntityServerHostFactory::CreateServiceHost EntityServer listening on http://css-svr-3-dev.cco.local/CUSTMAD/EntityServer.svc
2010-08-27 12:55:35 IdeaBlade.EntityModel.Server EntityServerHostFactory::CreateServiceHost EntityServer listening on http://css-svr-3-dev.cco.local/CUSTMAD/EntityServer.svc/sl
2010-08-27 12:55:35 IdeaBlade.EntityModel.Server EntityServerErrorHandler::ProvideFault Caught exception: LoginException: The login credentials supplied are invalid. ---> at IdeaBlade.EntityModel.Web.AspAuthenticatingLoginManager.CredentialAuthentication(ILoginCredential credential) at IdeaBlade.EntityModel.Server.SessionManager.GetPrincipalFromCredential(ILoginCredential pCredential) at IdeaBlade.EntityModel.Server.SessionManager.GetPrincipal(SessionBundle sessionBundle) at IdeaBlade.EntityModel.Server.SessionManager.Login(ILoginCredential credential) at SyncInvokeLogin(Object , Object[] , Object[] ) at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs) at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc) at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)


Posted By: wwlgray
Date Posted: 27-Aug-2010 at 10:01am
I know that the credentials are correct so why am I getting this error?


Posted By: kimj
Date Posted: 27-Aug-2010 at 12:55pm
Since you're using ASP.NET Forms authentication you need to make sure that the aspnetdb database on your test web server contains the correct user information.


Posted By: wwlgray
Date Posted: 27-Aug-2010 at 2:14pm
As I stated above all platforms are pointed to the same db.


Posted By: kimj
Date Posted: 27-Aug-2010 at 6:45pm
Check the settings on the membership and membership provider elements in the web.config (and machine.config) between your environments to see if anything differs - specifically:
 
- Since data in the aspnetdb is keyed by application, the application name, if specified, should be the same.
 
- The hashAlgorithmType defined on the membership element should be the same.  If not present it will default to the settings on the machineKey.  (The default hash algorithm changed in .NET 4 to HMACSHA256 from SHA1, so be sure the algorithm set is the same one used when you created the users.)


Posted By: pponzano
Date Posted: 13-Dec-2011 at 7:06am
The same problem here....how have you resolved it? Thanks



Print Page | Close Window