Today I came across an interesting issue. I have a Silverlight project in which I’d like to be able to show the OpenFileDialog as well as a JavaScript alert. However, I was able to determine (and confirmed at StackOverflow), that the alert cannot happen first as the OpenFileDialog would be a second dialog on a single user action to the browser. By commenting out the alert, I was able to continue just as planned.

The error that results is the following:

SNAGHTML1dc03d0

The text reads: [FileDialog_UserInitiated] Arguments:

Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=4.1.10111.0& File=System.Windows.dll&Key=FileDialog_UserInitiated

However, when browsing to the URL, you’ll notice that the link no longer exists.

I don’t use Silverlight much and so I haven’t come across this before. Hopefully this helps someone in the future.