Live Support, Chat, Upload Control and Rich Text Editor
Welcome to Support forums Sign in | Join | Help |Client Center
in Search

issue with url rewriting and the upload component

Last post 03-23-2010, 12:37 AM by Mayurnirmal. 7 replies.
Sort Posts: Previous Next
  •  09-26-2009, 6:58 AM 55884

    issue with url rewriting and the upload component

    Hi,
     
    Withough URL rewriting, the component on my page works absolutely fine. However I'm having problems when I use URL rewriting.
    Here's my rule :
     
            <rule name="rewrite uploader.aspx">
                <match url="^myaccount/uploader$" />
                <action type="Rewrite" url="useraccount/uploader.aspx" />
            </rule>
     
    the code:
     
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
      <ContentTemplate>
        <CuteWebUI:Uploader runat="server" ID="Uploader1" InsertText="Upload" OnFileUploaded="Uploader_FileUploaded">
            <ValidateOption AllowedFileExtensions="jpeg,jpg,png" MaxSizeKB="10000" />
        </CuteWebUI:Uploader>
      </ContentTemplate>
    </asp:UpdatePanel>
     
     
    and the error I get when the progress bar reaches 100% (see at the end of the message)
     
    What can I do to fix this problem ? 
     
     

    The HTTP verb POST used to access path '/BuzzArt.Web/myaccount/uploader' is not allowed.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Web.HttpException: The HTTP verb POST used to access path '/BuzzArt.Web/myaccount/uploader' is not allowed.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [HttpException (0x80004005): The HTTP verb POST used to access path '/BuzzArt.Web/myaccount/uploader' is not allowed.]    System.Web.DefaultHttpHandler.BeginProcessRequest(HttpContext context, AsyncCallback callback, Object state) +2872346    System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +8679186    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155 
  •  09-26-2009, 8:23 AM 55886 in reply to 55884

    Re: issue with url rewriting and the upload component

    Hi,
     
    Please use this pattern :
     
    <match url="^myaccount/uploader($|(\?.*))" />
     
    Regards,
    Terry
     
  •  09-26-2009, 8:33 AM 55889 in reply to 55886

    Re: issue with url rewriting and the upload component

    Hi,
    Thanks for helping !
     
    unfortunately that doesn't make a difference :( I'm still getting the same exception when the progress bar reaches 100%
     
    any other suggestions ? :p
  •  09-26-2009, 8:50 AM 55892 in reply to 55889

    Re: issue with url rewriting and the upload component

    Please try to add this to web.config appSettings :
     
    <add key="CuteWebUI.AjaxUploader.RewritePath" value="False" />
     
    Regards,
    Terry
     
  •  09-26-2009, 9:26 AM 55894 in reply to 55892

    Re: issue with url rewriting and the upload component

    perfect, it works ! :)
    I don't need to rewrite the url for the component indeed.
     
    Thanks very much !
  •  03-22-2010, 7:49 AM 59551 in reply to 55892

    Re: issue with url rewriting and the upload component


    Hi,
     
    I am having the same problem but not yet solved.
     
    i have added following in my web.config  file:
    <appSettings>
        <add key="CuteWebUI.AjaxUploader.RewritePath" value="False" />
    </appSettings> 
     
    anything else that i have to do in my .aspx page/ .aspx.cs page???
     
    I m strucked badly. plse help! 
     
    Mayur
     
  •  03-22-2010, 10:23 AM 59563 in reply to 59551

    Re: issue with url rewriting and the upload component

    Mayurnirmal:

    Hi,
     
    I am having the same problem but not yet solved.
     
    i have added following in my web.config  file:
    <appSettings>
        <add key="CuteWebUI.AjaxUploader.RewritePath" value="False" />
    </appSettings> 
     
    anything else that i have to do in my .aspx page/ .aspx.cs page???
     
    I m strucked badly. plse help! 
     
    Mayur
     
     
    Are you using the latest version? We don't have this option in the old version.

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  03-23-2010, 12:37 AM 59588 in reply to 59563

    Re: issue with url rewriting and the upload component


    Are you using the latest version? We don't have this option in the old version.
     
    ---------------------------------------
     
    Hi,
     
    Asp.net Framework 2.0 and we have done a website.
     
    Are you talking abt latest version of CuteWebUI-AjaxUploader?
     
    reply soon.
    Mayur
View as RSS news feed in XML
Powered by ASP.Net
Copyright 2003 - 2017 CuteSoft Components Inc.. All rights reserved.