Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
90
Issues with WebUploadStatusHandler.ashx
posted

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.

Errors:
1) AJAX error while trying to get file size.
2) Could not get your current file status! Probably connection dropped. (Happens after I try to upload the file anyways)

 

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!

Parents Reply Children
No Data