Posted by jpluimers on 2009/09/29
Recently, we got this on a project:
inner=System.InvalidOperationException: Client found response content type of ‘text/html;charset=utf-8′, but expected ‘text/xml’.
The request failed with an empty response.
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
Usually this means that the request did not get passed from the WebServer to the actual SOAP layer.
In this particular case it was an overly active ISA admin that had blocked the access to the underlying SOAP Web Service.
–jeroen
Posted in Development, SOAP/WebServices | Leave a Comment »
Posted by jpluimers on 2009/09/29
Nick Hodges just posted he has become the tpfsadmin on sourceforge: the administrative account for the Turbo Power tools and libraries.
It is not an officially sponsored Embarcadero thing, but at best semi official.
However, it is an admirable step into getting the Turbo Power tools and libraries updated in one central place again.
Those tools include OnGuard, Orpheus, SysTools, FlashFiler, B-TreeFiler, Async Professional and many others.
So if you have your own fork of any of the Turbo Power code from sourceforge, then please drop Nick a note.
Many thanks to Nick!
–jeroen
Posted in .NET, Database Development, Delphi, Development, Software Development, Source Code Management, SourceForge, Web Development | 1 Comment »
Posted by jpluimers on 2009/09/28
At the EKON13 conference, I will be presenting a talk about record and class helpers.
This morning, my laptop did “beeeeeeep beep beep” followed by a deadly silence.
It will take a while before my spare laptop arrives at the hotel and my Vista and VM’s are working again.
So I needed to redo some of my preparations to make sure that I can do a ‘plan B’ if restoring on the spare laptop fails.
Hence below a list of useful links, not yet in a particular order, but it saves you browsing through search engine results sifting the good from the not so good info.
Posted in .NET, Delphi, Development, EKON, Event, Software Development | Leave a Comment »
Posted by jpluimers on 2009/09/21
Since bandwitdth for a lot of users can still be an issue*, it pays off to make your web-pages as light-weight as possible.
When using JavaScript and/or CSS in your sites, you can compress them to save bandwidth.
A good compressor for this is the YUI Compressor, which can compress both JavaScript and CSS.
* Bandwidth can be an issue for instance for people having only GPRS, EDGE or UMTS/3G access, or countries where DSL and cable are not abundant.
Posted in CSS, Development, JavaScript, Software Development, Web Development | Leave a Comment »
Posted by jpluimers on 2009/09/18
Somehow, CodeCentral managed to not only delete my uploaded CodeRage 4 session materials (the videos are fine!), but also newer uploads with other submissions.
Since I’m in crush mode to get the BASTA! and DelphiLive 2009 Germany sessions done, and all Embarcadero sites having to do with their membership server perform like a dead horse, I have temporary moved the downloads, and corrected my earlier post on the downloads.
I have notified Embarcadero of the problems, so I’m pretty sure they are being addressed on their side as well.
Edit 20090919: Embarcadero indicated that between 20090913 and 20090914 there has been a database restore on CodeCentral. Some entries therefore have been permanently lost.
When I get back from the conferences, and CodeCentral is more responsive, I’ll retry uploading it there, and correct the posts.
In the mean time, be sure not to save shortcuts to the current locations, as they are bound to change.
The are the new download locations can all be found in my xs4all temporary CodeRage 4 2009 download folder.

This is the full list of my CodeRage 4 sessions and places where you can download everything: Read the rest of this entry »
Posted in .NET, CodeRage, CommandLine, Conferences, Database Development, Debugging, Delphi, Development, Encoding, Event, Firebird, ISO-8859, ISO8859, InterBase, Prism, SQL Server, Software Development, UTF-8, UTF8 | 1 Comment »
Posted by jpluimers on 2009/09/16
SQL Server triggers can operate on multiple records at once.
So it is important to not only to make your triggers work properly, but also make them work performantly.
Given a table like the Users table below, which in the future is likely to be extended with fields like Initials, MaidenName, Suffix, Prefix, etc.
The client has choosen not to make the FullName calculated, but update it using a trigger.
CREATE TABLE [dbo].[Users](
[UserId] [int] IDENTITY(1,1) NOT NULL,
[FullName] [nvarchar](100) NULL,
[FirstName] [nvarchar](50) NULL,
[LastName] [nvarchar](100) NULL
) ON [PRIMARY]
A trigger that updates the FullName field is only needed for Insert and Update statements.
It needs to update the FullName for all the records in that statement, but not for any other records.
Read the rest of this entry »
Posted in Database Development, Development, SQL Server | 2 Comments »
Posted by jpluimers on 2009/09/14
http://it-republik.de/dotnet/basta/The class presented in this article is part of my “.NET Gems – Small Pieces of Code that make your Day” session that will be presented at the BASTA! conference next week in Mainz, Germany.
It is going to be a fun conference, with lots of (internationally) renowned speakers (like Oliver Sturm, Ingo Rammer, Stephen Forte, Neil Ford and Dino Esposito).
Well worth attending!
OK. Let’s show the gems, and assume you are writing a method that is not allowed to let exceptions leave it’s implementation.
This is a common case, for instance you develop COM Servers, Windows Services and to a lesser extent Web Services.
Read the rest of this entry »
Posted in .NET, BASTA!, C#, C# 2.0, Development, Event, Software Development, Visual Studio and tools | Leave a Comment »
Posted by jpluimers on 2009/09/13
Embarcadero has made available the replays of the CodeRage 4 sessions.
You can find them in the CodeRage 4 sessions overview.
In order to download them from that overview, NOTE: To access this session replay, you must be logged into EDN. you can login or sign-up (which is free).
To make it easier to find all the relevant downloads, below is an overview of my sessions and their links.
Let me know what you use it for, I’m always interested!
Update 20090918: changed the download locations because CodeCentral messed up.
Read the rest of this entry »
Posted in .NET, C#, C# 2.0, CodeRage, CommandLine, Conferences, Database Development, Debugging, Delphi, Development, Encoding, Event, Firebird, ISO-8859, ISO8859, InterBase, Java, Prism, Software Development, UTF-8, UTF8, Visual Studio and tools, XML, XML/XSD, XSD | 4 Comments »