iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hello
Please see attached screenshot of error message when exporting a gridview. It works ok when running locally but from hosted site I get his error.
Dialogs must be user-initiated. at System.Windows.Controls.SaveFileDialog.ShowDialogInternal(Window owner) at Intersoft.Client.UI.Data.UXGridView.(Object parameter) at (Object sender, ExecutedRoutedEventArgs e) at Intersoft.Client.Framework.Input.CommandBinding.(Object sender, ExecutedRoutedEventArgs e) at Intersoft.Client.Framework.Input.CommandManager.(CommandBindingCollection commandBindings, Object sender, RoutedEventArgs e, ICommand command, Boolean execute) at Intersoft.Client.Framework.Input.CommandManager.(Object sender, RoutedEventArgs e, ICommand command, Boolean execute) at Intersoft.Client.Framework.Input.CommandManager.(Object sender, ExecutedRoutedEventArgs e) at Intersoft.Client.Framework.Input.ExecutedRoutedEventArgs.InvokeEventHandler(Delegate genericHandler, Object target) at Intersoft.Client.Framework.ISRoutedEventArgs.InvokeHandler(Delegate handler, Object target) at InvokeHandler(Object target, ISRoutedEventArgs routedEventArgs) at (Object source, ISRoutedEventArgs args, Boolean raisedAgain) at RaiseEvent(DependencyObject element, ISRoutedEventArgs args) at Intersoft.Client.Framework.Input.RoutedCommand.Object parameter, UIElement target) at Intersoft.Client.Framework.RoutedCommandHelpers.ExecuteCommandSourceImpl(ICommandSource commandSource, Boolean userInitiated) at Intersoft.Client.UI.Aqua.UXMenuItem.DelayableAction() at Intersoft.Client.UI.Aqua.UXMenuItem.OnClick() at Intersoft.Client.UI.Aqua.UXMenuItem.OnMouseLeftButtonUp(MouseButtonEventArgs e) at System.Windows.Controls.Control.OnMouseLeftButtonUp(Control ctrl, EventArgs e) at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32 flags)
Thanks
Apologize for the delay in sending this.
The stack trace shows “Dialogs must be user-initiated.” which related to security reason. For security purposes, if a Silverlight application is a sandboxed application, file and print dialog boxes must be user-initiated. This means you must show them from a user-initiated action, such as the click event handler for a button. If you attempt to show a dialog box from non-user initiated code, a SecurityException will occur. (source: http://msdn.microsoft.com/en-us/library/ff382752(v=vs.95).aspx)
Could you please inform us how do you trigger the exporting dialog box? Do you use the built-in UXGridView’s export-dialog box or custom one?
I created a simple Silverlight project containing UXGridView and have the Web project deployed to the deployment server. Next, I test the built-in export button on the UXGridView.
Unfortunately, I was unable to reproduce the reported problem in my simple sample (the video file is uploaded on http://sdrv.ms/17gw2yV).
For your information, I’m using the Intersoft ClientUI MVVM Data Application (DevForce) project template with ClientUI 9 assembly. The Web project is deployed in IIS 7.5 with default settings.
Could you please provide us with more information so that we can replicate the problem in our local end? Or if you could send us a working simple project which reproduces the problem, it will be very helpful.
Look forward to hearing back from you.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname