Answered by:
websitecopy cannot connect to CRM online

Question
-
Hello,
I'm trying to install the customer portal for crm 2011 online. when trying to use websitecopy to copy contect to CRM online, I get the error below (sorry about the length of the error). Can anyone shed some light?
Any help would be appriciated.
thanks,
Chen
System.ServiceModel.Security.MessageSecurityException
Server stack trace:
at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.ProcessReply(Message reply, SecurityProtocolCorrelationState correlationState, TimeSpan timeout)
at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.Request(Message message, TimeSpan timeout)
at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, 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.AuthenticateLiveIdInternal(ClientCredentials clientCredentials, SecurityTokenResponse deviceToken, String keyType)
at Microsoft.Xrm.Sdk.Client.ServiceConfiguration`1.Authenticate(ClientCredentials clientCredentials, SecurityTokenResponse deviceTokenResponse, String keyType)
at Microsoft.Xrm.Sdk.Client.ServiceConfiguration`1.Authenticate(ClientCredentials clientCredentials, SecurityTokenResponse deviceTokenResponse)
at Microsoft.Xrm.Sdk.Client.OrganizationServiceConfiguration.Authenticate(ClientCredentials clientCredentials, SecurityTokenResponse deviceSecurityTokenResponse)
at Microsoft.Xrm.Client.Services.OrganizationService.CreateUserTokenResponse(CrmConnection connection, IServiceConfiguration`1 config)
at Microsoft.Xrm.Client.Services.OrganizationService.GetUserTokenResponse(CrmConnection connection, IServiceConfiguration`1 config)
at Microsoft.Xrm.Client.Services.OrganizationService.ToOrganizationServiceProxy(CrmConnection connection)
at Microsoft.Xrm.Client.Services.OrganizationService.ToOrganizationService(CrmConnection connection)
at Microsoft.Xrm.Client.Services.OrganizationService.<>c__DisplayClass2.<.ctor>b__0()
at System.Lazy`1.CreateValue()
at Microsoft.Xrm.Sdk.Client.OrganizationServiceContext.Execute(Microsoft.Xrm.Sdk.OrganizationRequest)
at WebsiteCopy.WebsiteImporter.GetEntityMetadataLookup(Microsoft.Xrm.Sdk.Client.OrganizationServiceContext)
at WebsiteCopy.WebsiteImporter.ImportWebsite(Microsoft.Xrm.Sdk.Client.OrganizationServiceContext, System.String, System.Xml.Linq.XElement, Boolean, System.Collections.Generic.IDictionary`2<System.Guid,System.Guid>)
at WebsiteCopy.WebsiteImporter.Import(System.Xml.Linq.XElement, System.String)
at WebsiteCopy.WebsiteImporter.Import(System.IO.Stream, System.String)
at WebsiteCopy.WebsiteImporter.Import(System.String, System.String)
at WebsiteCopy.Copier.Copy(System.String[])
at WebsiteCopy.Program.Main(System.String[])
Thanks, Chen HirshMonday, February 14, 2011 9:03 AM
Answers
-
Hi Ian,
Websitecopy will create one for you. You can also create one yourself if you'd like. It just needs to be any string between 12 and 22 characters long. Once you've created it, remember to save that device-id and password for the particular live id in case you need to reuse them.
- Palak
- Proposed as answer by Jim Glass Jr Wednesday, March 23, 2011 8:02 PM
- Marked as answer by Jim Glass Jr Wednesday, August 17, 2011 4:41 PM
Wednesday, March 23, 2011 4:52 AM
All replies
-
Are you using the GUI, or command line? Which CRM datacenter are you connecting to? What is the actual error message above this stack trace?
Shan McArthur www.shanmcarthur.net Check out the commercial edition of xRM portals @ www.adxstudio.comTuesday, February 15, 2011 12:50 AMModerator -
Thank you for replying.
I tryed both GUI and command line with the same result. my server is https://sit1.crm4.dynamics.com but I don't know on which data center it is on. there is no other error massage above this.
Thanks,
Chen
Thanks, Chen HirshTuesday, February 15, 2011 1:47 PM -
Chen, can you please provide us with the websitecopy command line you were using when you ran into this error?
Thanks!
- PalakThursday, February 17, 2011 12:56 AM -
Hi Chen. We were able to verify that the GUI version of the websitecopy indeed is having issues connecting to CRM online, but the commandline version works fine. We are already working towards fixing this issue.Wednesday, February 23, 2011 1:16 AM
-
Hello,
This is my command line:
$0\..\..\Utilities\WebsiteCopy /sourceFile:%0\..\CustomerPortal.xml /sourceWebsiteName:"Customer Portal" /targetWebsiteName:"Customer Portal" /targetConnectionString:"Url=https://sit1.crm4.dynamics.com/; Username=myliveid@msn.com; Password=mypassword; DeviceId=11bt28rq0zyj5vlfv2aysd94yp; DevicePassword=M6Z*3aqWaGBWf#HJt+SJd+c;"
the error:Unhandled Exception: System.ServiceModel.Security.MessageSecurityException: An u
nsecured or incorrectly secured fault was received from the other party. See the
inner FaultException for the fault code and detail. ---> System.ServiceModel.Fa
ultException: Authentication FailureThanks,
Chen
Thanks, Chen HirshThursday, February 24, 2011 6:31 AM -
Hi Chen,
Can you try generating a new device id and device password?
Thanks
- Palak- Proposed as answer by Jim Glass Jr Monday, March 14, 2011 4:05 PM
Friday, February 25, 2011 6:39 PM -
Hi All,
Where/ how is the Device ID and Device Password created?
Regards
ianTuesday, March 22, 2011 12:24 PM -
Hi Ian,
Websitecopy will create one for you. You can also create one yourself if you'd like. It just needs to be any string between 12 and 22 characters long. Once you've created it, remember to save that device-id and password for the particular live id in case you need to reuse them.
- Palak
- Proposed as answer by Jim Glass Jr Wednesday, March 23, 2011 8:02 PM
- Marked as answer by Jim Glass Jr Wednesday, August 17, 2011 4:41 PM
Wednesday, March 23, 2011 4:52 AM