http error1 :405:MethodNotAllowed

Last post 10-11-2012, 9:11 AM by krabaten. 3 replies.
Sort Posts: Previous Next
  •  10-11-2012, 6:32 AM 74952

    http error1 :405:MethodNotAllowed

    I am getting the http error1 :405:MethodNotAllowed error after selecting a file. I am getting the error in both IE and Chrome (have not tried other browsers).

     

    Here is my ASPX code, which is put inside an UpdatePanel.

     

                        <CuteWebUI:UploadAttachments InsertText="Attach" runat="server"
                            ID="Attachments" MultipleFilesUpload="true">
                            <InsertButtonStyle BorderStyle="Groove" />
                        </CuteWebUI:UploadAttachments>

     

    The code works just fine in the built-in webserver of VS2010, but fails with the aforementioned error when deployed to an IIS 6.0 webserver.

     

    Using Fiddler, I have traced the 405 call to  POST to the following URL:

     

    http://servername:5278/?UseUploadModule=Dynamic&_Namespace=CuteWebUI&_UploadID=ContentPlaceHolder_AttachmentsImage_1349954243888_1&_UploadControlID=ctl00$ContentPlaceHolder$Attachments&ContextValue=!3wEWAQUgQzpcV0lORE9XU1xURU1QXEFqYXhVcGxvYWRlclRlbXAhQGyQWFMZ5unan822kkmCWZ9v5MBLw3CIZ8DsNxw7EQ!2!2&_VFN=esm-banner.png&_Addon=verify&_AddonGuid=49b5343e-1362-4fd5-a43d-1f48b4c8ed42 

     

    Is this a problem with the Web Service Extensions in IIS 6.0? The ASP.NET 4 extensions are allowed, and the site runs fine in all other regards.

     

    Thanks! 

  •  10-11-2012, 7:11 AM 74953 in reply to 74952

    Re: http error1 :405:MethodNotAllowed

    Hi,

     

    1. Do you get the same errro with the example page code below?

     

    1. <%@ Page Language="C#" %>  
    2.   
    3. <%@ Register TagPrefix="CuteWebUI" Namespace="CuteWebUI" Assembly="CuteWebUI.AjaxUploader" %>  
    4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
    5. <html xmlns="http://www.w3.org/1999/xhtml">  
    6. <head id="Head1" runat="server">  
    7.     <title>example</title>  
    8. </head>  
    9. <body>  
    10.     <form id="form1" runat="server">  
    11.         <CuteWebUI:UploadAttachments ID="uploader1" runat="server">  
    12.         </CuteWebUI:UploadAttachments>  
    13.     </form>  
    14. </body>  
    15. </html>  
     

    2. Can you send me your uploader page url and show me the full steps to reproduce this error?

     

    3. Does it happens with all files? Or just special file/size/extension?

     

    Regards,

     

    Ken 

  •  10-11-2012, 8:38 AM 74958 in reply to 74953

    Re: http error1 :405:MethodNotAllowed

    1. The example code works fine, even when placed inside an UpdatePanel. Do you now what differences I should be looking for in my other code to pin-point the cause of it not working there?

     

    2. Sorry, it's an webpage on an internal LAN.

     

    3. All files/sizes/extensions.

     

    Thanks! 

  •  10-11-2012, 9:11 AM 74959 in reply to 74958

    Re: http error1 :405:MethodNotAllowed

    I have located the error now.

    If I simply rename the page (to anything else than Default.aspx), everything works fine.

     

    I assume this has to do with the control making calls to http://hostname/?querystring

View as RSS news feed in XML