OK I made a new website in VS 2005, as a VB.NET WebService. By default, the HelloWorld function thingy is available. I click the play button which opens up a web page. I go to click the Invoke button (this is all pre-built by VS for me), but the next thing I get is a big fat error... See below.
Server Error in '/MyWebService' Application.
--------------------------------------------------------------------------------
Request format is unrecognized for URL unexpectedly ending in '/HelloWorld'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: Request format is unrecognized for URL unexpectedly ending in '/HelloWorld'.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
Last edited by Dave Sell; May 1st, 2009 at 10:59 AM.
Nobody knows what software they want until after you've delivered what they originally asked for.
Don't solve problems which don't exist.
"If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)
OK so I go to VS 2005, begin a new Web Service Webiste project. Seems to behave the same for VB and C# projects. I "run" the project and a web page comes up with the HelloWorld link, press that and I got the Invoke button.
That section bit you see is what allows a section named <protocols> to exist. If you don't find a protocols section in the machine.config, you can make one, simply by pasting that node in.
However, I am unable to place these sections anywhere in the machine.config file. I have tried inserting them many different places. Each time I make a new website seb-service 2005 project, and it asks to create a web.config for me. No matter where I place the sections, I get erroneous results. I have yet to get a web.config that actually contains the sections in them.
Any idea exactly where to place the sections in the machine.config?
Nobody knows what software they want until after you've delivered what they originally asked for.
Don't solve problems which don't exist.
"If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)
Well, turns out the KB article was only partially helpful. I edited my machine config this way, just at the end of the system.web item, my inserted text in red:
This will affect all websites on your computer and enable the GET/POST for those applications (because machine.config is like a master config file, which web.config files 'inherit' from).