locked
DeviceAlreadyExists: 0x80041132 RRS feed

  • Question

  • Well I have followed all the instructions for creating the customer portal with CRMOnline and Azure but I get the above error when browsing to my site.

    Here is the stack trace.

    [DeviceRegistrationFailedException: DeviceAlreadyExists: 0x80041132]
      Microsoft.Xrm.Client.Services.Samples.DeviceIdManager.ParseRegistrationResponse(WebResponse response, Boolean isFailure) +903
      Microsoft.Xrm.Client.Services.Samples.DeviceIdManager.ExecuteRegistrationRequest(String url, String soapEnvelope) +479
      Microsoft.Xrm.Client.Services.Samples.DeviceIdManager.RegisterDevice(Guid applicationId, ClientCredentials deviceCredentials) +183
      Microsoft.Xrm.Client.Services.OrganizationService.RegisterDeviceCredentials(ClientCredentials deviceCredentials) +137
      Microsoft.Xrm.Client.Services.OrganizationService.CreateUserTokenResponse(CrmConnection connection, IServiceConfiguration`1 config) +1032
      Microsoft.Xrm.Client.Services.OrganizationService.GetUserTokenResponse(CrmConnection connection, IServiceConfiguration`1 config) +288
      Microsoft.Xrm.Client.Services.OrganizationService.ToOrganizationServiceProxy(CrmConnection connection) +248
      Microsoft.Xrm.Client.Services.OrganizationService.ToOrganizationService(CrmConnection connection) +15
      System.Lazy`1.CreateValue() +12769935
      System.Lazy`1.LazyInitValue() +355
      Microsoft.Xrm.Client.Services.InnerOrganizationService.UsingService(Func`2 action) +157
      Microsoft.Xrm.Client.Services.CachedOrganizationService.InnerExecute(OrganizationRequest request) +67
      Microsoft.Xrm.Client.Services.OrganizationServiceCache.InnerExecute(TRequest query, Func`2 execute, Func`2 selector) +16
      Microsoft.Xrm.Client.Services.<>c__DisplayClass6`3.<LookupAndInsert>b__4(ObjectCache cache) +194
      Microsoft.Xrm.Client.Caching.<>c__DisplayClass9`1.<Get>b__8(String key) +24
      Microsoft.Xrm.Client.Threading.<>c__DisplayClass5`1.<Get>b__3(Mutex _) +43
      Microsoft.Xrm.Client.Threading.MutexExtensions.Lock(String key, Int32 millisecondsTimeout, Action`1 action) +483
      Microsoft.Xrm.Client.Threading.MutexExtensions.Get(String key, Int32 millisecondsTimeout, Func`2 loadFromCache, Func`2 loadFromService) +236
      Microsoft.Xrm.Client.Threading.MutexExtensions.Get(String key, Func`2 loadFromCache, Func`2 loadFromService) +81
      Microsoft.Xrm.Client.Services.OrganizationServiceCache.LookupAndInsert(TRequest query, Func`2 execute, Func`2 selector, String selectorCacheKey) +414
      Microsoft.Xrm.Client.Services.OrganizationServiceCache.InnerExecute(TRequest request, Func`2 execute, Func`2 selector, String selectorCacheKey) +173
      Microsoft.Xrm.Client.Services.CachedOrganizationService.Execute(OrganizationRequest request, Func`2 selector, String selectorCacheKey) +225
      Microsoft.Xrm.Client.Services.CachedOrganizationService.Execute(OrganizationRequest request) +177
      Microsoft.Xrm.Sdk.Client.OrganizationServiceContext.Execute(OrganizationRequest request) +254
      Microsoft.Xrm.Sdk.Linq.QueryProvider.RetrieveEntityCollection(OrganizationRequest request, NavigationSource source) +213
      Microsoft.Xrm.Sdk.Linq.QueryProvider.Execute(QueryExpression qe, Boolean throwIfSequenceIsEmpty, Boolean throwIfSequenceNotSingle, Projection projection, NavigationSource source, List`1 linkLookups, String& pagingCookie, Boolean& moreRecords) +343
      Microsoft.Xrm.Sdk.Linq.QueryProvider.Execute(QueryExpression qe, Boolean throwIfSequenceIsEmpty, Boolean throwIfSequenceNotSingle, Projection projection, NavigationSource source, List`1 linkLookups) +131
      Microsoft.Xrm.Sdk.Linq.QueryProvider.Execute(Expression expression) +216
      Microsoft.Xrm.Sdk.Linq.QueryProvider.GetEnumerator(Expression expression) +66
      System.Linq.Enumerable.FirstOrDefault(IEnumerable`1 source) +220
      Microsoft.Xrm.Portal.Cms.WebsiteSelectors.NameWebsiteSelector.GetWebsite(OrganizationServiceContext context, RequestContext request) +45
      System.Lazy`1.CreateValue() +12769935
      System.Lazy`1.LazyInitValue() +355
      Microsoft.Xrm.Portal.PortalContext.get_Website() +76
      Microsoft.Xrm.Portal.Web.CrmSiteMapProvider.FindSiteMapNode(String rawUrl) +313
      Microsoft.Xrm.Portal.PortalContext.GetNode(RequestContext request) +217
      System.Lazy`1.CreateValue() +12769935
      System.Lazy`1.LazyInitValue() +355
      Microsoft.Xrm.Portal.PortalContext.get_Entity() +65
      Microsoft.Xrm.Portal.Web.Routing.PortalRouteHandler.GetHttpHandler(RequestContext requestContext) +108
      System.Web.Routing.UrlRoutingModule.PostResolveRequestCache(HttpContextBase context) +11340424
      System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +80
      System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +266
    
    Tuesday, August 23, 2011 6:56 AM

Answers

  • It sounds like the Live ID device ID and password in your connection string in the web.config file are not valid.  Please consider generating another pair and updating your web.config to match.
    Shan McArthur www.shanmcarthur.net Check out the commercial edition of xRM portals @ www.adxstudio.com
    • Proposed as answer by Maria Joaquin Thursday, October 20, 2011 10:27 PM
    • Marked as answer by Palak Kadakia Thursday, November 10, 2011 10:31 PM
    Monday, October 17, 2011 11:40 PM
    Moderator

All replies

  • It sounds like the Live ID device ID and password in your connection string in the web.config file are not valid.  Please consider generating another pair and updating your web.config to match.
    Shan McArthur www.shanmcarthur.net Check out the commercial edition of xRM portals @ www.adxstudio.com
    • Proposed as answer by Maria Joaquin Thursday, October 20, 2011 10:27 PM
    • Marked as answer by Palak Kadakia Thursday, November 10, 2011 10:31 PM
    Monday, October 17, 2011 11:40 PM
    Moderator
  • Hi Shan

    I did have something wrong in the script and have been able to resolve.

     

    Thank you.

    Mark

    Friday, October 21, 2011 8:38 AM