I originally posted: https://stackoverflow.com/questions/15351024/intermittent-errors-with-enterprise-library-using-silverlight-calling-rootvisual
It was titled with the Activation issue like this question Activation error occured while trying to get instance of type LogWriter
However, mine worked fine 90% of the time. It is when certain types of ajax calls are being made. It is like something is getting cached and not cleared out.
The offending line is
this.RootVisual = EnterpriseLibraryContainer.Current.GetInstance<MainPage>();
I did switch to using a Unity container, but I just end up with a different error about the container instead of activation. Seems like there should be a way to clear any DOM or cache happening so that the "this.RootVisual" which is specific to only silverlight and not even in WPF, that it would be ready to use the service locator of Current, or a Container.