The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

import-bot (20211) [Avatar] Offline
#1
[Originally posted by dbach]

First, consider in section 6.2.2 the URLs of the result page don't match those
listed in the text.
Initial URL entered in Internet-Explorer 6.0
http://localhost/ws/helloservice1.asmx
After clicking on Greet
http://localhost/ws/helloservice1.asmx?op=Greet
Enter "Test", press Invoke and the expected XML result page is displayed.
However it shows the URL as:
http://localhost/ws/helloservice1.asmx/Greet

Because of this mismatch, I suspect something has changed in the .NET SDK
which causes the client in Listing 6.2 of section 6.3 to generate an
exception. The result of running this client is:

DsmilieotNetDotNetExamplescha_6>helloget

Unhandled Exception: System.Net.WebException: The remote server returned an
error: (500) Internal Server Error.
at System.Net.HttpWebRequest.CheckFinalStatus()
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.HttpWebRequest.GetResponse()
at HelloGet.Main(String[] args)

If I enter something like
http://localhost/ws/helloservice1.asmx/Greet?name=Test directly, I get:
"Server Error in '/ws' Application with the details indicating that the
request format is unrecognized.

Does anyone know if something has changed, and if so, how to compensate for it?

Thanks,
Dennis

System Information
-------------------
Internet Explorer
Version 6.0.2800.1106
SP1;Q818529;Q330994

Win2K
5.0.2195 Service Pack 4 Build 2195
UserGroups include Administrators and Debugger Users

Microsoft .NET Framework Version
1.1.4322.573; ASP.NET Version:1.1.4322.573
import-bot (20211) [Avatar] Offline
#2
Re: URLs and helloget
[Originally posted by fgrimes]

Hi Dennis,

This, too, is caused by the new default behavior of V1.1. According to
Microsoft Knowledge Base article #819267: "By default, in .NET Framework 1.1,
HTTP GET and HTTP POST are both disabled."

See http://support.microsoft.com/default.aspx?scid=kb;en-us;819267 for
discussion and suggested workaround.

Regards,
Fergal