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 4001994
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T07:58:20+00:00 2026-05-20T07:58:20+00:00

I try to debug my silverlight application that contain OpenFileDialog.ShowDialog() call – and i

  • 0

I try to debug my silverlight application that contain OpenFileDialog.ShowDialog() call – and i get error exception about security ( “SecurityException was unhandled by user code : Dialogs must be user-initiated” )

When i run the application without debug – i don’t get this exception.

But i must run it in debug mode because i need to see that i doing the right thing with the file that the customer choose …

How can i run it with in debug mode ?

Thanks for any help.

  • 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-20T07:58:20+00:00Added an answer on May 20, 2026 at 7:58 am

    If you are, and I assume you are, initiating the ShowDialog() call with a button click, Silverlight has some strange heuristics for determining if the action was user initiated.

    It does work with debugging, but if you’re stepping though the code from the Button_Click to the ShowDialog(), it seems to think that because of the delay, it is not a user initiated action.

    To get around this, I’d recommend using logging instead of stepping through to debug the application. Silverlight is notorious for throwing these exceptions when trying to debug the ShowDialog() calls.

    *EDIT

    Silverlight does not use the Click() event to determine whether the button was user initiated. It uses a host of heuristics to determine it correctly including a timer (which is why debugging fails)

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

Sidebar

Related Questions

When I try to load my Lync Controls in a Silverlight application I get
Try loading this normal .jpg file in Internet Explorer 6.0. I get an error
When I try to debug my app I get a runtimeexception when I include
When i try to debug using Firebug , i saw this 414 error. In
When I try to debug the following function segment, the execution brakes (jumps out
I try to add an addons system to my Windows.Net application using Reflection; but
I try Request.Form.Set(k, v) but it's throwing exception Collection is read-only
I have a Silverlight 4 user control that calls a WCF service residing within
I'm trying to use a 3rd party component in my Silverlight application and when
When I try to debug a Java file in eclipse then its finally says

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.