WebFileUploader errors when setting SetUploadPath programmatically

1 reply. Last post: March 14, 2011 5:56 AM by Martin Lie
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Mike DearmanMember

I'm trying to run the following code:

Private Sub oUpload_PreInitialize(ByVal sender As Object, ByVal e As System.EventArgs) Handles oUpload.PreInitialize

oUpload.SetUploadPath(IO.Path.GetTempPath)

End Sub

 

However I get this error:

System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.Exception: Unable to obtain upload context for '3b0d4ef838994b46993b2620c6e4ad51'. The application may have been restarted, or your session has expired.
   at ISNet.WebUI.WebTextEditor.WebFileUploader.GetContext(String guid)
   at ISNet.WebUI.WebTextEditor.WebFileUploader.GetContext(WebFileUploader fileUploader)
   at ISNet.WebUI.WebTextEditor.WebFileUploader.SetUploadPath(String path)
   at Libera.System7.UI.LForm.FileUpload.oUpload_PreInitialize(Object sender, EventArgs e) in C:\DotNetProjects35\System7Solution\Sys7UI\LForm\FileUpload.aspx.vb:line 176
   at ISNet.WebUI.ISNetControl.OnPreInitialize()

 

 

When should I be intializing this property and/or what check do I need to wrap it in to wait until it has a context?   The application hasn't restarted like it thinks.

Mike

All times are GMT -5. The time now is 4:34 PM.
Previous Next