Erro testando Outlook Anywhere no PowerShell

 

O Exchange dispõe de dois conjuntos de ferramentas ótimas para testar conectividade interna e externa. As ferramentas abaixo apresentadas estão disponíveis no Exchange 2010 SP1, mas provavelmente muitas delas funcionam também na versão do Exchange 2007.

1º) Exchange Management Console –> Toolbox –> Remote Connectivity Analyzer

2º) Exchange Management Shell

a) Test-WebServicesConnectivity

CasServer  LocalSite     Scenario        Result  Latency(MS) Error
———  ———     ——–        ——  ———– —–
servidor  PortoAlegre   GetFolder       Success      535.14
servidor  PortoAlegre   SyncFolderItems Success      552.12
servidor  PortoAlegre   CreateItem      Success     1391.77
servidor  PortoAlegre   SyncFolderItems Success      232.63
servidor  PortoAlegre   DeleteItem      Success      180.71
servidor  PortoAlegre   SyncFolderItems Success     1391.77

b) Test-OutlookWebServices

RunspaceId : b70c533e-3496-4820-9f41-5637fa97551f
Id         : 1019
Type       : Information
Message    : A valid Autodiscover service connection point was found. The Autodiscover URL on this object is https://servidor.dominio.com.br/Autodiscover/Autodiscover.xml.

RunspaceId : b70c533e-3496-4820-9f41-5637fa97551f
Id         : 1006
Type       : Information
Message    : Contacted the Autodiscover service at https://servidor.dominio.com.br/Autodiscover/Autodiscover.xml.

c) Test-OwaConnectivity

ClientAccessServer MailboxServer URL Scenario Result Latency (ms)
servidor.domini… servidor…. https://servidor.dominio.c... Logon    Success 1251.37

d) Test-OutlookConnectivity -RpcProxyTestType:Internal -RpcTestType:server

No Exchange 2010 com Service Pack 1 provavelmente este comando deve retornar o erro “RpcProxy::VerifyRpcProxy.           Failure”

No Event Viewer aparecerá:

Log Name:      Application
Source:        ASP.NET 2.0.50727.0
Date:          3/23/2011 1:19:58 AM
Event ID:      1310
Task Category: Web Event
Level:         Warning
Keywords:      Classic
User:          N/A
Computer:      servidor.dominio.com.br
Description:
Event code: 3008
Event message: A configuration error has occurred.
Event time: 3/23/2011 1:19:58 AM
Event time (UTC): 3/23/2011 4:19:58 AM
Event ID: 95dae4ed0d784e66b260cf612f4391b1
Event sequence: 1
Event occurrence: 1
Event detail code: 0

Application information:
    Application domain: /LM/W3SVC/1/ROOT/Rpc-2-129453275980289751
    Trust level: Full
    Application Virtual Path: /Rpc
    Application Path: C:\Windows\System32\RpcProxy\
    Machine name: Servidor
Process information:
    Process ID: 7136
    Process name: w3wp.exe
    Account name: IIS APPPOOL\DefaultAppPool

Exception information:
    Exception type: ConfigurationErrorsException
    Exception message: Could not load file or assembly ‘WindowsLiveID, Version=0.0.0.0, Culture=neutral, PublicKeyToken=283dd9fa4b2406c5’ or one of its dependencies. The system cannot find the file specified.

Request information:
    Request URL: https://servidor.dominio.com.br:443/rpc/RpcProxy.dll
    Request path: /rpc/RpcProxy.dll
    User host address: fe80::4942:2379:a7ab:990bC:\Windows\System32\RpcProxy\
    User: 
    Is authenticated: False
    Authentication Type: 
    Thread account name: IIS APPPOOL\DefaultAppPool

Thread information:
    Thread ID: 1
    Thread account name: IIS APPPOOL\DefaultAppPool
    Is impersonating: False
    Stack trace:    at System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase)
   at System.Web.Configuration.Common.ModulesEntry..ctor(String name, String typeName, String propertyName, ConfigurationElement configElement)
   at System.Web.HttpApplication.BuildIntegratedModuleCollection(List`1 moduleList)
   at System.Web.HttpApplication.GetModuleCollection(IntPtr appContext)
   at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers)
   at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context)
   at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)
   at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)
 

Custom event details:

Event Xml:
<Event xmlns=”http://schemas.microsoft.com/win/2004/08/events/event”>
  <System>
    <Provider Name=”ASP.NET 2.0.50727.0″ />
    <EventID Qualifiers=”32768″>1310</EventID>
    <Level>3</Level>
    <Task>3</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime=”2011-03-23T04:19:58.000000000Z” />
    <EventRecordID>31514</EventRecordID>
    <Channel>Application</Channel>
    <Computer>servidor.dominio.com.br</Computer>
    <Security />
  </System>
  <EventData>
    <Data>3008</Data>
    <Data>A configuration error has occurred.</Data>
    <Data>3/23/2011 1:19:58 AM</Data>
    <Data>3/23/2011 4:19:58 AM</Data>
    <Data>95dae4ed0d784e66b260cf612f4391b1</Data>
    <Data>1</Data>
    <Data>1</Data>
    <Data>0</Data>
    <Data>/LM/W3SVC/1/ROOT/Rpc-2-129453275980289751</Data>
    <Data>Full</Data>
    <Data>/Rpc</Data>
    <Data>C:\Windows\System32\RpcProxy\</Data>
    <Data>POA-SRV23</Data>
    <Data>
    </Data>
    <Data>7136</Data>
    <Data>w3wp.exe</Data>
    <Data>IIS APPPOOL\DefaultAppPool</Data>
    <Data>ConfigurationErrorsException</Data>
    <Data>Could not load file or assembly ‘WindowsLiveID, Version=0.0.0.0, Culture=neutral, PublicKeyToken=283dd9fa4b2406c5’ or one of its dependencies. The system cannot find the file specified.</Data>
    <Data>https://mail.dominio.com.br:443/rpc/RpcProxy.dll</Data>
    <Data>/rpc/RpcProxy.dll</Data>
    <Data>fe80::4942:2379:a7ab:990b%12</Data>
    <Data>
    </Data>
    <Data>False</Data>
    <Data>
    </Data>
    <Data>IIS APPPOOL\DefaultAppPool</Data>
    <Data>1</Data>
    <Data>IIS APPPOOL\DefaultAppPool</Data>
    <Data>False</Data>
    <Data>   at System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase)
   at System.Web.Configuration.Common.ModulesEntry..ctor(String name, String typeName, String propertyName, ConfigurationElement configElement)
   at System.Web.HttpApplication.BuildIntegratedModuleCollection(List`1 moduleList)
   at System.Web.HttpApplication.GetModuleCollection(IntPtr appContext)
   at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers)
   at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context)
   at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)
   at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)
</Data>
  </EventData>
</Event>

 

Solução:

Alterar o método de autenticação do Outlook Anywhere (Server Configuration –> Properties do servidor –> Outlook Anywhere) de auto negociação (Negotiate Ex authentication) para NTLM (NTLM authentication) ou Basic (Basic authentication) e reiniciar o IIS utilizando o comando IISReset.

image

Mensagem que deve aparecer no Event Viewer após a alteração.

Log Name:      Application
Source:        RPC Proxy
Date:          3/23/2011 1:21:44 AM
Event ID:      4
Task Category: (1)
Level:         Information
Keywords:      Classic
User:          N/A
Computer:      servidor.dominio.com.br
Description:
RPC Proxy successfully loaded in Internet Information Services (IIS).
Event Xml:
<Event xmlns=”http://schemas.microsoft.com/win/2004/08/events/event”>
  <System>
    <Provider Name=”RPC Proxy” />
    <EventID Qualifiers=”16384″>4</EventID>
    <Level>4</Level>
    <Task>1</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime=”2011-03-23T04:21:44.000000000Z” />
    <EventRecordID>31519</EventRecordID>
    <Channel>Application</Channel>
    <Computer>servidor.dominio.com.br</Computer>
    <Security />
  </System>
  <EventData>
  </EventData>
</Event>

Esse post foi publicado em Exchange Server. Bookmark o link permanente.

Deixe uma resposta

Preencha os seus dados abaixo ou clique em um ícone para log in:

Logotipo do WordPress.com

Você está comentando utilizando sua conta WordPress.com. Sair / Alterar )

Imagem do Twitter

Você está comentando utilizando sua conta Twitter. Sair / Alterar )

Foto do Facebook

Você está comentando utilizando sua conta Facebook. Sair / Alterar )

Foto do Google+

Você está comentando utilizando sua conta Google+. Sair / Alterar )

Conectando a %s