Issue with ISAPI_Rewrite

Last post 06-10-2013, 5:53 PM by cyphersys. 17 replies.
Sort Posts: Previous Next
  •  05-06-2013, 2:23 PM 77367

    Issue with ISAPI_Rewrite

    Hello, I have a problem uploading files with Ajax Uploader when I am rewriting urls with the component ISAPI_Rewrite.

    hen I am trying to upload a file, it throws a dialog alert with message "Unknown result: " and all the HTML page content. I have used UploaderDebug = 1

     

    This is the rewriting rule:

    RewriteRule ([^?/]+)/sh([\d]+)_(foros|forums|foruns)-p([\d]+).htm($|(\?.*))                                           /showcase/ForumsList.aspx?empr=$2&pag=$4 [L, I] 

     

    And this is the uploader debug message:

     

    INFO ScriptVersion ,20121113-01
    INFO UploadType/addontype,Auto/HTML5
    BEGIN event initialize
    END event initialize
    BEGIN event browse
    END event browse,true
    BEGIN event browse
    END event browse,true
    BEGIN event HTML5 select
    END event HTML5 select,true
    BEGIN event start
    END event start
    BEGIN event taskstart,{calificar.jpg:81277}
    END event taskstart
    INFO InitFrame 
    INFO UploadURL ,/MA-porcicultura/foros/p1.htm?AREA=POR&pag=1&UseUploadModule=Dynamic&_Namespace=CuteWebUI&_UploaderDebugMode=1&_UploadID=ctl00_Header_ctl03_ucUpdatePhoto_FileUploaderImage_1367848836772_1&_UploadControlID=ctl00$Header$ctl03$ucUpdatePhoto$FileUploader&ContextValue=!3wEWAQUQRDpcRGV2XHd3d1xUZW1wXMAmM8OZCxSAy8Jydyfc61YNi!31k&_VFN=calificar.jpg&_Addon=upload&_AddonGuid=928ee77e-e9e5-6063-2835-b7c65e6169c3
    INFO html5 report ,response,928ee77e-e9e5-6063-2835-b7c65e6169c3,


    <!DOCTYPE html>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head><title>
          Foros de Porcicultura
    </title>

     
    .... all html code
     

     

     

     

    Thank you in advance

     

    Regards 

    Filed under: , ,
  •  05-07-2013, 12:10 PM 77373 in reply to 77367

    Re: Issue with ISAPI_Rewrite

    Hi,

     

    Please try the setting below in the <appSettings> section of web.config.

     

    <add key="CuteWebUI.AjaxUploader.RewritePath" value="False" />

     

    Regards,

     

    Ken 

  •  05-07-2013, 1:01 PM 77376 in reply to 77373

    Re: Issue with ISAPI_Rewrite

    Hello Kenneth, thank you for your reply. I had added that line in web.config but it have no effect on my problem. I see that all our rewritten urls are resulting the same error, but calling the script files directly with .aspx are working fine.
    If you want I can send you an email or PM with a link of our site with an example of our problem, so you can test the error. 
     
    Thank you again
     
    Regards 
  •  05-07-2013, 7:20 PM 77384 in reply to 77376

    Re: Issue with ISAPI_Rewrite

    Hi cyphersys,

     

    Can you show me all your url rewrite settings? 

     

    Regards,

     

    Ken 

  •  05-08-2013, 12:14 PM 77392 in reply to 77384

    Re: Issue with ISAPI_Rewrite

    Hello Ken, I tried delete all rules except the Ajax Uploader testing rule.

    This is the isapi rule:

     

    # Helicon Ape version 3.0.0.76
    RewriteEngine On
    RewriteBase /

    # Testing
    ################################################################################
    RewriteRule ^cypher/([^?/]+)*      /Testing/cphr/Default.aspx?$1 [L, I]


     

  •  05-09-2013, 8:05 AM 77398 in reply to 77367

    Re: Issue with ISAPI_Rewrite

    Hi,

     

    Please try :

     

    RewriteRule ([^?/]+)/sh([\d]+)_(foros|forums|foruns)-p([\d]+).htm\??(.*)                                          

     

    to:

     

    /showcase/ForumsList.aspx?empr=$2&pag=$4&$5 [L, I]  

     

    Regards,
    Terry

     

  •  05-09-2013, 1:07 PM 77400 in reply to 77398

    Re: Issue with ISAPI_Rewrite

    Hello cutechat, I have tried your suggestion and no luck.

     

    I found that it fails when the translated url includes the symbol ?

    For example, in the next rule, I marked in red the part that makes it fail.

    RewriteRule ^cypher/      /Testing/cphr/Default.aspx?id=28 [L, I] 

     

    I note that the variable id=28 has no effect on my test page, so it could not be a problem in the page.

    If I remove the ?id=28 in the translated url, the Ajax Uploader works fine. 

     

    Regards 

  •  05-15-2013, 3:56 AM 77435 in reply to 77400

    Re: Issue with ISAPI_Rewrite

    Hi,

     

    We need to do more tests on that component and will make a solution asap.

     

    Regards,

    Terry

     

  •  05-16-2013, 2:30 PM 77451 in reply to 77435

    Re: Issue with ISAPI_Rewrite

    Hello Terry, thank you for your reply. I hope any news about this.

     

    Regards

     

    Gonzalo 

  •  05-20-2013, 1:26 PM 77463 in reply to 77435

    Re: Issue with ISAPI_Rewrite

    Hello, have you any news about this? I bought IP license for our production server and we cannot upload several revisions using Ajax Uploader because this issue.

     

    Thank you 

  •  05-21-2013, 4:05 PM 77467 in reply to 77463

    Re: Issue with ISAPI_Rewrite

    cyphersys,

     

    We are still investigating on this issue and will give you back in 24 hours.

     

    Regards,

    Terry

     

  •  05-22-2013, 2:50 PM 77472 in reply to 77463

    Re: Issue with ISAPI_Rewrite

    cyphersys,

     

    We have tested the ISAPI_Rewrite module .

     

    And found that it don't support passing the querystring to the rewrited url.

     

    But we have fixed that issue by modifying the code of AjaxUploader.dll 

     

    We will release it in 12 hours.

     

    Regards,

    Terry

     

  •  05-23-2013, 2:56 AM 77475 in reply to 77367

    Re: Issue with ISAPI_Rewrite

    Hello,

     

    Please download the last build .

     

    It will support ISAPI_Rewrite directly for IIS Classic apppool mode

     

    If you are using IIS integrated apppool mode ,

     

    <add key="CuteWebUI.AjaxUploader.RewritePath" value="False" />

     

    is required.

     

    Regards,

    Terry 

  •  05-23-2013, 12:56 PM 77478 in reply to 77475

    Re: Issue with ISAPI_Rewrite

    Hello, thank you for your response.

    I have tried your suggestions, but it doesen't work me.

     

    - I have IIS 7 in Integrated mode AppPool installed 

    - Using Microsoft .NET Framework 4.0

    - Updated the CuteWebUI.AjaxUploader.dll in Bin folder with date 2013-05-23

    - Added in web.config the following key:

      <appSettings>
        <add key="CuteWebUI.AjaxUploader.RewritePath" value="False" />
      </appSettings>

    - In assemblies I have added the following library reference:

    <add assembly="CuteWebUI.AjaxUploader, Version=3.0.0.0, Culture=neutral, PublicKeyToken=BC00D4B0E43EC38D"/> 

    - RewriteRule cypher/sh([\d]+)_historia.htm            /Testing/cphr/Default.aspx?Id=$2 [L, I] 

    - I have that only rule in ISAPI_Rewrite 

    - URL for testing: http://www.engormix.com/cypher/sh2352_historia.htm

     

    ASPX code:

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Testing.cphr.Default" %>
    <%@ Register TagPrefix="CuteWebUI" Namespace="CuteWebUI" Assembly="CuteWebUI.AjaxUploader" %>

    <!DOCTYPE html>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
            <asp:ScriptManager ID="scrMaster" runat="server" AjaxFrameworkMode="Enabled" EnablePartialRendering="True" EnableScriptGlobalization="True" EnableScriptLocalization="True" LoadScriptsBeforeUI="False" ScriptMode="Release" EnableCdn="False"/>
        <div>
            <asp:UpdatePanel runat="server" UpdateMode="Conditional">
                <ContentTemplate>
                    <CuteWebUI:Uploader runat="server" ID="FileUploader"/>
                </ContentTemplate>
            </asp:UpdatePanel>
        </div>
        </form>
    </body>
    </html>

     

     

    .NET code C
     

            protected void Page_Load(object sender, EventArgs e)
            {
                FileUploader.TempDirectory = Path.GetTempPath();
                FileUploader.AutoUseSystemTempFolder = false;
                FileUploader.ManualStartUpload = false;
                FileUploader.MultipleFilesUpload = false;
                FileUploader.UploadType = UploadType.Auto;
                FileUploader.ShowProgressInfo = true;
                FileUploader.FileUploaded += FileUploaded;
            }

            private void FileUploaded(object sender, UploaderEventArgs args)
            {
                Response.Write(Request.QueryString["Id"]);
            }

  •  05-27-2013, 12:52 PM 77490 in reply to 77478

    Re: Issue with ISAPI_Rewrite

    Hello, have you any news for this issue?
  •  05-30-2013, 11:44 AM 77512 in reply to 77490

    Re: Issue with ISAPI_Rewrite

    Hi,

     

    Now I am not able to reproduce that issue currently .

     

    By the way :

    I debuged your page, and found something special. 

     

    the form code is :

     

    <form name="form1" method="post" action="sh2352_historia.htm?%2fsh2352_historia.htm" id="form1">  

     

    Maybe that cause the issue.

     

     

    I will do more tests to find the reason, and will provide a solution in 24 hours.

     

    Regards,
    Terry

     

     

     

  •  06-03-2013, 1:33 PM 77524 in reply to 77512

    Re: Issue with ISAPI_Rewrite

    Hello, I have forced the rewrite url to Page.Form.Action and it have no change for this issue. Have you found any solution?

     

    Regards 

  •  06-10-2013, 5:53 PM 77543 in reply to 77512

    Re: Issue with ISAPI_Rewrite

    Hello, have you any news about this issue?
View as RSS news feed in XML