Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4027128
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:03:29+00:00 2026-05-20T11:03:29+00:00

I have a silverlight app embedded in an IFRAME in Dynamics CRM… calls after

  • 0

I have a silverlight app embedded in an IFRAME in Dynamics CRM… calls after the form is loaded retrieve data via the CRM service soap client. The client is programmatically initialized with the URL and the CRM authentication token injected into the headers.

All of this, by itself, works perfectly fine.

The problem came in when I added a “loading…” animation. To display the animation correctly, I’ve marshalled the service requests onto a background thread, essentially replacing…

QuestionContext.RetrieveOptions();

… with …

ThreadPool.QueueUserWorkItem(delegate {
                                QuestionContext.RetrieveOptions();
                             });

The moment I do this, though, I (somewhat sporadically) get a credentials prompt. Cancelling the prompt results in a “Not Found” error by the web service.

I’ve placed clientaccesspolicy.xml in the CRMWeb root, my ISV site root, as well as the ClientBin folder where my .xap is located… none of them are making a difference.

UPDATE: Providing valid credentials in the prompt has no effect, the prompt re-appears 3 times and then we’re back to the “Not Found” error.

UPDATE: I’ve wrapped the service call responses with some error checking, each time on the “Not Found” error simply re-issuing the request. Now, pressing cancel in the credentials prompt whenever it is presented eventually results in satisfied requests. That is, it doesn’t consistently fail, and re-issuing the request an unspecified number of times eventually results in success.

I’ve also added a Thread.Sleep() in before my Execute() call to the soap client in an effort to see if the calls were somehow interfering with one another, but it hasn’t seemed to make a difference.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T11:03:29+00:00Added an answer on May 20, 2026 at 11:03 am

    I was facing the exact same problem, and finally figured out how to solve it. The key is to create the CrmService client on the same thread that you call it from. I had a CrmService class that wrapped up all my interactions with the Crm Web Service, and in the CrmService ctor I created the new Crm Web Service. then I tried to use the background worker to make a call on the service. Once I moved the new Crm Web Service to the same thread as the call on the web service, it all worked fine.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a Silverlight app which we wrote which calls a Silverlight-enabled data service.
I have a WCF web-service and a Silverlight app displaying data from that service.
I have a Silverlight app that uses actions to get data from the model
I have a Silverlight app that makes multiple (often concurrent) asynchronous calls to an
I have a Silverlight app that utilizes the Bing Maps control. Data loads when
I have a Silverlight App which gets its data from a database. My Silverlight
Basically I have a silverlight web App that resides within an IFrame. and that
Right now I have a silverlight app that gets data from a mvc site.
I have a Silverlight RIA app where I share the models and data access
I have a silverlight 5 app that depends on several asynchronous calls to web

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.