web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

CRM 2013: IFD setup returns a 404 error after adfs login

(0) ShareShare
ReportReport
Posted on by 130

After a log in i receive a 404 File or directory not found. It lands on my auth.domain.com url

My setup works fine internally. I have noticed that i cannot retrieve the federationmetadata from the url. At this point i could use some guidance as where to look. Thanks

*This post is locked for comments

I have the same question (0)
  • MarioEncarnacao Profile Picture
    on at
    RE: CRM 2013: IFD setup returns a 404 error after adfs login

    Hi Alexander,

    Have you tried use the url https://<organizationname>.mydomain.com:444 ?

  • Community Member Profile Picture
    on at
    RE: CRM 2013: IFD setup returns a 404 error after adfs login

    Iam having a similar problem. After successfully logging in at https://crm.mydomain.com:444 (redirected to https://adfs... and back to crm.mydomain.com:444) I get a 404 error. However, if I add /main.aspx it resolves fine. My guess is a IIS error somewhere but I could not figure it out so far. Any suggestions welcome.

  • Suggested answer
    Rose Duley Profile Picture
    780 on at
    RE: CRM 2013: IFD setup returns a 404 error after adfs login

    Nevermind I resolved the problem!!!  I had put both my adfs url and my external CRM URL into my trusted sites in IE and that is what gave the error!!!  I am flabbergasted!  So much time wasted on this.   I also put back the entries for auth in the hosts file on the WAP server and the looping does not re-occur!

  • Rose Duley Profile Picture
    780 on at
    RE: CRM 2013: IFD setup returns a 404 error after adfs login

    Hi Arpita,

    I have the same issue!  Am using ADFS 3.0, CRM 2015, and WAP.  Having the same issue with 404 on auth.mydomain.com after logging in from externally.  Internal CRM URL and ORG URL work internally.  Federationmetadata.xml resolves with both internal URL and ADFS URL.   All internal DNS entries appear correct.  All external DNS entries appear correct. Inside our network the Internal and External CRM URL works and the issue occurs only when access from outside network.  However, if I type in https://auth.mydomain.com, internally, then I also get a 404.  

    Event viewer in CRM gives error Event ID 18732 only.

    ADFS Server event viewer gives Event ID 364 -

    Encountered error during federation passive request.

    Additional Data

    Protocol Name:

    wsfed

    Relying Party:

    https://<organizationurl>.<mydomain>.com/

    Exception details:

    Microsoft.IdentityServer.Web.InvalidRequestException: MSIS7042: The same client browser session has made '6' requests in the last '11' seconds. Contact your administrator for details.

      at Microsoft.IdentityServer.Web.Protocols.PassiveProtocolHandler.UpdateLoopDetectionCookie(WrappedHttpListenerContext context)

      at Microsoft.IdentityServer.Web.Protocols.WSFederation.WSFederationProtocolHandler.SendSignInResponse(WSFederationContext context, MSISSignInResponse response)

      at Microsoft.IdentityServer.Web.PassiveProtocolListener.ProcessProtocolRequest(ProtocolContext protocolContext, PassiveProtocolHandler protocolHandler)

      at Microsoft.IdentityServer.Web.PassiveProtocolListener.OnGetContext(WrappedHttpListenerContext context)

    I have been going around in circles for days just on this problem.  

    Has anyone resolved this issue??

    Additoinal Information:  

    I have one Internal CRM Server, separate SQL server, a separate internal ADFS Server and a WAP Server in DMZ - using Kerberos. 

    Internal DNS = auth, dev, orgname and internalurl are all CNAMEs pointing to single Internal CRM server.  FS is an A Record pointing to ADFS server IP and not a CNAME.

    External DNS  - auth, dev, orgname and fs all point to one external IP address as A Records.  My Firewall routes all traffic from this external IP to my WAP server in the DMZ.  DMZ uses hosts file for internal addresses to ADFSURL, ADFS Server, InternalCRMURL and ExernalCRMURL pointing to internal CRMServerIP. 

    If I add authURL pointing to internalCRM Server IP, external login goes into a loop between auth and adfs!

    All Published Web Applications show same External URL and Internal URL once published and all set to Pass-through.  Could this be the issue?

  • Community Member Profile Picture
    on at
    RE: CRM 2013: IFD setup returns a 404 error after adfs login

    Darrel Dcosta  mate, you are a legend.

     

    overlooked such simple settings.

    after disabling the Form Auth and reseting the iis, redirection is working fine.

    Thank you so much for your input.

     

     

  • Community Member Profile Picture
    on at
    RE: CRM 2013: IFD setup returns a 404 error after adfs login

    Hey mate,

    after hours of research, I resolved this by disabling Form Authentication in IIS!  MSCRM - Sites - Authentication - Form authentication - Disabled.

    Hope this helps you guys.

    Cheers

  • MilindP Profile Picture
    1,019 on at
    RE: CRM 2013: IFD setup returns a 404 error after adfs login

    Check through fiddler what URL its heating when you are getting 404 error.

    Also check if there are any custom URL rewrite rules applied on CRM website URL for transferring external to internal when accessed internally.

  • Community Member Profile Picture
    on at
    RE: CRM 2013: IFD setup returns a 404 error after adfs login

    I am receiving the same 404 error when using the IFD URL as Mandy and Eduardo, has anyone resolved this issue? Likewise when I change the url to main domain name it works fine.

  • Community Member Profile Picture
    on at
    RE: CRM 2013: IFD setup returns a 404 error after adfs login

    Bump.

    having same issues.

    URL opened internally and externally.

    After adfs authentication, url comes like this

    org.domainname.com/login.aspx

    and gives 404- file and Directory not found.

    now if we remove the last bit and try to access with url 

    https://org.domainname.com/

    we are on main page of Dynamic CRM 2015

    For internal 

    same issue - 

    https://internal.domainname.com/

    gives HTTP 404 not found, but when browsed to link again - home page works.

    Tried recreating ADFS

    URL exists for internal and External DNS resolution.

    the point it works after clicking the url again show DNS and ADFS auth is not an issues.

    ADFS and Dynamic 2015 is installed on single server

    SPN are correctly configured on Service accounts and the CRM server

    Any Pointers?

  • Community Member Profile Picture
    on at
    RE: CRM 2013: IFD setup returns a 404 error after adfs login

    I have a very similar problem. After my login in adfs my crm arrives on a crm.mydomain.com/default.aspx and i receive a 404 error.

    However, if a type in the browser address bar crm.mydomain.com/myorg/, i also receive a 404 error but if i type crm.mydomain.com again... everything work.

    I used Fiddler and reach the point where crm issues a 302 moved to.

    Researched a lot on google and other forums but without success. Any hints?

    Regards

    Eduardo

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Aric Levin - MVP Profile Picture

Aric Levin - MVP 2 Moderator

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#3
MA-04060624-0 Profile Picture

MA-04060624-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans