Browse by Tags
All Tags »
DEV (
RSS)
Did you know that when you put lock on a code section the thread access order is not FIFO? I mean the order that the threads will gain access to that locked code is not necessarily in the order they requested the lock? I obviously found this the hard way. It all started when one of the members in my team needed to write a web service that calls a method on a shared resource. This resource can only support one call at a time and so needed thread synchronization. The solution was obvious, he surrounded...
A friend asked me last week what is the optimal solution to deal with application version upgrades. He develops a complex product distributed across a few servers that includes a combination of managed and native code, both internal development and from external third party open source. More specifically the question was what is the best place to put his DLLs? GAC, local folders, System32, SxS? My answer to him led to this post. Before going into where to put the DLLs it should be clear that managing...
Recently I tried to call a WCF service hosted in a windows service from silverlight. I got an HTTP 404 ( Not Found ) error. This is because the WCF service is not in the same domain (=site) as the silverlight page calling it and so the action was considered cross site scripting and hence blocked. This doesn’t happen only in self hosted WCF services but also when the WCF is hosted in IIS but in a different site. The solution is to enable cross site scripting for the WCF service. This is done by adding...