CrmSvcUtil error: An error occurred when verifying security for the message


  • I am trying to generate .NET classes using crmsvcutil but I am getting the following error:

    Exiting program with exception: An error occurred when verifying security for the message.
    Enable tracing and view the trace files for more information.

    Command=crmsvcutil /url:http://dev02:5555/dev/xrmservices/2011/organization.svc /out:out.vb /username:crmadmin /password:!!!!!!! /namespace:MyCompany.CRM.DEV /language:vb

    CRM 2011 On-Premise
    No SSL, No Claims or IFD configured at this time
    Running command from a Win7 64-bit PC connected via a VPN connection
    VPN username is a CRM user in the System Administrator role
    PC is a member of a domain (not a workgroup PC) but is not a member of the CRM domain
    I can access CRM itself without any issues


    Wednesday, March 23, 2011 12:01 AM


All replies

  • I have dealt with this one before.  Verify the Time and Date settings (including timezones) are set correctly on both the server and your client machine.  It seems that if the two machines are out of sync by more than a minute or two it will cause this problem.

    On my client machine I had to restart Visual Studio also for some reason after I set the server clock to get it to connect up properly.

    Here is a blogpost that illustrates this also.



    Jamie Miley
    Linked-In Profile
    Follow Me on Twitter!

    • Proposed as answer by Jamie MileyModerator Wednesday, March 23, 2011 2:18 PM
    • Marked as answer by hgjg Tuesday, March 29, 2011 7:12 PM
    Wednesday, March 23, 2011 2:17 PM
  • The time on my workstation was off by about 5:00 minutes.  Once I sync'd them all was well.


    Tuesday, March 29, 2011 7:14 PM
  • hi


    I am using online CRM 2011. I am able set time zone as same as in my PC. But what about time in cRM online? How do i check and set over there?


    Please let me know ..






    Wednesday, September 28, 2011 5:06 AM
  • I don't believe this resolution applies to CRM On-Line, only On-Premise. CRM On-Line uses Windows Live ID's, plus there is no access to any backend components.
    Wednesday, September 28, 2011 5:59 AM
  • you need to set the internet time as time.windows.com in your client computer

    to do that

    control panel -> Date and Time -> internet time -> change setting -> set server time as time.windows.com

    If you find this post helpful then please "Vote as Helpful" and "Mark As Answer". Thanks and Regards Gimhan
    • Edited by Gimhan Kasun Thursday, February 21, 2013 6:29 PM
    Thursday, February 21, 2013 6:28 PM