Wednesday, September 12, 2007

WCF timeout exception

I know I said WCF is not well documented, and I still believe it but I must say that when I posted about this issue I got a guy from Microsoft (named Richie) who really stuck with me to help me solve the problem. Even though I solved it, I still don't understand why. Now I'll post about it (and the solution) so hopefully I will help somebody with it and maybe some one can explain to me why the generated code with svcutil does not have what I want.

It all started implementing security features in the DeKlarit WCF Addin. When I finally got it working I started testing, and at some point the server did not respond and the client exited with a TimeoutException. I added trace log and message log and noticed that it always felt on the 15th communication.

After going thru the Indigo forum and Googled around I found the problem is due to the amount of concurrent connections opened and the timeout the have by default. What?!. Well, that's exactly what I thought, at least the NetTcpBinding (the one I'm using right now) has a default configuration that works in some limited cases.

How did I solve it? Closing the base channel every time so the connections won't add up. Even though it's been fixed I still don't understand why the generated code by the svcutil does not have those "close" calls.

Somebody? Anybody?

Read Full Post

Monday, September 10, 2007

WCF not well documented!

I know it's a pretty new technology, but I believe Microsoft should have done a better job with it's documentation. If you take a look at Microsoft's WCF forum you'll notice for the kind of questions people is doing that something is missing. There's of course the WCF for Dummies example where you host your services in your IIS and create a win app as the client. Everything goes smooth there. But what if you want your services to run as a Windows Service? what if you want to test it as a ConsoleApp?

I believe there's still some critical parts missing. If you come from Remoting you had an easy way to startup all your services with the RemotingConfiguration class, but in WCF there's nothing like it so if you have 10 or 20 services, as I have, you have the write two lines of code to create the service and open it to each and everyone of them... not cool! I've been trying to avoid it but I guess I'll have to run create that class myself. For some magical reason when you host your services in IIS, IIS starts them up. What about the rest of us?

It seems to me Microsoft was urged to release WCF and some critical parts are missing and other not well documented or not documented at all (it's real hard to find good info).

Read Full Post

Friday, August 31, 2007

Been there done that!

I just wanted to say that with Alejandro we finished the PS3 Resistance.

Next stop, Warhawk

Read Full Post

Monday, August 27, 2007

Downgrade from Vista to XP

I recently read on Fake Steve's blog about Lenovo offering downgrades on their notebooks form Vista to XP. It took a while for some people to realize Vista is a pain in the ass. Hp is also doing it cause even Microsoft itself is simplifying the way to do it.

I don't whant to brag (much) but don't say you didn't see that coming :)

Read Full Post

Thursday, August 23, 2007

Microsoft Tafiti

Google has proved that a good search engine has nothing to do with looks(1). They came out of nowhere with the simplest UI ever, no adds, no categories, nothing (at least at first sight) and rule the Internet. Suddenly being at the top of the Google result page was what everyone wanted and page rank became an obsession for some people.

But now, there's a new search engine called tafiti (Swahili for "do research") that has a very appealing UI (done with Silverlight). Obviously Microsoft or any other company couldn't compete with Google's simple yet efective design so they went a little further and tried a new thing.
At first look Tafiti is a cool web search site. It also has a simple way to show the results, so far with no adds, but it also has a more complex way (see it yourself).
Another cool feature is the possibility of saving and tagging results right away. Yes, I know Google does that, but Google saves every little search you did (some of them you probably wish it didn't). Tafiti lets you drag your result to the right to save them and tag them. It also shows you results from feeds, news, images and books.


One more thing, if you tafiti my name I'm at the top of the results so it looks the index engine is working just fine ;)


(1): Goomez has proved that too, but that's for another post :)

Read Full Post