In dev, works fine. On a production machine on the line where I
var metadata=new LinqMetaData(adapter);
it throws exception "object reference is not set".
'adapter' is not null, I added logging to check if adapter was null, and it was not. I've copied the llbl pdb files to the server but I don't get any extra call stack info. It just complains about that line, and then the timer event that triggered it.
Now here's the real crazy part. Another part of the app (compiled into same exe) uses LinqMetaData, the code is the exact same and it works!! Why is this one task failing on that line?
I do have multiple tasks running triggered from System.Timers.Timer. Is linq thread safe? I don't have any issues in dev machine (with release build) when all the tasks are running.