oops, I think I replied to the wrong post the last time. lots of people posting about error 500s. you know, after you sign in you have to find the thread again. Thanks for posting your solution.
Ben74, thank you so much for posting this. It is very easy to forget to add this in the web.config especially if you did not start the project as a webservice project. The error does not even give a clue that this is the issue. I was pulling my hair out
for a while with this error. Adding the above lines to the web.config fixed the error for me.
ASP.net webservice format unrecognized unexpectedly ending error
Could be permissions, but I think, as was the main topic in the previous post, you first have to find out what the error is.
If you are using Internet Explorer, turn off (on the machine you see the useless error on)
Show friendly HTTP error messages
In tools, options, advanced.
Thank you. It solved my problem. I am using IE7 with VS .NET 2003, opening a web service page.
I had the same problem as error message posted above. My problem was that I was calling the webservice with a plain old http form post - which worked fine when I built and ran the web service project locally - but once I deployed it I got the error.
What is with Microsoft with stuff like this? Why would they let this code run locally but not once deployed? If it works in one place it should work in the other...
Likely the configuration was different between the local machine and the server you deployed to.
This isn't specific to Microsoft. This kind of thing is endemic to computers - it was happening to me over 30 years ago, before there
was a Microsoft. There will just naturally be differences between Development and Production. That implies that the behavior of your program could differ when it's deployed to Production. Proper QA can help ensure this does not happen in any bad way.
Ben74
Member
30 Points
7 Posts
Re: Request format is unrecognized for URL unexpectedly ending in '/GetEmployees'.
May 10, 2006 11:23 PM|LINK
<webServices> <protocols> <add name="HttpGet"/> <add name="HttpPost"/> </protocols> </webServices>TwasBrillig
Member
285 Points
109 Posts
Re: Request format is unrecognized for URL unexpectedly ending in '/GetEmployees'.
May 11, 2006 03:47 AM|LINK
vt1991
Member
2 Points
2 Posts
Re: Request format is unrecognized for URL unexpectedly ending in '/GetEmployees'.
Mar 27, 2008 07:59 PM|LINK
Ben74, thank you so much for posting this. It is very easy to forget to add this in the web.config especially if you did not start the project as a webservice project. The error does not even give a clue that this is the issue. I was pulling my hair out for a while with this error. Adding the above lines to the web.config fixed the error for me.
ASP.net webservice format unrecognized unexpectedly ending error
cychua
Member
2 Points
1 Post
Re: Request format is unrecognized for URL unexpectedly ending in '/GetEmployees'.
Apr 19, 2008 09:20 AM|LINK
jfaigan
Member
32 Points
41 Posts
Re: Request format is unrecognized for URL unexpectedly ending in '/GetEmployees'.
May 14, 2008 06:30 PM|LINK
Phew!!!!
Thank you very much! Fixed my problem right up!
President
Cardinal Point Software Inc.
nanotasher
Participant
829 Points
179 Posts
Re: Request format is unrecognized for URL unexpectedly ending in '/GetEmployees'.
Sep 04, 2008 02:58 AM|LINK
Awesome, that fixed my problem perfectly.
masterxmac
Member
2 Points
1 Post
Re: Request format is unrecognized for URL unexpectedly ending in '/GetEmployees'.
Feb 02, 2009 02:31 PM|LINK
Thanks a ton.
I had the same problem as error message posted above. My problem was that I was calling the webservice with a plain old http form post - which worked fine when I built and ran the web service project locally - but once I deployed it I got the error.
What is with Microsoft with stuff like this? Why would they let this code run locally but not once deployed? If it works in one place it should work in the other...
johnwsaunder...
Star
11262 Points
1981 Posts
Re: Request format is unrecognized for URL unexpectedly ending in '/GetEmployees'.
Feb 05, 2009 01:29 AM|LINK
Likely the configuration was different between the local machine and the server you deployed to.
This isn't specific to Microsoft. This kind of thing is endemic to computers - it was happening to me over 30 years ago, before there was a Microsoft. There will just naturally be differences between Development and Production. That implies that the behavior of your program could differ when it's deployed to Production. Proper QA can help ensure this does not happen in any bad way.
mahe21.tri
Member
2 Points
2 Posts
Re: Request format is unrecognized for URL unexpectedly ending in '/GetEmployees'.
May 08, 2009 09:47 AM|LINK
yogeeshadiga
Member
2 Points
11 Posts
Re: Request format is unrecognized for URL unexpectedly ending in '/GetEmployees'.
May 19, 2009 01:51 PM|LINK
Thanks a lot... that was a quick solution that made my life easy