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
I'm trying to run the following code:
oUpload.SetUploadPath(IO.Path.GetTempPath)
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
Hello Mike,
You could set UploadPath on Page_Load like following:
protected void Page_Load(object sender, EventArgs e) { WebFileUploader1.UploadPath = "./Upload"; }
With this setting, you can change the path directory of your uploaded file.
Hope this helps.
Thank 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