This is a migrated thread and some comments may be shown as answers.

Unhandled Exception After The FilesSelected Event

1 Answer 76 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Tom
Top achievements
Rank 1
Tom asked on 19 Jun 2009, 02:58 PM
I made a test project and got everything working just as I wanted it with the RadUpload control. Great control, very helpful, love it.

Then I decided I wanted to use the RadPageNavigation class to make a multi-page RIA. I have everything setup ok and can navigate between pages just fine, but now the RadUpload control doesn't work. I navigate to the page and it loads correctly, but as soon as I select files, it runs through the FilesSelected event with no problems and immediately after the sub, before hitting any of the other events (I added test subs for each of them with breakpoints to see if something else was causing the issue), it jumps to the Application_UnhandledException sub in App.xaml.vb and I can't figure out why. Is there something I'm not doing to enable the RadUpload control to work inside of the RadPageNavigation framework?
Exception of type 'System.InvalidOperationException' was thrown.  
 
   at Telerik.Windows.Controls.RadUpload.ProcessSelectedFiles()  
   at Telerik.Windows.Controls.RadUpload.OnFilesSelected()  
   at Telerik.Windows.Controls.RadUpload.ShowFileDialog()  
   at Telerik.Windows.Controls.RadUpload.BrowseButton_Click(Object sender, EventArgs e)  
   at System.Windows.Controls.Primitives.ButtonBase.OnClick()  
   at System.Windows.Controls.Button.OnClick()  
   at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)  
   at System.Windows.Controls.Control.OnMouseLeftButtonUp(Control ctrl, EventArgs e)  
   at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName) 

1 Answer, 1 is accepted

Sort by
0
Ivan
Telerik team
answered on 23 Jun 2009, 12:54 PM
Hi Tom,

Thank you for interest in the RadUpload control.

Both controls are designed to work together. We created a small example (and attached to this thread) for your convenience - please preview it. If the problem in your application still persists please send it to us for further investigation.

PS: You can attach files only in support tickets, i.e. in order to attach your application please open new support ticked.

Regards,
Ivan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Upload
Asked by
Tom
Top achievements
Rank 1
Answers by
Ivan
Telerik team
Share this question
or