lyncdiscover: A Web exception occurred because an HTTP 404

Hello everyone.. So i'm pretty new to lync and I'm trying to deploy in my company.   Currently i have it working internally just fine, however, the external part im having all sorts of issues.    i've followed some troubleshooting steps but i cant seem to be getting anywhere... so i was wondering if anyone could help.  

currently i have a FE server and an Edge server.   When i try the remote connection test i get the following error at the end.

Testing HTTP authentication methods for URL https://lyncdiscover.domain.org/Autodiscover/AutodiscoverService.svc/root/user.

HTTP authentication test failed.

Additional Details
  A Web exception occurred because an HTTP 404 - NotFound response was received from Unknown.HTTP Response Headers:
Content-Length: 1541
Cache-Control: private
Content-Type: text/html; charset=utf-8
Server: Microsoft-IIS/7.5
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET,ARR/2.5,ASP.NET
Date: Thu, 31 Jul 2014 19:33:03 GMT Elapsed Time: 170 ms.


I tried going to https://lyncdiscover.domain.org   and i get the following error:
server error  in "/" application

The resources canno be found.

description:   http 404. the resource you are looking for  (or one of its dependecies( could have been removed, had its name changed or is temporary unavailable ... etc

Requested URL: /autodiscover/autodiscoverservice.svc/root

my browser is validating he certificate as the https is green.    I dont know if it could be an issue with the RP? or just the site.  I'm using the IISARR as my reverse proxy and followed the steps on hte link below to set it up

http://blogs.technet.com/b/nexthop/archive/2013/02/19/using-iis-arr-as-a-reverse-proxy-for-lync-server-2013.aspx

I checked the mobility config adn the exposedwebURL is set to external.    

Thanks in advance for any help! 



  • Edited by Red Fury Thursday, July 31, 2014 7:55 PM
July 31st, 2014 10:54pm

What do you get in a web browser when you browse to https://lyncdiscover.domain.org/Autodiscover/AutodiscoverService.svc?

Have you published 80 -> 8080 and 443 -> 4443 then added as a server? This can easily be missed. In the doc you reference see figure 4 - make sure you selected "Add" before "Finish"

You can test the external site from internal by adding :4443 on the end of the URL e.g. https://lyncdiscover.domain.org:4443. Does that work?

Free Windows Admin Tool Kit Click here and download it now
August 1st, 2014 3:52am

Hello Andrew, i tried both testing from internal and external and i got the same thing as shown below.  Yes, i have the RP ( IISARR2.5) doing the ports forwarding as shown in the doc.   

Server Error in '/' Application.

August 1st, 2014 11:12am

Here's the complete connectivity test

Testing connectivity to the Lync Autodiscover Web Service server for a secure connection on port 443 to obtain the root token.

Connectivity to the Lync Autodiscover Web Service test failed.

https://testconnectivity.microsoft.com/Images/Minus.gif

Additional Details

 

Elapsed Time: 933 ms.

https://testconnectivity.microsoft.com/Images/Minus.gif

Test Steps

 

https://testconnectivity.microsoft.com/Images/Error.png

Attempting to test Autodiscover Web Service URL https://lyncdiscover.domain.org/Autodiscover/AutodiscoverService.svc/root.

 

Autodiscover Web Service URL can't be contacted due to failure of the following tests:

 

https://testconnectivity.microsoft.com/Images/Minus.gif

Additional Details

 

Elapsed Time: 914 ms.

 

https://testconnectivity.microsoft.com/Images/Minus.gif

Test Steps

 

https://testconnectivity.microsoft.com/Images/Success.png

Attempting to resolve the host name lyncdiscover.domain.org in DNS.

 

The host name resolved successfully.

 

https://testconnectivity.microsoft.com/Images/Minus.gif

Additional Details

 

IP addresses returned: xx.xx.xx.108

Elapsed Time: 390 ms.

https://testconnectivity.microsoft.com/Images/Success.png

Testing TCP port 443 on host lyncdiscover.domain.org to ensure it's listening and open.

 

The port was opened successfully.

 

https://testconnectivity.microsoft.com/Images/Minus.gif

Additional Details

 

Elapsed Time: 71 ms.

https://testconnectivity.microsoft.com/Images/Success.png

Testing the SSL certificate to make sure it's valid.

 

The certificate passed all validation requirements.

 

https://testconnectivity.microsoft.com/Images/Minus.gif

Additional Details

 

Elapsed Time: 253 ms.

 

https://testconnectivity.microsoft.com/Images/Minus.gif

Test Steps

 

https://testconnectivity.microsoft.com/Images/Success.png

The Microsoft Connectivity Analyzer is attempting to obtain the SSL certificate from remote server lyncdiscover.eldercarealliance.org on port 443.

 

The Microsoft Connectivity Analyzer successfully obtained the remote SSL certificate.

 

https://testconnectivity.microsoft.com/Images/Minus.gif

Additional Details

 

Remote Certificate Subject: CN=lync-access.domain.org, OU=Domain Control Validated, Issuer: CN=Go Daddy Secure Certificate Authority - G2, OU=http://certs.godaddy.com/repository/, O="GoDaddy.com, Inc.", L=Scottsdale, S=Arizona, C=US.

Elapsed Time: 198 ms.

https://testconnectivity.microsoft.com/Images/Success.png

Validating the certificate name.

 

The certificate name was validated successfully.

 

https://testconnectivity.microsoft.com/Images/Minus.gif

Additional Details

 

Host name lyncdiscover.eldercarealliance.org was found in the Certificate Subject Alternative Name entry.

Elapsed Time: 1 ms.

https://testconnectivity.microsoft.com/Images/Success.png

Testing the certificate date to confirm the certificate is valid.

 

Date validation passed. The certificate hasn't expired.

 

https://testconnectivity.microsoft.com/Images/Minus.gif

Additional Details

 

The certificate is valid. NotBefore = 7/14/2014 4:45:49 PM, NotAfter = 6/11/2017 11:03:26 PM

Elapsed Time: 0 ms.

https://testconnectivity.microsoft.com/Images/Error.png

Testing HTTP authentication methods for URL https://lyncdiscover.domain.org/Autodiscover/AutodiscoverService.svc/root/user.

 

HTTP authentication test failed.

 

https://testconnectivity.microsoft.com/Images/Minus.gif

Additional Details

 

A Web exception occurred because an HTTP 404 - NotFound response was received from Unknown.HTTP Response Headers: Content-Length: 1541 Cache-Control: private Content-Type: text/html; charset=utf-8 Server: Microsoft-IIS/7.5 X-AspNet-Version: 2.0.50727 X-Powered-By: ASP.NET,ARR/2.5,ASP.NET Date: Thu, 31 Jul 2014 19:33:03 GMT

Elapsed Time: 170 ms.

Free Windows Admin Tool Kit Click here and download it now
August 1st, 2014 12:40pm

What do you get in a web browser when you browse to https://lyncdiscover.domain.org/Autodiscover/AutodiscoverService.svc?

Have you published 80 -> 8080 and 443 -> 4443 then added as a server? This can easily be missed. In the doc you reference see figure 4 - make sure you selected "Add" before "Finish"

You can test the external site from internal by adding :4443 on the end of the URL e.g. https://lyncdiscover.domain.org:4443. Does that work?

August 1st, 2014 3:02pm

Hi greg, thanks for the input.   I am not able to browse to http://ServerFQDN.domain.corp:8080/Autodiscover/AutodiscoverService.svc/root .. i get the same error.  The interesting thing is that internally the mobility is also not working now after i created a new topology..  Also, i went to the FE server's IIS and i dont see the "autodiscover" site in it.     could that be the issue? 


here's the error for :http://ServerFQDN.domain.corp:8080/Autodiscover/AutodiscoverService.svc/root

The resource cannot be found.

Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly.



Requested URL: /Autodiscover/AutodiscoverService.svc/root

---------------------------------------------------------------------------------------------------

Update!  I re-published the topology and then ran the setup or remove components wizard and then tried going to  http://lyncdiscover.domain.org i get a file download with the following message in it:

{"Root":{"Links":[{"href":"https:\/\/fqdn.domain.local\/Autodiscover\/AutodiscoverService.svc\/root?sipuri=","token":"Redirect"}]}}

if i go to https://lyncdiscover.domain.org/ i get prompted to download the file but it gives me an error that the file cannot be downloaded because the site is unavailable or cannot be found

After that i tried connecting internally and the mobile .. got prompted to install the cert and then the client just kept cycling trying to connect to the server a few times and then it said that the server was not found.. could it be a DNS issue at this point?






  • Edited by Red Fury Monday, August 04, 2014 7:43 PM
Free Windows Admin Tool Kit Click here and download it now
August 4th, 2014 7:53pm

Andrew, yes .. i did all the DNS entries as you recommended on your page.   When i browse from the phone to the lyncdiscover i dont get any errors..  when i do it externally, it shows the webservice.domain.org discovery and i connect to our wifi it shows the FE fqdn.

This is what i get from the remote connectivity, i assume that this issue might be related to the edge server. the cert has the lync-access.domain.org as SAN which is the external edge pool

Testing remote connectivity for user eborjas@eldercarealliance.org to the Microsoft Lync server. it almost look like the cert is not binded to port 443.. I assume that it should be binded to 4443, but im not sure how to bind the cert to the port without IIS in the edge server.
  Specified remote connectivity test(s) to Microsoft Lync server failed. See details below for specific failure reasons.
 
Additional Details
  Elapsed Time: 6253 ms.
 
Test Steps
 
Attempting to resolve the host name lync-access.domain.org in DNS.
  The host name resolved successfully.
 
Additional Details
  IP addresses returned: 72.18.240.222 Elapsed Time: 200 ms.
Testing TCP port 443 on host lync-access.domain.org to ensure it's listening and open.
  The port was opened successfully.
 
Additional Details
  Elapsed Time: 168 ms.
Testing the SSL certificate to make sure it's valid.
  The SSL certificate failed one or more certificate validation checks.
 
Additional Details
  Elapsed Time: 5575 ms.
 
Test Steps
 
The Microsoft Connectivity Analyzer is attempting to obtain the SSL certificate from remote server lync-access.eldercarealliance.org on port 443.
  The Microsoft Connectivity Analyzer wasn't able to obtain the remote SSL certificate.
 
Additional Details
  The certificate couldn't be validated because SSL negotiation wasn't successful. This could have occurred as a result of a network error or because of a problem with the certificate installation.

Elapsed Time: 5532 ms.



  • Edited by Red Fury Tuesday, August 05, 2014 9:05 PM
August 6th, 2014 12:04am

Greg, thank you for the reply. I'm not having issues with the RP..  Currently i do have the lyncdiscover pointing to the reverse proxy.. I am not having issues with the lyncdiscover at the moment..  currently PC's area able to login remotely without any issues, only Phone are the ones not bieing able to connect.      I do have a SAN cert on the reverse proxy with all the requirements listed on the kb u referenced to.  I am using that same public cert on the edge server.. you are saying that i should use a different one? 

The lync-access.elder.org contains the following SANs:

lync-access.domain.org

lyncdiscover.domain.org

lync.domain.com    ( im using the meet and dialin as "lync.domain.org/meet, lync.domain.org/dialin" ) to save $ on the cert and keep it at 5 SANs)

The issue that i'm having is with the edge server, Should i create a farm to point point that to the edge server in the RP?

the xx.18.240.222 address points to the edge server with the pool name lync-access.domain.org ..  the lyncdiscover, lync.domain and webservice all point to the reverse proxy which is a different IP .. 50.xx.xx.xx.  

This is what i get when i run the "get-csservice -webserver | fl autodiscover*


AutodiscoverServiceExternalUri : https://webservice.domain.org/Autod
                                 iscover/AutodiscoverService.svc/root
AutodiscoverServiceInternalUri : https://fefdn/Autodiscover/Autodisc
                                 overService.svc/root

Those are the correct sites.

Thanks for your help!!



  • Edited by Red Fury Wednesday, August 06, 2014 8:31 PM update
Free Windows Admin Tool Kit Click here and download it now
August 6th, 2014 6:21pm

Hello greg..  So, i did the check and the port is listening..  but i'm not sure why it keeps picking up the internal edge cert instead of the public cert. i have my firewall translating 443 to 4443 for the edge server.. and  I have a IISARR doing reverse proxy for the FE server ..  I'm assuming at this point could be a routing issue ..  Do you know if there is a way to check to which port the certs are binded to without IIS ?    I did a netsh http show sslcert and it got me the internal cert binded to 4443


SSL Certificate bindings:
-------------------------

    IP:port                 : 0.0.0.0:4443
    Certificate Hash        : xxxxxxxxxxxxxxxxxxxxdf948e6078a0338a74
    Application ID          : {00000000-0000-0000-0000-000000000000}
    Certificate Store Name  : (null)
    Verify Client Certificate Revocation    : Disabled
    Verify Revocation Using Cached Client Certificate Only    : Disabled
    Usage Check    : Disabled
    Revocation Freshness Time : 0
    URL Retrieval Timeout   : 0
    Ctl Identifier          : (null)
    Ctl Store Name          : (null)
    DS Mapper Usage    : Disabled
    Negotiate Client Certificate    : Enabled

  • Edited by Red Fury 17 hours 11 minutes ago
August 12th, 2014 12:57pm

Just related to the internal cert showing up instead of the external on lync-access.domain.org (and I can confirm that's what I am seeing for your Edge). This is often a result when the internal and external interfaces are not clearly isolated. I have seen that for both network and DNS related issues. For example does lync-access.domain.org and\or sip.domain.org resolve internally to the internal IP of the Edge, cause it should  not.
Free Windows Admin Tool Kit Click here and download it now
August 12th, 2014 3:11pm

PAul, when i ping lync-access.doamin.org from the reverse proxy server it does resolve to the internal IP ..  i'm pretty sure i have a the external interface on the DMZ with the gateway and the internal interface without a gateway..  

So, you are saying that i should take a 2nd look at the DMZ and make sure that is segregated from the internal network?    in my internal DNS, should lync-access(sip.domain.org)  be resolving the the DMZ ip or to the public IP? 


  • Edited by Red Fury 13 hours 45 minutes ago
August 12th, 2014 4:59pm

You need to make sure the internal facing is just that, no resolving external IP's to internal names and so on. The same goes for the external facing side. 
Free Windows Admin Tool Kit Click here and download it now
August 12th, 2014 5:12pm

I went ahead and disabled one interface at the time.. i ping lync-access .. when the internal was disabled it came back with unable to find the host ... when i disabled the internal and enabled the external i was able to resolve to the external public IP..  is that what i should be getting?
August 12th, 2014 5:19pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics