I've got a static constructor on a type derived from MarshalByRefObject. My understanding of static constructors is that they fire once per type per AppDomain. So if I have a type that is used in more than one AppDomain I'd expect its static constructor to fire for each AppDomain that loads the type. However, this is not the behaviour I'm seeing when instantiating and calling a type via remoting. The type first gets loaded by the calling AppDomain and I can see the static constructor firing there, but it never fires for the remoted appdomain (in my case it is an AppDomain hosted under aspnet_wp.exe). Can anyone explain this? Is this expected behaviour?
Thanks in advance and happy new year. Ed Pinto You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.
