Uploader http module seems to conflict with another HTTP modules.

Last post 09-24-2009, 10:38 AM by cutechat. 6 replies.
Sort Posts: Previous Next
  •  09-11-2009, 10:10 AM 55568

    Uploader http module seems to conflict with another HTTP modules.

    Hello Cute team. I am expiriencing one problem with your ajax uploader.
    I have asp.net web application based on Umbraco Content Management System.
    I am using microsoft ajax there.
    Problem occures when there are some another Http modules registered in web.config:
            <httpModules>
                <add name="CuteWebUI.UploadModule" type="CuteWebUI.UploadModule,CuteWebUI.AjaxUploader"/>
                <!-- URL REWRTIER -->
                <add name="UrlRewriteModule" type="UrlRewritingNet.Web.UrlRewriteModule, UrlRewritingNet.UrlRewriter" />
                <add name="umbracoRequestModule" type="umbraco.presentation.requestModule" />
                <!-- UMBRACO -->
                <add name="viewstateMoverModule" type="umbraco.presentation.viewstateMoverModule" />
                <add name="umbracoBaseRequestModule" type="umbraco.presentation.umbracobase.requestModule" />
                <!-- ASPNETAJAX -->
                <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0,                         Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> <!-- ASPNETAJAX -->
          <add name="CuteEditor.UploadModule" type="CuteEditor.UploadModule,CuteEditor"/>
            </httpModules>
    Is such case uploader do not wonna to perform ajax upload and Firefox just stoodstill, IE8 shows "'sys' undefined" java script error.
    If i removed HTTP modules on local test application, and leave there just registration of your uploader, then it works correct.
    But i hope its possible to make it working with another http modules...
    Maby i am making something wrong ofcourse, maby there is the way to make it working with another http modules, but ajax uploader 1.0 was working correct before upgrate to version  3.0.
    Ajax uploader 1.0 is perfect exept 1 thing, in firefox it was showing input file object without direct showing of browse dialog...
    Plase help me with that....
    Look here please i think there is some helpfull information for you... 
    http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=103656
     
  •  09-14-2009, 11:33 AM 55614 in reply to 55568

    Re: Uploader http module seems to conflict with another HTTP modules.

    Still can't resolve this issue, i had used a lot of time and power for that, please help me...
  •  09-14-2009, 4:26 PM 55626 in reply to 55614

    Re: Uploader http module seems to conflict with another HTTP modules.

    I would think it has to do with the url rewriter.  Probably losing the context of the page.
     
    based on another forum post I saw cutechat post this C# code to handle that problem.
     
    override protected void OnLoad(EventArgs args)
    {
        base.OnLoad(args);
        Context.Items[typeof(CuteWebUI.UploadModule)]=true;
    }
     
    Quick change that is definetely worth a shot, give it a try.
  •  09-15-2009, 1:38 AM 55639 in reply to 55568

    Re: Uploader http module seems to conflict with another HTTP modules.

    Hi,
     
    When you get 'sys' undefined , you can check whether can the Microsoft AJAX resource be downloaded.
     
    What other error do you get ?
     
    1 - can not browse files ?
    2 - can not upload file ?
    3 - error while upload file ?
    4 - error while postback ?
     
    Can you provide an online page for testing ?
     
    Regards,
    Terry
  •  09-15-2009, 3:32 AM 55641 in reply to 55626

    Re: Uploader http module seems to conflict with another HTTP modules.

    Thanks delamitry, but i checked your proposition before posting this note, and unfortunely it didn't solved my poblem.
     Now i got ajaxuploader 3.0 working with all rest http modules correct, but just in IE8. In firefox it looks like server just cancell sending response :-(
    I will try to make public examples with problems and send links for you... Just give me a lil cup of time :-)
  •  09-15-2009, 6:44 AM 55644 in reply to 55641

    Re: Uploader http module seems to conflict with another HTTP modules.

    I had solved the problem, reason was in urlrewriter.net component, as you suppose, seems that it is handling request from your uploader. Solution is not use query string parameters on page where you wonna to have uploader, else url rewriter will break uploader......
    But i remember that version 1.0 and 2.0 was working corrent with url rewriter and diferent query parameters....
    Hope in future versions of urlrewriter or your uploader this issue will be fixed....
  •  09-24-2009, 10:38 AM 55840 in reply to 55644

    Re: Uploader http module seems to conflict with another HTTP modules.

    Hi,
     
    When you use UrlRewriter.net , you need make sure the url can accept QueryString.
     
    For example , this is not compatible :
     
    <if url="/uploader22cs/world">
       <rewrite to="/uploader22cs/simple-upload.aspx" />
    </if>
     
    But this works :
     
    <if url="/uploader22cs/world($|(\?.*))">
       <rewrite to="/uploader22cs/simple-upload.aspx" />
    </if>
     
    Notes, if you still get error ,please try this in web.config appSettings:
     
    <add key="CuteWebUI.AjaxUploader.RewritePath" value="False" />
     
    Regards,
    Terry.
     
View as RSS news feed in XML