Directory Programming .NET

Active Directory and ADAM programming support for .NET developers
Welcome to Directory Programming .NET Sign in | Join | Help
in Search

ADFS Step-by-Step Error

Last post 07-01-2008, 10:59 PM by joe. 17 replies.
Page 1 of 2 (18 items)   1 2 Next >
Sort Posts: Previous Next
  •  04-14-2008, 11:52 AM 3146

    ADFS Step-by-Step Error

    Hello,

    im settin up the ADFS Step-by-Step guide, but i get an error. I read here (http://directoryprogramming.net/forums/thread/979.aspx) the same problem, but i dont have the chance to getting real certs.
    How can i fix this error with my self-signed certs?

    Thank you!

    Server Error in '/claimapp' Application.

    The web server has been unable to contact the Federation Server.

    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.InvalidOperationException: The web server has been unable to contact the Federation Server.

    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:

    [InvalidOperationException: The web server has been unable to contact the Federation Server.]
    System.Web.Security.SingleSignOn.WSPersistentState.GetPersistentInfo(TrustedRealm& trustedRealm, String& fsAccountName) +137
    System.Web.Security.SingleSignOn.WebSsoAuthenticationModule.OnEnter(Object o, EventArgs args) +449
    System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64


    Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210
  •  04-14-2008, 12:34 PM 3147 in reply to 3146

    Re: ADFS Step-by-Step Error

    Browse to the asmx service file from the Federation servers via IIS. Check to see if you get the cert errors.  We had this last week and it was just a cert issue that needed to be corrected. If so you'll need to try installing the certs again.

    We used SelfSSL and it worked fine for us last week.

  •  04-14-2008, 1:41 PM 3149 in reply to 3147

    Re: ADFS Step-by-Step Error

    jrmcdona:

    Browse to the asmx service file from the Federation servers via IIS.



    where can i find the asmx service file? i only have the 3 claimapp-files (default.aspx, web.config, default.aspx.cs)
  •  04-14-2008, 1:45 PM 3150 in reply to 3149

    Re: ADFS Step-by-Step Error

    It is on the federation server that you are trying to connect to.

    Look in IIS under the virtual directories where you federation service lives. I think it is called "adfs" or something like that.

     

  •  04-14-2008, 3:12 PM 3151 in reply to 3146

    Re: ADFS Step-by-Step Error

    Hi,

    This error is telling you that the web server is unable to contact the Federation Server.  To test this, you should launch a browser on the web server and see if you can browse to this page:

    https://adfsresource.treyresearch.net/adfs/fs/federationserverservice.asmx   <--This is the actual link if you used the computer names outlined in the guide.  If you used different server names, then replace the servername with what you used.

    Most likely, this test will fail.  The application event logs on the Web Server and the Federation Server may tell you more information as to the reason for the failure.

    Also, the ADFS Diagnostic tool may help diagnose the problem further if the event logs don't help with the problem.

    Thanks,

    Jim

  •  04-15-2008, 3:47 AM 3161 in reply to 3151

    Re: ADFS Step-by-Step Error

    Problem fixed.
  •  04-15-2008, 7:56 PM 3175 in reply to 3151

    Re: ADFS Step-by-Step Error

    jimsim:

    Hi,

    This error is telling you that the web server is unable to contact the Federation Server.  To test this, you should launch a browser on the web server and see if you can browse to this page:

    https://adfsresource.treyresearch.net/adfs/fs/federationserverservice.asmx   <--This is the actual link if you used the computer names outlined in the guide.  If you used different server names, then replace the servername with what you used.

    Most likely, this test will fail.  The application event logs on the Web Server and the Federation Server may tell you more information as to the reason for the failure.

    Also, the ADFS Diagnostic tool may help diagnose the problem further if the event logs don't help with the problem.

    Thanks,

    Jim

     

    We are getting the same error on our web server.

    I can hit the Federation server address no problem, ADFS tool comes back 100% passed... Can't seem to figure this one out.

     

    Edit:

    Screenshot: http://img442.imageshack.us/img442/1872/adfserror3sm3.jpg

    Log File output:

    Event code: 3005
    Event message: An unhandled exception has occurred.
    Event time: 4/15/2008 9:05:20 PM
    Event time (UTC): 4/16/2008 1:05:20 AM
    Event ID: 6e5375f90775421a866230cf4293a204
    Event sequence: 8
    Event occurrence: 7
    Event detail code: 0
     
    Application information:
        Application domain: /LM/W3SVC/827010264/Root/lp-1-128527803859305715
        Trust level: Full
        Application Virtual Path: /lp
        Application Path: C:\Inetpub\LandingPage\lp\
        Machine name: GOLDERWEB
     
    Process information:
        Process ID: 3528
        Process name: w3wp.exe
        Account name: NT AUTHORITY\NETWORK SERVICE
     
    Exception information:
        Exception type: InvalidOperationException
        Exception message: The web server has been unable to contact the Federation Server.
     
    Request information:
        Request URL: https://golderweb.golderdev.net:8081/lp/Default.aspx
        Request path: /lp/Default.aspx
        User host address: 192.168.1.3
        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: False
        Stack trace:    at System.Web.Security.SingleSignOn.WSPersistentState.GetPersistentInfo(TrustedRealm& trustedRealm, String& fsAccountName)
       at System.Web.Security.SingleSignOn.WebSsoAuthenticationModule.OnEnter(Object o, EventArgs args)
       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 http://go.microsoft.com/fwlink/events.asp.

     

  •  04-16-2008, 1:42 AM 3177 in reply to 3175

    Re: ADFS Step-by-Step Error

    put all self created certs in trusted root.
  •  04-16-2008, 1:48 PM 3185 in reply to 3177

    Re: ADFS Step-by-Step Error

    Trusted Root Certificate Authorities?

     

    It's sitting in there...

    I used selfssl /t /n:cn=golderweb.golderdev.net /v:365

     

     

  •  04-16-2008, 2:15 PM 3186 in reply to 3185

    Re: ADFS Step-by-Step Error

    I'm not exactly sure what is going on here either...

    1.  Do you get any certificate prompts/errors when manually going to the federationserverservice.asmx page?

    2. Is the event you posted the only thing logging in the application log?

    3.  Are there any application log events on the FS-R?

    4.  Do you have a proxy server specified in IE on the web server?

    Can you send me the complete diagnostic file so I can look at it off-line?

     

     

     

  •  04-16-2008, 3:50 PM 3187 in reply to 3186

    Re: ADFS Step-by-Step Error

    1. Yes, IE asks me to "Choose a digital certificate" with and empty box.

    http://img182.imageshack.us/img182/8888/adfserror6uk1.jpg

    2. Yes, and in all logs on the FS Web Server

    3. No.

    4.) No, should I? this is all an internal lab.

  •  04-16-2008, 6:48 PM 3189 in reply to 3187

    Re: ADFS Step-by-Step Error

    Here is an additional error that just seems to be popping up every now and then on the Web Server:

    Event Type: Error
    Event Source: ADFS
    Event Category: None
    Event ID: 684
    Date:  4/16/2008
    Time:  6:52:45 PM
    User:  N/A
    Computer: GOLDERWEB
    Description:
    The ADFS Web Agent was unable to update trust information from the Federation Service. The Federation Service Secure Sockets Layer (SSL) server certificate could not be validated.
    Federation Service URL:
    https://golderdevdc.golderdev.net/adfs/fs/federationserverservice.asmx

    User Action
    Verify that the Federation Service SSL server certificate chains to a root certificate that is in the Local Computer Trusted Root Certification Authorities certificate store on the web server.

    Verify that the SSL certificate is neither expired nor revoked.

    Verify that the SSL certificate subject matches the host name portion of the Federation Service Uniform Resource Locator (URL).

    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

     

    Edit:  The cert from the FS is sitting in the trusted root, its not expired... and it has the same name "golderdevdc.golderdev.net" as the FQDN of the machine its from...

     

    I am not sure what else to look for here.

     


  •  04-17-2008, 1:38 PM 3209 in reply to 3189

    Re: ADFS Step-by-Step Error

    Make sure you use a browser from the agent box to the FS URL https://golderdevdc.golderdev.net/adfs/fs/federationserverservice.asmx and see if there are any cert warnings.

    Also, if you had to modify the trusted roots to get the cert to chain, make sure you modified the right cert store!  You want the root CA cert for this cert (perhaps the cert itself if self-signed) in the trusted roots container for the LOCAL MACHINE store.  If you accidentally put this in the MY store, that will apply to the logged on user but not to other users on the machine.

  •  04-17-2008, 1:47 PM 3210 in reply to 3209

    Re: ADFS Step-by-Step Error

    Yah, the web server can hit that URL just fine.  The only cert warning i get is the one that is shown in that screenshot : http://img182.imageshack.us/img182/8888/adfserror6uk1.jpg

    Modify the trusted roots? I am not quite sure what this means... But on my web agent, I have a selfsigned SSL cert, and I have installed the cert from the FS while browsing to the *.asmx file.

    That Cert is sitting in the trusted root.

    Are you saying that i need the base cert from the Certificate Authority Server?

  •  04-17-2008, 3:55 PM 3214 in reply to 3210

    Re: ADFS Step-by-Step Error

    The client cert auth prompt you show in the screen shot there is normal for browsing the FS endpoint.  The /adfs/fs/ path is configured to accept client cert auth (but not require it) because the FS-P uses client cert auth to authenticate with the FS.  This is how the FS authorized access to the "privileged" methods exposed by the FS web service.  Two of the methods are used by the agent and are called anonymously, but the rest are used by the proxy and are only intended to be called by the proxy.

    When you accepted the certificate using the browser, that adds the cert to the trusted roots container for the "current user" store, not the local machine store.  You should do this manually using the certificates MMC snap-in instead.

    Self-signed certs are a pain to deal with because nothing trusts them by default.  They are initially easy to get going with since you can create them yourself, but trade off that initial ease fairly quickly.

Page 1 of 2 (18 items)   1 2 Next >
View as RSS news feed in XML