I use Unity to resolve my instance. Include WCF service.
But I found a trick problem. I deploy my WCF program to IIS (WAS), and it's ok for running my web service.
After IIS(WAS) recycle application pool, and I'm sure my register code has been executed. But now web service throw a exception, say
"Exception occurred while: while resolving."
Then I log information from IIS service, it's say I don't register this type.