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.

Currently rated 2.0 by 4 people

  • Currently 2/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Categories:   General
Actions:   E-mail | Kick it! | del.icio.us | Permalink | Comments (4) | Comment RSSRSS comment feed

Related posts

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

Add comment


(Will show your Gravatar icon)  

  Country flag





Live preview

November 21. 2008 18:45