The server committed a protocol violation- July 25, 2006 One of the issues involving XML-RPC.NET that turns up fairly frequently is when the library throws an instance of System.Net.WebException with the message ""The server committed a protocol violation". This usually occurs because from .NET 1.1 SP1 onwards the parsing of HTTP responses became much more strict, as a security measure to prevent attacks which exploit malformed HTTP status lines and headers. The strict behaviour can be switched off via the application config file: <xml...http://www.cookcomputing.com/blog/archives/000556.html Adding a File to the Compile ItemGroup- July 22, 2006 I've finally got round to switching from NAnt to MSBuild for building XML-RPC.NET so I'm tentatively finding my way around MSBuild at the moment. One thing I wanted to do was to ensure that builds of the XML-RPC.NET assembly do not have a valid version number when built from within the Visual Studio IDE, so they don't get confused with proper builds. I use a file called AssemblyBuildNumber.cs, created during a build, to define the build number so I wanted to exclude that from builds within...http://www.cookcomputing.com/blog/archives/000555.html The requested FTP command is not supported when using HTTP proxy- July 18, 2006 I was using the FtpUpload task from the MSBuild Community Tasks Project and after moving to a different machine started catching an InvalidOperationException with the message "The requested FTP command is not supported when using HTTP proxy". It turns out that only the RETR, LIST, and NLST methods are supported by System.Net. FtpWebRequest when a HTTP proxy is configured and it doesn't matter that you are not setting a proxy in your code: if a HTTP proxy (not FTP proxy) is configured in the...http://www.cookcomputing.com/blog/archives/000554.html New Release of XML-RPC.NET- July 13, 2006 FYI there is a new release of XML-RPC.NET available. This release fixes the problem I mentioned a couple of weeks ago whereby ASP.NET applications running under medium trust were experiencing VerificationExceptions ("Operation could destabilize the runtime") when using XML-RPC.NET. I build a version with all switch statements containing more than a handful of conditions replaced by if-else statements and Kevin Harder at Telligent verified that this fixed the problem. This makes it...http://www.cookcomputing.com/blog/archives/000553.html Postel's Robustness Principle Revisited- July 4, 2006 Right now I'm fixing some code, originally written by someone long departed from our development group, which decodes encoded words in email message headers. Encoded words makes it possible to include non-ASCII text in headers. This sample contains two encoded words: Subject: =ISO-8859-1BSWYgeW91IGNhbiByZWFkIHRoaXMgeW8== =ISO-8859-2BdSB1bmRlcnN0YW5kIHRoZSBleGFtcGxlLg=== The three parts of an encoded word are character set, encoding (base64 or printed quotable), and encoded..http://www.cookcomputing.com/blog/archives/000551.html Outsourcing Lowers Expectations- July 3, 2006 James Robertson discusses a rather provocatively titled piece by James McGovern which describes an anecdote about how outsourcing lowers expectations for individual consultant productivity Perhaps this lowering of expectations applies to in-house developers and not just consultants. After all what would happen if when taking on permanent staff you gave your recruiting agency a job description and then simply accepted the developers they sent you without interviewing or selecting...http://www.cookcomputing.com/blog/archives/000549.html |