locked
[On Premise] [CrmSvcUtil.exe] Exiting program with exception: Object reference not set to an instance of an object. RRS feed

  • Question

  • Hello,

    I am trying to generate the early bound type class and I am getting an error message.  I was able to generate this file before but I think that a network change or server change was made that I am not aware of. 

    This is a MS CRM 2011 On Premise install.  (IFD is not setup yet.)

    Version: 5.0.9690.3731

    The AD domain controllers, CRMDEV, and my dev box all have the same time and time zone set.

    I am using the CrmSvcUtil.exe from the newest version of the SDK I could find.

    Here are the parameters I am running with CrmSvcUtil.exe on the command line.

    /out:Xrm.cs
    /url:http://crmdev/MyOrgNameIsHere/XRMServices/2011/Organization.svc
    /domain:MyDomainName
    /username:MyUserName
    /password:MyPassword 
    /namespace:Xrm
    /serviceContextName:XrmServiceContext 

    Here is what I have in the Config File for CrmSvcUtil.exe:

    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
      <system.diagnostics>
        <trace autoflush="false" indentsize="4">
          <listeners>
            <add name="configConsoleListener" type="System.Diagnostics.ConsoleTraceListener">
              <filter type="System.Diagnostics.EventTypeFilter" initializeData="Error" />
            </add>
          </listeners>
        </trace>
      </system.diagnostics>
    </configuration>

    Here are the results when I run the same command that did work for me a week ago.

    CrmSvcUtil : CRM Service Utility [Version 5.0.9690.3448]
    c 2011 Microsoft Corporation.  All rights reserved.


    Exiting program with exception: Object reference not set to an instance of an object.
    Enable tracing and view the trace files for more information.
    CrmSvcUtil.exe Error: 0 : Exiting program with exit code 2 due to exception : System.NullReferenceException: Object reference not set to an instance of an object.
       at Microsoft.Crm.Services.Utility.SdkMessages.Fill(ResultSet resultSet)
       at Microsoft.Crm.Services.Utility.SdkMessages.FromFetchResult(SdkMessages messages, String xml)
       at Microsoft.Crm.Services.Utility.SdkMetadataProviderService.RetrieveSdkRequests(IOrganizationService service)
       at Microsoft.Crm.Services.Utility.SdkMetadataProviderService.Microsoft.Crm.Services.Utility.IMetadataProviderService.LoadMetadata()
       at Microsoft.Crm.Services.Utility.CrmSvcUtil.Run()
       at Microsoft.Crm.Services.Utility.CrmSvcUtil.Main(String[] args)

    Ideas?

    Thanks,

    Cory


    Wednesday, November 20, 2013 10:36 PM