Answered by:
Invalid Argument - Microsoft CRM 2011 IFD

Question
-
Hi,
I just finished Microsoft Dynamics CRM 2011 IFD and performed all the steps. Now when I browse the internal URL I get an error mesage "Invalid Argument". Please see the attached screen shots.
Waiting for some quick replies.
Thanks
Microsoft Certified Business Management Solutions Specialist
- Edited by The Great Believer Thursday, July 26, 2012 10:09 AM
Thursday, July 26, 2012 9:47 AM
Answers
-
This isn't much to go on. Can you enable tracing to get a more detailed error ?
Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk
- Marked as answer by The Great Believer Friday, July 27, 2012 1:11 PM
Thursday, July 26, 2012 1:25 PMModerator -
Ok, fixed it. Got a clue from this post and added the below rule.
Thanks David for giving me the idea to use tracing.
Regards,
Zahid
Microsoft Certified Business Management Solutions Specialist
- Marked as answer by The Great Believer Friday, July 27, 2012 1:11 PM
Friday, July 27, 2012 1:11 PM
All replies
-
This isn't much to go on. Can you enable tracing to get a more detailed error ?
Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk
- Marked as answer by The Great Believer Friday, July 27, 2012 1:11 PM
Thursday, July 26, 2012 1:25 PMModerator -
Hi David,
This is the error message:
[2012-07-27 04:26:05.550] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 305 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Verbose | CrmSamlSecurityTokenRequirement.ValidateAudienceRestriction
>CrmSamlSecurityTokenRequirement validating token AppliesTo value:https://crm.domain.com/.
[2012-07-27 04:26:05.552] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 305 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Verbose | CrmSamlSecurityTokenRequirement.ValidateAudienceRestriction
>CrmSamlSecurityTokenRequirement validating token AppliesTo values: System.Collections.Generic.List`1[System.Uri]
against default AudienceUris: [1]
[2012-07-27 04:26:05.556] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 305 |Category: Exception |User: 00000000-0000-0000-0000-000000000000 |Level: Error | CrmException..ctor
at CrmException..ctor(String message, Exception innerException, Int32 errorCode, Boolean isFlowControlException)
at CrmException..ctor(String message, Exception innerException, Int32 errorCode)
at FederatedUserInformation.GetUserToken(String userPrincipalName)
at CrmFederatedAuthenticationModule.GetReturnUrlFromResponse(HttpRequest request)
at WSFederationAuthenticationModule.SignInWithResponseMessage(HttpRequest request)
at WSFederationAuthenticationModule.OnAuthenticateRequest(Object sender, EventArgs args)
at CrmFederatedAuthenticationModule.OnAuthenticateRequest(Object sender, EventArgs args)
at SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
at ApplicationStepManager.ResumeSteps(Exception error)
at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)
>Crm Exception: Message: Expected non-empty string., ErrorCode: -2147220989, InnerException: System.ArgumentException: Expected non-empty string.
Parameter name: userPrincipalName
[2012-07-27 04:26:05.562] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 305 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info | WSFederationAuthenticationModule.OnAuthenticateRequest
>AUTH: CrmFederatedAuthenticationManager Microsoft.Crm.Authentication.Claims.CrmFederatedAuthenticationModule rejects request.
[2012-07-27 04:26:05.564] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 305 |Category: Application |User: 00000000-0000-0000-0000-000000000000 |Level: Error | ErrorInformation.LogError
>MSCRM Error Report:
--------------------------------------------------------------------------------------------------------
Error: Expected non-empty string.Error Number: 0x80040203
Error Message: Expected non-empty string.
Error Details: Expected non-empty string.
Source File: Not available
Line Number: Not available
Request URL: https://crm.domain.com/default.aspx
Stack Trace Info: [ArgumentException: Expected non-empty string.
Parameter name: userPrincipalName]
[CrmArgumentException: Expected non-empty string.]
at Microsoft.Crm.Authentication.FederatedUserInformation.GetUserToken(String userPrincipalName)
at Microsoft.Crm.Authentication.Claims.CrmFederatedAuthenticationModule.GetReturnUrlFromResponse(HttpRequest request)
at Microsoft.IdentityModel.Web.WSFederationAuthenticationModule.SignInWithResponseMessage(HttpRequest request)
at Microsoft.IdentityModel.Web.WSFederationAuthenticationModule.OnAuthenticateRequest(Object sender, EventArgs args)
at Microsoft.Crm.Authentication.Claims.CrmFederatedAuthenticationModule.OnAuthenticateRequest(Object sender, EventArgs args)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
[2012-07-27 04:26:05.621] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 305 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info | FaultHelper.ConvertToFault
>TryConvertToFaultExceptionInternal: exception: Microsoft.Crm.CrmArgumentException
[2012-07-27 04:26:05.623] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 305 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info | ExceptionConverter.DumpExceptionRecursive
>NestingDepth: 24
[2012-07-27 04:26:05.624] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 305 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info | ExceptionConverter.DumpExceptionToTrace
>----- dump exception/fault tree (TryConvertToFaultExceptionInternal: before) -----
>>>>>> EXCEPTION: 0
>Type: Microsoft.Crm.CrmArgumentException
>ErrorCode: 0x80040203: ErrorCodes.InvalidArgument
>Message (26): Expected non-empty string.
>StackTrace: present: 52B1F7C5
>no PluginTrace
>>>>>> EXCEPTION: 1
>Type: System.ArgumentException
>Message (61): Expected non-empty string.
>Parameter name: userPrincipalName
>StackTrace <null>
>no PluginTrace
>InnerException <null>
><<<<< EXCEPTION: 1
Microsoft Certified Business Management Solutions Specialist
- Edited by The Great Believer Friday, July 27, 2012 12:21 PM
Friday, July 27, 2012 12:20 PM -
Ok, fixed it. Got a clue from this post and added the below rule.
Thanks David for giving me the idea to use tracing.
Regards,
Zahid
Microsoft Certified Business Management Solutions Specialist
- Marked as answer by The Great Believer Friday, July 27, 2012 1:11 PM
Friday, July 27, 2012 1:11 PM