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:


The text reads: [FileDialog_UserInitiated] Arguments:

Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See 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.