locked
Object reference not set to an instance of an object. (After SQL reinstall) RRS feed

  • Question

  • We have partially recovered from a situation where our CRM 4 Database (SQL 2008 RC0) trial expired on us. The RC0 version was uninstalled and we are now running SQL 2008 STD with our restored CRM database; CRM is all ok with the exception of reports, none of which run and all of which give the above error: Object reference not set to an instance of an object.

     

    When running diagnostic tool on the Report Server the log file is all healthy until the following:

     

    ----------------SRS Data Connector Installed Files----------------
    Error:                                             System.ArgumentNullException: Value cannot be null.
    Parameter name: path
       at System.IO.DirectoryInfo..ctor(String path)
       at CrmDiagTool4.Form1.WriteSRSConnectInstalledFiles(StreamWriter sw)
    ----------------ReportServer Configuration----------------
    [Error............................]:    at System.Management.ManagementScope.Initialize()
       at CrmDiagTool4.WMIHelper.GetWMIPropCollection(String strWMINameSpace, String strWMIClass)
    ----------------RSReportServer.config file content----------------
    Error:                                             System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
       at System.ThrowHelper.ThrowKeyNotFoundException()
       at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
       at CrmDiagTool4.Form1.get_ReportServerDirectory()
       at CrmDiagTool4.Form1.WriteRSReportServerConfigFile(StreamWriter sw)
    ----------------RSSrvPolicy.config file content----------------
    Error:                                             System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
       at System.ThrowHelper.ThrowKeyNotFoundException()
       at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
       at CrmDiagTool4.Form1.get_ReportServerDirectory()
       at CrmDiagTool4.Form1.WriteRSSrvPolicyConfigFile(StreamWriter sw)
    ----------------ReportManager Configuration----------------
    [Error............................]:    at System.Management.ManagementScope.Initialize()
       at CrmDiagTool4.WMIHelper.GetWMIPropCollection(String strWMINameSpace, String strWMIClass)
    ----------------RSWebApplication.config file content----------------
    Error:                                             System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
       at System.ThrowHelper.ThrowKeyNotFoundException()
       at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
       at CrmDiagTool4.Form1.get_ReportManagerDirectory()
       at CrmDiagTool4.Form1.WriteRSWebApplicationConfigFile(StreamWriter sw)
    ----------------------------SrsDataConnectorSetup.log Content----------------------------
    [>ROOT Directory currently scanned...............]: C:\Users\administrator.CDSOFFICE\AppData\Roaming\Microsoft\MSCRM\Logs

     

    We are quite stuck on this so thanks in advance for any assistance.

     

     

    Thursday, January 29, 2009 11:37 PM

Answers

  • Uninstall/reinstall the srs data connector.  Then it should work.
    Monday, April 13, 2009 1:30 AM
    Moderator