Getting the following error when uploading images for a product:
Page URL:/formsadmin/entityEditProducts.aspx
Source:mscorlib
Message:Could not find a part of the path 'E:\web\hostname\htdocs\images\Product\swatch\tmp_test.gif'.
Stack Trace:
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode)
at System.Web.HttpPostedFile.SaveAs(String filename)
at AspDotNetStorefrontAdmin.entityEditProducts.Handle ImageSubmits() in e:\web\hostname\htdocs\FormsAdmin\entityEditProducts.aspx.cs:line 1911
at AspDotNetStorefrontAdmin.entityEditProducts.Update Product() in e:\web\hostname\htdocs\FormsAdmin\entityEditProducts.aspx.cs:line 1706
at AspDotNetStorefrontAdmin.entityEditProducts.btnClo se_Click(Object sender, EventArgs e) in e:\web\hostname\htdocs\FormsAdmin\entityEditProducts.aspx.cs:line 1093
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEven t(String eventArgument)
at System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
What is causing error?