locked
test-outlookwebservices crashes

    Question

  • I have an exchange 2007 sp1 server with rollup 5 installed that has the hub, cas and mailbox role all on one machine.  When I run test-outlookwebservices to verify my setup is working, test-outlookwebservices crashes part of the way through after displaying the following:

    [PS] C:\Windows\System32>test-outlookwebservices | fl


    Id      : 1003
    Type    : Information
    Message : About to test AutoDiscover with the e-mail address ex2007test@mydomain.com
             

    Id      : 1007
    Type    : Information
    Message : Testing server myserver.mydomain.local with the published name https:/
              /myserver.mydomain.local/EWS/Exchange.asmx & https://myserver.mydomain.com/
              /EWS/Exchange.asmx.

    Id      : 1019
    Type    : Information
    Message : Found a valid AutoDiscover service connection point. The AutoDiscover
               URL on this object is https://myserver.mydomain.local/Autodiscover/Au
              todiscover.xml.

    Id      : 1006
    Type    : Information
    Message : The Autodiscover service was contacted at https://myserver.mydomain.lo
              cal/Autodiscover/Autodiscover.xml.

    WARNING: An unexpected error has occurred and debug information is being
    generated: Object reference not set to an instance of an object.
    Test-OutlookWebServices : Object reference not set to an instance of an object.
    At line:1 char:24
    + test-outlookwebservices  <<<< | fl

    The application event log normally shows the following event:

    Event ID 4999
    Level: Error

    Watson report about to be sent to dw20.exe for process id: 7868, with parameters: E12, c-RTL-AMD64, 08.01.0240.006, powershell, M.E.Management, M.E.M.S.AvailabilityTest.Validate, System.NullReferenceException, 4ab8, 08.01.0336.000. ErrorReportingEnabled: False

    Is there anyway to figure out what is causing test-outlookwebservices to crash?

    When I test the autodiscovery service from a machine with Outlook 2007 on it, it reports back that everything has passed.

    Steve



    Wednesday, January 7, 2009 10:30 PM

Answers

All replies

  • Hi Steve,

    This looks know issue with .Net and Exchange 2007 and it was reported here.

    You need to apply updates of .Net according to version you have installed on Exchange server. 

    Similar thread you like to go through...

    An update for the .NET Framework 3.5 Service Pack 1 is available

    Amit Tank | MVP - Exchange | MCITP:EMA MCSA:M | http://ExchangeShare.WordPress.com
    • Marked as answer by sjbauer Friday, January 9, 2009 4:21 PM
    Thursday, January 8, 2009 8:32 AM
  • For your reference:
     
    Outlook 2007 crashes after you install a package that contains the .NET Framework 3.5 with SP1 and the .NET Framework 2.0 with SP2 on an Exchange 2007 Client Access server

    http://support.microsoft.com/kb/958934

    Regards,
    Xiu

    • Marked as answer by sjbauer Friday, January 9, 2009 4:21 PM
    Thursday, January 8, 2009 8:39 AM
  • Thank you.  This solved the problem that we were having!

    Steve
    Friday, January 9, 2009 4:22 PM
  • This problem exhibits itself on Exchange 2010 as well - even after the application of the above fixes.

    Does anyone have other ideas?
    Sunday, March 7, 2010 3:22 PM
  • Additional information :

    Windows Server 2008 R2 Enterprise
    Exchange 2010 (build 639.21)
    .NET Framework 3.5.1

    PowerShell output:

    [PS] C:\>Test-OutlookWebServices jim.kirk@contoso.com
    WARNING: An unexpected error has occurred and a Watson dump is being generated: Object reference not set to an instance
     of an object.
    Object reference not set to an instance of an object.
        + CategoryInfo          : NotSpecified: (:) [Test-OutlookWebServices], NullReferenceException
        + FullyQualifiedErrorId : System.NullReferenceException,Microsoft.Exchange.Management.SystemConfigurationTasks.Tes
       tOutlookWebServicesTask

    The Application log reports two errors:

    1)
    Log Name:      Application
    Source:        MSExchange Common
    Date:          3/8/2010 9:05:56 AM
    Event ID:      4999
    Task Category: General
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      NODEA.fabrikam.local
    Description:
    Watson report about to be sent for process id: 4648, with parameters: E12IIS, c-RTL-AMD64, 14.00.0639.021, RemotePowershell, M.Exchange.Management, M.E.M.S.TestOutlookWebServicesTask.InternalProcessRecord, System.NullReferenceException, 44cd, 14.00.0639.021.
    ErrorReportingEnabled: False
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="MSExchange Common" />
        <EventID Qualifiers="16388">4999</EventID>
        <Level>2</Level>
        <Task>1</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2010-03-08T15:05:56.000000000Z" />
        <EventRecordID>2894</EventRecordID>
        <Channel>Application</Channel>
        <Computer>NODEA.fabrikam.local</Computer>
        <Security />
      </System>
      <EventData>
        <Data>4648</Data>
        <Data>E12IIS</Data>
        <Data>c-RTL-AMD64</Data>
        <Data>14.00.0639.021</Data>
        <Data>RemotePowershell</Data>
        <Data>M.Exchange.Management</Data>
        <Data>M.E.M.S.TestOutlookWebServicesTask.InternalProcessRecord</Data>
        <Data>System.NullReferenceException</Data>
        <Data>44cd</Data>
        <Data>14.00.0639.021</Data>
        <Data>False</Data>
        <Data>
        </Data>
      </EventData>
    </Event>

    Log Name:      Application
    Source:        MSExchange Configuration Cmdlet - Remote Management
    Date:          3/8/2010 9:05:57 AM
    Event ID:      8
    Task Category: General
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      NODEA.fabrikam.local
    Description:
    (PID 4648, Thread 11) Task Test-OutlookWebServices throwing unhandled exception when processing record of index 0. Exception: System.NullReferenceException: Object reference not set to an instance of an object.
       at Microsoft.Exchange.Management.SystemConfigurationTasks.TestOutlookWebServicesTask.InternalProcessRecord()
       at Microsoft.Exchange.Configuration.Tasks.Task.ProcessRecord()
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="MSExchange Configuration Cmdlet - Remote Management" />
        <EventID Qualifiers="49152">8</EventID>
        <Level>2</Level>
        <Task>1</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2010-03-08T15:05:57.000000000Z" />
        <EventRecordID>2895</EventRecordID>
        <Channel>Application</Channel>
        <Computer>NODEA.fabrikam.local</Computer>
        <Security />
      </System>
      <EventData>
        <Data>4648</Data>
        <Data>11</Data>
        <Data>Test-OutlookWebServices</Data>
        <Data>0</Data>
        <Data>System.NullReferenceException: Object reference not set to an instance of an object.
       at Microsoft.Exchange.Management.SystemConfigurationTasks.TestOutlookWebServicesTask.InternalProcessRecord()
       at Microsoft.Exchange.Configuration.Tasks.Task.ProcessRecord()</Data>
        <Data>{8152234e-bb53-46b8-93d7-3ec61fb409e3}</Data>
      </EventData>
    </Event>

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

    All of the fixes mentioned above have been applied to this machine. The crash is still consistently reproducable.

    Monday, March 8, 2010 3:47 PM