I'm using Spring.Net to dynamic load my object graph.
10 .exe consoles will start on the same time and via Spring.Net they will instantiate the same libraries. The consoles have no references to the libraries. 1 out of 10 times I get an Exception when Spring.Net (using reflection) creates the instances. I’m not sure why this happens, but probably it has something to do with the 10 consoles starting on the same time. It seems to happen often when the server has been rebooted (Windows Server 2008 R2)
Any ideas are appreciated!
Here is an stacktrace where it cannot load a reference to odp.net (referenced from the GAC)
System.IO.FileLoadException: Could not load file or assembly 'Oracle.DataAccess, Version=220.127.116.11, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The process cannot access the file because it is being used by another process. (Exception from HRESULT: 0x80070020)
User contributions licensed under CC BY-SA 3.0