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

I have a standard ASP.NET MVC site with forms authentication. Users log in via
I have a silverlight user control which is bound to a Document object. the
I have a Silverlight 4 application that uses WCF services on the same server
I'm currently working on a Silverlight project, and I have created a Silverlight Web
I have a Button (or a hyperlinkbutton) in Silverlight. I want to open a
I have X number of RadioButtons (Silverlight). Normally this value is between 2-5. Call
In Silverlight, MVVM I have to create a property window, but I have just
If I have a function in silverlight that is like this: authenticationServiceClient.testCompleted += callback;
In silverlight, I got a textbox which I want to be multiline and have
Msdn doc for IsolatedStorageFile.IncreaseQuotaTo states that: To increase the quota, you must call this

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.