Re: Issue with ISAPI_Rewrite

  •  05-23-2013, 12:56 PM

    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"]);
            }

View Complete Thread