Using the SaveFileDialog: "Dialogs must be user-initiated" exception

12 03 2011

Using the SaveFileDialog in Silveright a Security Exception (“Dialogs must be user-inititated”) could be thrown.

This exception is thrown when there is a long-running operation preceding a call to ShowDialog of the SaveFileDialog instance. For example if it is preceded by either a Thread.Sleep or a break point.

In this case, you have to remove the long-running operation preceding the call and it’ll work fine.

Advertisements

Actions

Information

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




%d bloggers like this: