January 23, 2011
I’ve been struggling with an obscure WCF FaultException
that kept popping up from time to time when we worked with my services.
Basically I’d get a MessageSecurityException that says:
unsecured or incorrectly secured fault was received from the other party. See
the inner FaultException for the fault code and detail." And the inner FaultException would
error occurred when verifying security for the message."
It turns out that this is a “garbage” exception that
potentially hides behind it any exception that might have possibly
occurred when WCF tried to enforce security on the server side. The
exception itself is useless when trying to figure out what went...
January 17, 2011
I have a "Western Digital My Book World Edition" Home Network Drive drive. It's a single 1TB external hard disk drive that plugs into my router and becomes a NAS server. I can map it as a mapped drive in windows to access files directly, I can stream audio and video from it and it even has a built-in (albeit primitive) torrent client that I can manage from a web interface. It's just home grade product, not very fast but streams media and stores gigs of pictures and videos for me. I quite liked it until it died on...
June 29, 2009
I've been experiencing an assembly binding problem when using Castle Windsor in a WCF service that I'm developing. It's a bit of a complex scenario so I won't delve into the details, suffice to say that when I try to inject an IServiceBehavior into my WCF service using Windsor's Wcf Integration Facility get the following exception: "Could not load file or assembly 'System.ServiceModel' or one of its dependencies. The system cannot find the file specified."Seeing as I could'nt get to the bottom of the issue myself, I posted on the Castle Project Users Google Group and was instructed by...
June 23, 2009
If you've installed DevExpress' CodeRush (aka IDETools) for evaluation but can't find the DevExpress menu in your Visual Studio, look no further. In evaluation mode the DevExpress menu is simply disabled and cannot be made visible unless you enter a valid registration code. In my Visual Studio I can actually see the menu item flicker for a split second and then disappear.Too bad DevExpress chose to do things this way. It certainly won't in courage me to buy the product. The one remedy for this situation is that the keyboard shortcut for the DevExpress Options dialog is still available....
December 15, 2008
Good Morning. It's a fine morning here at Microsoft's Developer Academy 3 event at Airpot City, Israel. A large crowd of developers and IT personnel has already gathered at this fanciful convention center and the first lecture is set to beging, fashionably late, at 09:15.I will be live blogging the event via my twitter account. I hope my non-geeky facebook friends are not too annoyed at seeing my tweets appear in my facebook status line throughout the day. Those reading me here in the Microsoft Israel Blogs website can also keep track of my updated through the twitter box...
December 3, 2008
I've often wished for real world guidance on exceptions handling in .net applications. Deciding on a strategy for throwing and catching exceptions is tricky. On the one hand exceptions are said to be the better way of handling execution errors in code. On the other hand, exceptions bring with them the overhead of instantiating them and throwing them which could negatively affect performance.A while ago I've found some good advice in Microsoft's own Design Guidelines for Exceptions section in the MSDN Library. Particularly useful is the page on Exceptions and Performance. The whole thing isn't very long and contains a...
September 9, 2008
I don't usually link to popular blogs and I don't usually blog one-liners, but this is important enough for me to make the exceptions: If you have not turned on SSL for your GMail account yet, please do so now.
August 9, 2008
I was fortunate today to take part in the first Alt.Net "unconference" to be held in Israel and let me tell you - it was an awesome experience! The concept of Alt.Net is that a group of .net enthusiasts get together and organize a conference by themselves for themselves to discuss .net, its past, present and future. Simply put, the audience organizes and gives the talks. Here's a more profound explanation: http://davybrion.com/blog/2008/08/altnet-what-does-it-mean/ The first Alt.Net Israel meeting was held at the Ramat Gan offices of the Sela Group who were kind enough to host us on short notice. The...
June 21, 2008
Digging a little into MSMQ and how it can help me with a website tracking mechanism I'm working on, I've come up on an original idea posted by Don Demsak in his blog. Don suggests that when you need to have ASP.Net session state distributed across several web servers, you can possibly use MSMQ subqueues (a new feature in MSMQ 4.0) for storage. That is, ASP.Net could have one logical queue for each session its storing and use that to store the session data in a distributed fashion. This might prove to be faster and more scalable that...
May 17, 2008
One sentence answer: You post a short message on twitter, your friends/followers get a real time instant update of what you've written. A little more verbosely: Twitter lets you post short messages to its web service. The messages can say anything, but are limited to 140 characters only. Typically these are updates on where you are, what you're doing, whatever. They can also contain links to things on the web like, for instance, the picture you just took of a huge duck sitting on top of the Tel Aviv Municipality building. You can post these messages...