Request format is unrecognized for URL unexpectedly ending error in Firefox only

Last post 11-08-2009 10:48 PM by auxcom. 2 replies.

Sort Posts:

  • Request format is unrecognized for URL unexpectedly ending error in Firefox only

    11-07-2009, 1:31 PM
    • Member
      222 point Member
    • auxcom
    • Member since 04-14-2004, 9:30 PM
    • Posts 60

    Hi! I am having some nightmares on this:


        Exception message: Request format is unrecognized for URL unexpectedly ending in '/Method'.

    In short I am calling a web service in Jquery. The web service is hosted on another application but on the same development machine only.

    I try to google and found one possible is to add HttpPost and HttpGet on the web service config. I try it...

    The weird thing is it only works on IE but not on Firefox. My FF version is 3.5. On Firebug I can trace my javascripts is calling the web service but returning a 500 Internel server error but with blank Response.

    I hope anyone can help me. Thanks!

    - Daniel

  • Re: Request format is unrecognized for URL unexpectedly ending error in Firefox only

    11-07-2009, 2:22 PM
    • Contributor
      3,384 point Contributor
    • Danish Ali
    • Member since 08-08-2008, 11:22 PM
    • Fort Lauderdale, US
    • Posts 468

    Please add following in your webservice web.config file. if HttpPost and HttpGet is not working, add all the protocols and try.

    <webServices>
    <protocols>
    	<add name="HttpSoap"/>
    	<add name="HttpPost"/>
    	<add name="HttpGet"/> 
    	<add name="HttpPostLocalhost"/>
          <!-- Documentation enables the documentation/test pages -->
    	<add name="Documentation"/>
    </protocols>
    </webServices>

    if it did not work, Please post your javascript method, which you are using to call web service.
    Thanks.

    Hope it will help.
    If my post solves your problem, please mark it as an answer.
  • Re: Request format is unrecognized for URL unexpectedly ending error in Firefox only

    11-08-2009, 10:48 PM
    Answer
    • Member
      222 point Member
    • auxcom
    • Member since 04-14-2004, 9:30 PM
    • Posts 60

    Hi! Thank you for responding.

    I have no luck on adding all protocols, here is my config:

    <webServices>
    			<protocols>
    				<add name="AnyHttpSoap"/>				
    				<add name="HttpGet"/>
    				<add name="HttpPost"/>
    				<add name="HttpPostLocalhost"/>
    				<add name="HttpSoap"/>
    				<add name="HttpSoap12"/>
    				<add name="Documentation"/>
    			</protocols>
    		</webServices>


    and here is my javascript:

    $.ajax({
                type: "POST",
                url: "http://localhost/ServiceName/Service.asmx/ServiceMethod",
                data: {},
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: sendMessageSuccess
            });

    - Daniel

    Hope you can help.

Page 1 of 1 (3 items)