Answered by:
IFD not working where could the problem be?

Question
-
Hi
We have some problems with getting CRM 4 IFD to work on one location. I hope someone has a solution to our problem.
We have successfully set up several IFD, both using manual and the IFD tool.
The error message in IE 7 when entering the website:
---
Exception Details: System.UriFormatException: Invalid URI: The format of the URI could not be determined.
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:
[UriFormatException: Invalid URI: The format of the URI could not be determined.] System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind) +3934904 Microsoft.Crm.WebServices.AbstractOrganizationEndpointProvider.GetWebApplicationUrl(Guid organizationId) +293 Microsoft.Crm.Authentication.IfdRedirectAuthenticationProvider.Authenticate(HttpApplication application) +427 Microsoft.Crm.Authentication.AuthenticationStep.Authenticate(HttpApplication application) +310 Microsoft.Crm.Authentication.AuthenticationPipeline.Authenticate(HttpApplication application) +102 Microsoft.Crm.Authentication.AuthenticationEngine.Execute(Object sender, EventArgs e) +1214 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +80 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +177
---
The eventviewer gives us this warning
---
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 27-03-2008 10:36:29
Event time (UTC): 27-03-2008 09:36:29
Event ID: 041a901444ad49fa9da1b3a457848497
Event sequence: 5344
Event occurrence: 16
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/3/Root-1-128509976463540301
Trust level: Full
Application Virtual Path: /
Application Path: C:\Program Files\Microsoft Dynamics CRM\CRMWeb\
Machine name: "Name of CRM server"
Process information:
Process ID: 3484
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE
Exception information:
Exception type: UriFormatException
Exception message: Invalid URI: The format of the URI could not be determined.
Request information:
Request URL: "https://website:443/default.aspx"
Request path: /default.aspx
User host address: External IP address
User:
Is authenticated: False
Authentication Type:
Thread account name: NT AUTHORITY\NETWORK SERVICE
Thread information:
Thread ID: 1
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: True
Stack trace: at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
at Microsoft.Crm.WebServices.OrganizationEndpointProviderFactory.AbstractOrganizationEndpointProvider.GetWebApplicationUrl(Guid organizationId)
at Microsoft.Crm.Authentication.IfdRedirectAuthenticationProvider.Authenticate(HttpApplication application)
at Microsoft.Crm.Authentication.AuthenticationStep.Authenticate(HttpApplication application)
at Microsoft.Crm.Authentication.AuthenticationPipeline.Authenticate(HttpApplication application)
at Microsoft.Crm.Authentication.AuthenticationEngine.Execute(Object sender, EventArgs e)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Custom event details:
For more information, see Help and Support Center at
---
The IFD tool gives us only successfull replies when saving
---
10:40:47| Info| === IFD Tool started: 27-03-2008 10:40:47 ===
10:40:50| Info| Action {0} Succeeded| Get Internet Facing Deployment Network Address Action Value {0}
10:40:51| Info| Action Retrieve List of Organizations in Deployment Succeeded
10:40:51| Info| Action Retrieve Internet Facing Deployment Settings Succeeded
10:41:13| Info| Current Sku : OnPremise
10:41:13| Info| Update Web Config Authentication Strategy 5
10:41:13| Info| Action Update Web Config Authentication Strategy ServiceProviderLicenseAgreement Succeeded
10:41:13| Info| Action SetWebSiteSecurityAction Succeeded
10:41:13| Info| Action SetEndPointDirectorySecurityAction Succeeded
10:41:13| Info| Action SetMetaFileSecurityAction Succeeded
10:41:13| Info| Action SetCrmDeploymentServiceFileSecurityAction Succeeded
10:41:13| Info| Action SetImgDirectorySecurityAction Succeeded
10:41:13| Info| Action SetStaticDirectorySecurityAction Succeeded
10:41:13| Info| Action SetPassportSPLADirectorySecurityAction Succeeded
10:41:14| Info| Action UpdateIfdSettingsAction Succeeded
10:41:14| Info| Action AddAuthenticationSettings Succeeded
10:41:14| Info| Action CreateKeySettings Succeeded
10:41:14| Info| Action SetIfdInternalNetworkAddressAction Succeeded--
Can someone help me investigate this problem further?
Best regards
Morten Kessel
Thursday, March 27, 2008 9:45 AM
Answers
-
Dear,
I had implemented with IFD but not get this issue
you might check this...
http://support.microsoft.com/kb/948779/en-us
Regards,
Imran
http://microsoftcrm3.blogspot.com
Monday, April 7, 2008 1:43 PMModerator
All replies
-
Thursday, March 27, 2008 10:11 AMModerator
-
Here is the tracefile for one error:
I don't quite know what to look for.
# CRM Tracing Version 2.0
# LocalTime: 2008-03-27 13:15:03.0
# Categories: *:Verbose
# CallStackOn: Yes
# ComputerName: “ourservername”
# CRMVersion: 4.0.7333.3
# DeploymentType: OnPremise
# ScaleGroup:
# ServerRole: AppServer, AsyncService, DiscoveryService, WebService, ApiServer, HelpServer, DeploymentService[2008-03-27 13:15:03.0] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 1 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Verbose | SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute
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 HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr)
at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)
>AUTH: Request [GET https://”ourwebsite”/default.aspx] entered Authentication Pipeline.
[2008-03-27 13:15:03.0] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 1 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Verbose | AuthenticationPipeline.Authenticate
at AuthenticationPipeline.Authenticate(HttpApplication application)
at AuthenticationEngine.Execute(Object sender, EventArgs e)
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 HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr)
at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)
>AUTH: AuthenticationProvider [Microsoft.Crm.Authentication.CrmPostAuthenticationProvider] will be atempted.
[2008-03-27 13:15:03.0] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 1 |Category: Exception |User: 00000000-0000-0000-0000-000000000000 |Level: Error | CrmException..ctor
at CrmException..ctor(Int32 errorCode, Object[] arguments)
at CrmPostAuthenticationHelper.ReadAndValidateTicket(HttpRequest request)
at CrmPostAuthenticationProvider.Authenticate(HttpApplication application)
at AuthenticationStep.Authenticate(HttpApplication application)
at AuthenticationPipeline.Authenticate(HttpApplication application)
at AuthenticationEngine.Execute(Object sender, EventArgs e)
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 HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr)
at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)
>Crm Exception: Message: The ticket specified for authentication is invalid, ErrorCode: -2147180286
[2008-03-27 13:15:03.0] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 1 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info | AuthenticationStep.Authenticate
at AuthenticationStep.Authenticate(HttpApplication application)
at AuthenticationPipeline.Authenticate(HttpApplication application)
at AuthenticationEngine.Execute(Object sender, EventArgs e)
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 HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr)
at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)
>AUTH: CrmPostAuthenticationProvider.Authenticate() failed with Microsoft.Crm.CrmException: The ticket specified for authentication is invalid
at Microsoft.Crm.Authentication.CrmPostAuthenticationHelper.ReadAndValidateTicket(HttpRequest request)
at Microsoft.Crm.Authentication.CrmPostAuthenticationProvider.Authenticate(HttpApplication application).
[2008-03-27 13:15:03.0] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 1 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Verbose | AuthenticationPipeline.Authenticate
at AuthenticationPipeline.Authenticate(HttpApplication application)
at AuthenticationEngine.Execute(Object sender, EventArgs e)
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 HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr)
at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)
>AUTH: AuthenticationProvider [Microsoft.Crm.Authentication.CrmPostAuthenticationProvider] will be atempted.
[2008-03-27 13:15:03.0] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 1 |Category: Exception |User: 00000000-0000-0000-0000-000000000000 |Level: Error | CrmException..ctor
at CrmException..ctor(Int32 errorCode, Object[] arguments)
at CrmPostAuthenticationHelper.ReadAndValidateTicket(HttpRequest request)
at CrmPostAuthenticationProvider.Authenticate(HttpApplication application)
at AuthenticationStep.Authenticate(HttpApplication application)
at AuthenticationPipeline.Authenticate(HttpApplication application)
at AuthenticationEngine.Execute(Object sender, EventArgs e)
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 HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr)
at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)
>Crm Exception: Message: The ticket specified for authentication is invalid, ErrorCode: -2147180286
[2008-03-27 13:15:03.0] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 1 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info | AuthenticationStep.Authenticate
at AuthenticationStep.Authenticate(HttpApplication application)
at AuthenticationPipeline.Authenticate(HttpApplication application)
at AuthenticationEngine.Execute(Object sender, EventArgs e)
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 HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr)
at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)
>AUTH: CrmPostAuthenticationProvider.Authenticate() failed with Microsoft.Crm.CrmException: The ticket specified for authentication is invalid
at Microsoft.Crm.Authentication.CrmPostAuthenticationHelper.ReadAndValidateTicket(HttpRequest request)
at Microsoft.Crm.Authentication.CrmPostAuthenticationProvider.Authenticate(HttpApplication application).
[2008-03-27 13:15:03.0] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 1 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Verbose | AuthenticationPipeline.Authenticate
at AuthenticationPipeline.Authenticate(HttpApplication application)
at AuthenticationEngine.Execute(Object sender, EventArgs e)
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 HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr)
at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)
>AUTH: AuthenticationProvider [Microsoft.Crm.Authentication.IfdRedirectAuthenticationProvider] will be atempted.
[2008-03-27 13:15:03.0] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 1 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Warning | SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute
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 HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr)
at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)
>A failure occurred during the execution of the AuthenticationPipeline: System.UriFormatException: Invalid URI: The format of the URI could not be determined.
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
at Microsoft.Crm.WebServices.OrganizationEndpointProviderFactory.AbstractOrganizationEndpointProvider.GetWebApplicationUrl(Guid organizationId)
at Microsoft.Crm.Authentication.IfdRedirectAuthenticationProvider.Authenticate(HttpApplication application)
at Microsoft.Crm.Authentication.AuthenticationStep.Authenticate(HttpApplication application)
at Microsoft.Crm.Authentication.AuthenticationPipeline.Authenticate(HttpApplication application)
at Microsoft.Crm.Authentication.AuthenticationEngine.Execute(Object sender, EventArgs e)
[2008-03-27 13:15:03.0] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 1 |Category: Application |User: 00000000-0000-0000-0000-000000000000 |Level: Error | ErrorInformation.LogError
at ErrorInformation.LogError()
at MainApplication.Application_Error(Object sender, EventArgs eventArguments)
at EventHandler.Invoke(Object sender, EventArgs e)
at HttpApplication.RaiseOnError()
at ApplicationStepManager.ResumeSteps(Exception error)
at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
at HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr)
at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)
>MSCRM Error Report:
--------------------------------------------------------------------------------------------------------
Error: Invalid URI: The format of the URI could not be determined.Error Message: Invalid URI: The format of the URI could not be determined.
Source File: Not available
Line Number: Not available
Request URL: https://”ourwebsite”/default.aspx
Stack Trace Info: [UriFormatException: Invalid URI: The format of the URI could not be determined.]
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
at Microsoft.Crm.WebServices.OrganizationEndpointProviderFactory.AbstractOrganizationEndpointProvider.GetWebApplicationUrl(Guid organizationId)
at Microsoft.Crm.Authentication.IfdRedirectAuthenticationProvider.Authenticate(HttpApplication application)
at Microsoft.Crm.Authentication.AuthenticationStep.Authenticate(HttpApplication application)
at Microsoft.Crm.Authentication.AuthenticationPipeline.Authenticate(HttpApplication application)
at Microsoft.Crm.Authentication.AuthenticationEngine.Execute(Object sender, EventArgs e)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
[2008-03-27 13:15:09.4] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 5(MSCRM:-NotificationManager.NotificationWatcherThreadProc) |Category: Platform.Sql |User: 00000000-0000-0000-0000-000000000000 |Level: Info | NotificationService.GetNotifications
at NotificationService.GetNotifications(Object organizationId, Int32[] events, DateTime lastChecked)
at NotificationManager.NotificationWatcherThreadProc()
at ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at ThreadHelper.ThreadStart()
>SELECT OrganizationId, EventId, EventData, CreatedOn FROM Notification WHERE CreatedOn > '03/27/2008 11:58:02'
[2008-03-27 13:15:09.4] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 5(MSCRM:-NotificationManager.NotificationWatcherThreadProc) |Category: Platform.Sql |User: 00000000-0000-0000-0000-000000000000 |Level: Info | CrmDbConnection.ExecuteReader
at CrmDbConnection.ExecuteReader(IDbCommand command, Boolean impersonate)
at NotificationService.GetConfigScopeNotifications(ConfigScope scope, Object organizationId, Int32[] events, DateTime lastChecked)
at NotificationService.GetNotifications(Object organizationId, Int32[] events, DateTime lastChecked)
at NotificationManager.NotificationWatcherThreadProc()
at ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at ThreadHelper.ThreadStart()
>SELECT OrganizationId, EventId, EventData, CreatedOn FROM Notification WHERE CreatedOn > '03/27/2008 11:58:02'
Thursday, March 27, 2008 12:33 PM -
Dear,
I had implemented with IFD but not get this issue
you might check this...
http://support.microsoft.com/kb/948779/en-us
Regards,
Imran
http://microsoftcrm3.blogspot.com
Monday, April 7, 2008 1:43 PMModerator -
Hi,
Check whether you have configure your IFD setting correctly. For further details please look into this post:
Hope it helps.
Ayaz
Monday, April 28, 2008 12:36 AMModerator -
Sorry for the old bumping.
I was experiencing the very same problem at a customer. The problem occured because of missing records for IFD in the DeploymentProperties table in MSCRM_CONFIG database.
!!!!UNSUPPORTED!!!!
Make a backup of this database and modify the insertstrings with the values you want. Afterwards perform an IISRESET and verify if it works. If not, verify the web.config for the ServiceProvideLicenseAgreement and Anonymous Authentication in IIS
SQL Commands--retrieve the Id to use in the next commands
select Id from DeploymentProperties where ColumnName='ADRootDomainScheme'
--insert the missing records
INSERT INTO DeploymentProperties
(Id, ColumnName, NVarCharColumn, Encrypted)
VALUES ('7f424a61-676c-dd11-823c-00155d021522', 'IfdWebApplicationRootDomain', 'DOMAIN.COM:5555', 'false')
INSERT INTO DeploymentProperties
(Id, ColumnName, NVarCharColumn, Encrypted)
VALUES ('7f424a61-676c-dd11-823c-00155d021522', 'IfdSdkRootDomain', 'DOMAIN.COM:5555', 'false')
INSERT INTO DeploymentProperties
(Id, ColumnName, NVarCharColumn, Encrypted)
VALUES ('7f424a61-676c-dd11-823c-00155d021522', 'IfdRootDomainScheme', 'http', 'false')Wednesday, November 26, 2008 12:27 PM