SOLUTION: HTTP 405 Error. Lync Client EWS Not Enabled. No meeting Icon on Lync Client

Applies to Exchange 2010 and Lync 2013 Desktop Client

Problem:
All Exchange autodiscovery settings are OK. (Exchange 2010 Autodiscover virtual directory settings, DNS, SSL certificate on CAS server, SANs for autodiscover.sipdomain.com etc). But you still cannot see conversation  history in  Lync 2013 Desktop . Also cannot see meeting icon in Lync 2013 Desktop client. (those features available via Exchange Web Services)

Symptoms:
Also If you check Lync Client configuration (ctrl+right click lync icon on notification area + Configuration Information) you noticed that EWS status is not OK and EWS Internal URL and EWS External URL values are empty.

In Exchange CAS Server IIS logs:
If Lync 2013 Client  exits and signs in you see that client first access (by GET method) /autodiscover/autodiscover.xml
but then you got the following:

14-07-18 07:05:05 10.113.200.70 POST /autodiscover/autodiscover.svc – 443 – 10.10.20.43 OC/15.0.4551.1005+(Microsoft+Lync) 405 0 64 0

HTPP 405 error code means Method not allowed. It is clear that client cannot POST data using autodiscover.svc file.

Cause:
Missing handler mapping *.svc in IIS on Exchange 2010 CAS Server that is pointed by autodiscover.sipdomain.com.

Resolution 1:
1-On Exchange 2010 CAS Server start IIS Management console
2-select Autodiscover virtual directory and double click Handler Mappings.
You see that svc-Integrated *.svc entry is missing
3- click add manged Handler and enter:

Requested Path:
*.svc

Type:
System.ServiceModel.Activation.HttpHandler, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

Name:
svc-Integrated
Leave the request Restrictions default. (I just copied this handler from another correctly working Exchange 2010 CAS Server.

IISHandler

4-Click OK. and run IISreset
5-Exit and sign in Lync 2013 client now you should see Meeting icon and Conversation History. Also you can see EWS Internal URL and EWS External URL values are now points to CAS servers. (You may need to wait for 10-20 seconds)

Resolution 2:
An alternative solution is to add the following entry in C:\Windows\system32\inetsrv\config\applicationHost.config file and run IIS reset

<add name=”svc-Integrated” path=”*.svc” verb=”*” type=”System.ServiceModel.Activation.HttpHandler, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089″ preCondition=”integratedMode” />

then Exit and sign in Lync 2013 client

Advertisements
Gallery | This entry was posted in Exchange Server, Lync 2013 and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s