Solved

Logon Error using CRMSvcUtil.exe on IFD CRM 2011 system

Posted on 2011-02-10
4
1,411 Views
Last Modified: 2012-05-11
Hi All

I'm trying to dump a Class file out of my CRM 2011 RC system, and am getting an error as below.

The server is using IFD and I am using the command line as per the MS KB Aritcle.

The command I am using is:

CrmSvcUtil.exe /url:https://shine.lansystems.co.uk:444/XRMServices/2011/Organization.svc /out:GeneratedCode.cs /username:administrator /password:password

The trace output I get is below.

Of course the password is changed but I am using the real one!

Any ideas?

Cheers

Wayne

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

CrmSvcUtil : CRM Service Utility [Version 5.0.9688.42]
¸ 2010 Microsoft Corporation.  All rights reserved.

CrmSvcUtil.exe Error: 0 : Exiting program with exit code 2 due to exception : System.ComponentModel.Win32Exception (0x80004005): The logon attempt failed

Server stack trace:
   at System.IdentityModel.SspiWrapper.AcquireCredentialsHandle(String package, CredentialUse intent, AuthIdentityEx& authdata)
   at System.ServiceModel.Security.SecurityUtils.GetCredentialsHandle(String package, NetworkCredential credential, Boolean isServer, String[] additionalPackages)
   at System.ServiceModel.ClientCredentialsSecurityTokenManager.KerberosSecurityTokenProviderWrapper.OnOpening()
   at System.ServiceModel.Security.WrapperSecurityCommunicationObject.OnOpening()
   at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
   at System.ServiceModel.Security.SecurityProtocol.OnOpen(TimeSpan timeout)
   at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
   at System.ServiceModel.Channels.SecurityChannelFactory`1.ClientSecurityChannel`1.OnOpen(TimeSpan timeout)
   at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)
   at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannel.CallOnceManager.CallOnce(TimeSpan timeout, CallOnceManager cascade)
   at System.ServiceModel.Channels.ServiceChannel.EnsureOpened(TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at Microsoft.IdentityModel.Protocols.WSTrust.IWSTrustContract.Issue(Message message)
   at Microsoft.IdentityModel.Protocols.WSTrust.WSTrustChannel.Issue(RequestSecurityToken rst, RequestSecurityTokenResponse& rstr)
   at Microsoft.Xrm.Sdk.Client.ServiceConfiguration`1.Issue(IssuerEndpoint issuerEndpoint, String appliesTo, String requestType, String keyType, ClientCredentials clientCredentials, SecurityToken securityToken)
   at Microsoft.Xrm.Sdk.Client.ServiceConfiguration`1.Authenticate(TokenServiceCredentialType endpointType, String appliesTo, String keyType, IssuerEndpointDictionary issuerEndpoints, ClientCredentials clientCredentials, SecurityToken securityToken)
   at Microsoft.Xrm.Sdk.Client.ServiceConfiguration`1.Authenticate(TokenServiceCredentialType endpointType, String keyType, ClientCredentials clientCredentials, SecurityToken securityToken)
   at Microsoft.Xrm.Sdk.Client.ServiceConfiguration`1.Authenticate(ClientCredentials clientCredentials)
   at Microsoft.Xrm.Sdk.Client.ServiceProxy`1.AuthenticateCore()
   at Microsoft.Xrm.Sdk.Client.ServiceProxy`1.ValidateAuthentication()
   at Microsoft.Xrm.Sdk.Client.ServiceContextInitializer`1.Initialize(ServiceProxy`1 proxy)
   at Microsoft.Xrm.Sdk.Client.OrganizationServiceContextInitializer..ctor(OrganizationServiceProxy proxy)
   at Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.ExecuteCore(OrganizationRequest request)
   at Microsoft.Crm.Services.Utility.SdkMetadataProviderService.RetrieveEntities(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)


 
--------------------------------------------------------------------------------
Wayne TAYLOR
0
Comment
Question by:WayneATaylor
  • 3
4 Comments
 
LVL 13

Expert Comment

by:ylandrum
Comment Utility
You may need to specify the context of administrator in the username parameter to make sure you are using the correct one; e.g., /username:LOCALMACHINE\administrator vs /username:DOMAINNAME\administrator
0
 
LVL 10

Author Comment

by:WayneATaylor
Comment Utility
Hi

I have tried that and also added the /domain: param but no different.

The SDK docs gives an eg for IFD which just has username and password With no domain.

Wayne

0
 
LVL 10

Accepted Solution

by:
WayneATaylor earned 0 total points
Comment Utility
I gave up with this in the end and used Late Bindings in my code!
0
 
LVL 10

Author Closing Comment

by:WayneATaylor
Comment Utility
I gave up with this and used late bindings!
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

MS Access 2003 or later To MySQL Migration Project Hello All, this is my second article in the category of MS-OFFICE Automation. In internet I am not able to find any comprehensive resource on the Migration of MS Access back-end to MySQL so I fin…
As with any other System Center product, the installation for the Authoring Tool can be quite a pain sometimes. This article serves to help you avoid making these mistakes and hopefully save you a ton of time on troubleshooting :)  Step 1: Make sur…
Viewers will learn how to maximize accessibility options in an Excel workbook for users with accessibility issues.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now