RikWare
...

URL Unexpectedly Ending Error with ASP.NET 2.0 Web Services

Sunday, 23 July 2006 01:30 by admin

While preparing for the first tutorial in the new web services subject that I'm tutoring I came across the following exception: "Request format is unrecognized for URL unexpectedly ending in '/ConvertTemperature'". Unfortunately Google failed me so I decided I'd post the fix I found.

Simply changing the address from "http://localhost/..." to "http://127.0.0.1/..." fixed it right up. I haven't bothered searching for the exact cause of the problem, for a change I'm happy enough with just finding a solution. I do remember coming up against a very similar problem recently so perhaps one day I'll get around to explaining this fully. In the meantime this is an adequate solution.

So next time you get the error "Request format is unrecognized for URL unexpectedly ending in '/???'" while developing asmx web services in ASP.NET 2.0 try this as a solution.

Categories:   General
Actions:   E-mail | del.icio.us | Permalink | Comments (11) | Comment RSSRSS comment feed

Comments

January 18. 2008 18:58

Lotas

The better solution is in modifying web.config, adding following lines
  <system.web>
    <webServices>
      <protocols>
        <add name="HttpGet"/>
        <add name="HttpPost"/>
      </protocols>
    </webServices>
  </system.web>

solves the problem permanently

Lotas

August 14. 2008 19:48

BalochDude

Thanks Lotas for the solution. It works.

BalochDude

September 2. 2008 07:25

marky

Does NOT seem to work when calling a web service from ASP page. Still get the error after putting those names in the protocols.

Any ideas???

Marky

marky

September 2. 2008 07:28

marky

I take that back. I added those names in the wrong place. Needed to put them with the web service NOT with the app calling the service. Thanks for stimulating this old cobweb mind into action.....

AHHHH

Marky

marky

June 3. 2009 19:03

Kellie Holmes

Smile simply does it, quality.

Kellie Holmes

February 17. 2010 18:04

edwin

this is what i am looking for, thank you

edwin

March 1. 2010 18:04

Faheem

It works for me. Thanks.

Faheem

March 6. 2010 03:51

Alok Kumar Sharma

I have alredy add key in modifying web.config
following lines
  <system.web>
    <webServices>
      <protocols>
        <add name="HttpGet"/>
        <add name="HttpPost"/>
      </protocols>
    </webServices>
  </system.web>

still issued is not resolved .

What are the main reason about this problem ?

Alok Kumar Sharma

April 15. 2010 15:39

William

Many friends of mine talk about your blog anytime,
and now I am here. After read a couple of your post,
I must say that it's really great.

William

April 19. 2010 02:32

Another keyword

Great article , keeping me from working

Another keyword

April 21. 2010 20:34

Apolonia

Mantingui coses anunci com aquest m agrada molt

Apolonia

Comments are closed