Hello.
As I said last time, this is the 100th post in my blog. Almost every week-end I publish some news about my work and my private life.
According to the weekly schema, I start this post by telling you something about my work. At the beginning of the week I was working on correcting some bugs in our applications. We had also an internal delivery of our solution but it was delayed because of some nasty problems: we changed the Ajax Control Toolkit to its latest version (released at the end of September) and there was problem with
ModalPopupExtender (it was appearing multiple times on the Web page or it was adding "," to textbox which was on this control). We changed version to the release of May 2009 and our Web applications started to work.
On Friday I started working on translating error messages in one of our WCF service. I had to find how to "transport" the exception form server to client. There are two solutions: the use of typed
FaultException or using the
IErrorHandler. The last solution that I found
here, was not working well because it is impossible to mix FaultException and normal exception at the same time. In fact, there is a problem when deserializing the FaultException at the client side (it is not serialized with
NetDataContractSerializer). I also had to find out why I got the communication error when using my custom exception. In fact, it should be only serializable and not serializable by WCF (ie. you mustn't use
DataContract and
DataMember attributes in that class). Finally I started to use the first solution wit custom WCF contract containing needed information about exception at the server side in order to show to user a translated exception.
In my private life, nothing special occurred last week.