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

  • Home
  • SEARCH
  • 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 4101884
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T20:45:17+00:00 2026-05-20T20:45:17+00:00

We are getting this error InvalidOperationException userservice operation already in progress in our Silverlight

  • 0

We are getting this error InvalidOperationException “userservice operation already in progress” in our Silverlight 4 (OOB with RIA Services) when you click the Login button, but it doesnt happen everytime and sometimes it happens multiple times. If I ignore the error and keep running it seems to work. Does anyone know what is causing this?

EDIT : The project was created using the “Silverlight Business Application” template.

Stack Trace

at System.ServiceModel.DomainServices.Client.ApplicationServices.AuthenticationService.StartOperation(AuthenticationOperation operation)
at System.ServiceModel.DomainServices.Client.ApplicationServices.AuthenticationService.Login(LoginParameters parameters, Action`1 completeAction, Object userState)
at Reach.SL.LoginUI.LoginForm.LoginButton_Click(Object sender, EventArgs e)
at System.Windows.Controls.Primitives.ButtonBase.OnClick()
at System.Windows.Controls.Button.OnClick()
at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
at System.Windows.Controls.Control.OnMouseLeftButtonUp(Control ctrl, EventArgs e)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)

EDIT (More Info).
I have been able to reproduce the problem consistantly with a new ‘Silverlight Business Application’ solution and a few minor changes. The problem happens a lot more out on site where the services are slower to respond, hence all of the changes are to speed up user input on my dev box.
If you start with the ‘Silverlight Business Application’ and change it to do two things;
1. Show the login box as soon as it loads.
2. default in some valid credentials (so you dont have to type them).

Then run the app and press ‘enter’ (to login) as soon as the screen is displayed, then i get the error consistantly.

I have used Fiddler and it shows that there is two calls actually happening…

/ClientBin/SilverlightBusinessApp-Web-AuthenticationService.svc/binary/GetUser
/ClientBin/SilverlightBusinessApp-Web-AuthenticationService.svc/binary/Login

The error occurs when the first call to GetUser is still in progress when it calls the login.
Where is this call to GetUser coming from? (is it getting credentials from the aspnetDB)

What code can i add so it doesnt call Login until the GetUser call is finished? ( i have tried “WebContext.Current.Authentication.IsBusy” but it does not seem to reset when the call to getUser is finished.

  • 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-20T20:45:17+00:00Added an answer on May 20, 2026 at 8:45 pm

    In the Silverlight Business Application template the following line of code can be found in App.xaml.cs in the Application_Startup method.

    WebContext.Current.Authentication.LoadUser(this.Application_UserLoaded, null);
    

    This line will cause a call to GetUser on your AuthenticationService (which also comes with the template). So essentially this GetUser service call is happening when the application is launched, which is what is causing the problem with users logging in quickly after launching the application.

    If you don’t want users to be automatically signed in if they check the “keep me logged in” field, then you can safely remove this line from Application_Startup. Another option is to create some kind of LoginHelper class and fire an event in that class when the login completes. Listen for this event on your login control and only enable the login button when the initial GetUser call completes.

    There are several other potential work-arounds but without knowing the architecture of your project it’s difficult to recommend one. Hope this helps.

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

Sidebar

Related Questions

I am getting this error when trying to run internet information services on a
Anyone getting this error when using the new free chart controls MS bought from
I am getting this error now that I hit version number 1.256.0: Error 4
I am getting this error but only very occasionally. 99.9% of the time it
I'm getting this error on a compact framework form. code generation for property 'inputControl'
I'm getting this error message on all projects (including brand new empty templates) I'm
I started getting this error when posting the form back with Model Binder. To
I'm getting this error... What is puzzling me is the fact that i do
I am getting this error on a remote server, but the same code executes
I'm getting this error after trying to appendChild to an element that was just

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.