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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:10:13+00:00 2026-05-28T01:10:13+00:00

I get the infamous Dialogs must be user-initiated Security Exception when I try to

  • 0

I get the infamous “Dialogs must be user-initiated” Security Exception when I try to print some stuff in Silverlight. As you can see, the dialog is as user-initiated as can be:

Silverlight printing "Dialogs must be user-initiated" Security Exception

John Papa couldn’t help me much out neither, because I don’t have any breakpoint set. Mr MSDN thinks it could also be that I’m just taking too long, but this is a demo application just as simple as can be.

Any ideas? I guess it’s a Visual Studio quirk, maybe some extensions interfering, as things seems to work when I launch the application outside of it. I first thought maybe the Code Contracts are interfering with their IL weaving, but they are deactivated for this project.

Update: This is just a simple Silverlight application that runs locally from the file system. When I do “Start debugging”, Visual Studio creates a hosting HTML file containing the Silverlight app in the Debug resp. Release folder of the project, launches the Internet Explorer with that HTML file and attaches the debugger to it.

Update 2: I also get the same error when I create a web project to host the Silverlight app and create a virtual directory for it on IIS.

I might also want to add that I don’t have problems with printing in other Silverlight projects regardless of their hosting scenarios.

Update 3: I downloaded FireFox and it works, I don’t get the error when I debug with it. So it seems to have to do with my IE8. I uploaded the solution:

http://dl.dropbox.com/u/10401470/Code/Demos/PrintingDemo.zip

I wonder if anyone can reproduce?

Anyone got an idea to which team I should file a bug report? Silverlight team? IE team? VS Debugger team?

  • 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-28T01:10:13+00:00Added an answer on May 28, 2026 at 1:10 am

    I’m able to reproduce this. You have handled the Click twice, once in XAML another time in code. See your MainPage.xaml

    <Button x:Name="PrintButton"
       Content="Gotta print 'em!" Margin="8" 
       Click="PrintButton_Click" />
    

    Don’t feel bad about it. I did it last time through a misplaced Print inside a loop.

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

Sidebar

Related Questions

I get the infamous MERGE of 'whatever': 200 OK whenever I try to commit
//get choice input int n; scanf (%d,&n); // print the option that the user
I get a URL from a user. I need to know: a) is the
I get this error: Can't locate Foo.pm in @INC Is there an easier way
Yes, it's the infamous viewstate again! Now I am aware that problems can ocurr
I am struggling with Core data. I get the infamous error Failed to call
Get your newb-shields up, I'm about to sprinkle you with some. I'm trying to
.get() converts a jQuery object to a DOM element that Javascript can use without
I'm currently developing a small test project with Android and I get the infamous
//get var of posted info so user does not //have to reinsert if if

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.