Hey there
I have issues with a WebUpload control on an aspx page. I'm using VS 2010 3.5 .Net framework and running IIS 6.
Whats happening is after I upload a file I get two errors which I was able to conclude from your sample code in the onErrorHandler function.
The actual file does get uploaded to the temp folder that I have specified but I get the two errors above and don't get any of the controls progress bar animations etc.
I'm pretty sure I've set up the httphandlers and httpmodules correctly so i'm unsure as to why this is happening. Please refer my code below
In WebConfig for an IIS 6 config
<httpHandlers>
<remove path="*.asmx" verb="*" />
<add path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
<add path="*.rpx" verb="*" type="DataDynamics.ActiveReports.Web.Handlers.RpxHandler, ActiveReports.Web, Version=5.2.1013.2, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" />
<add path="*.ActiveReport" verb="*" type="DataDynamics.ActiveReports.Web.Handlers.CompiledReportHandler, ActiveReports.Web, Version=5.2.1013.2, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" />
<add path="*.ArCacheItem" verb="*" type="DataDynamics.ActiveReports.Web.Handlers.WebCacheAccessHandler, ActiveReports.Web, Version=5.2.1013.2, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" />
<add path="*_AppService.axd" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
<add path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
<add path="IGUploadStatusHandler.ashx" verb="GET" type="Infragistics.Web.UI.EditorControls.UploadStatusHandler" validate="true"/>
</httpHandlers>
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add name="IGUploadModule" type="Infragistics.Web.UI.EditorControls.UploadModule" />
</httpModules>
Web Upload Control on Page
<ig:WebUpload ID="webUpload1" runat="server" Mode="Multiple"
ProgressUrl="/WebUploadStatusHandler.ashx" OnUploadFinishing="webUpload1_OnUploadFinishing">
<ClientEvents OnError="onErrorHandler" />
</ig:WebUpload>
Please let me know if you need anymore info. You help is greatly appreciated!
Actually it's fine. I just never included the ProgressUrl
Hi,
I am geeting the exact same error could you please let me know how you included the ProgressUrl. This is a sample of the code to render the control.
@( Html.Infragistics().Upload() .ID("igUpload1") .Mode(UploadMode.Multiple) .MaxUploadedFiles(5) .AllowedExtensions(new List<string> { "csv" }) .MaxSimultaneousFilesUploads(2) .ProgressUrl(Url.Content("~/IGUploadStatusHandler.ashx")) .ControlId("serverID1") .Render() )