I've found several reports of people complaining about a similar issue, although there's not much information in them. In general they seem to be related to the host of the application, that is, works in console but breaks in ASP.NET, for instance. The first thing I would try is to simulate with NUnit what MSTest (I guess) does. Start by running the tests using nunit-console.exe and see if anything changes. Then if your project is compiled for >= .NET 4.0 please modify the nunit-console.exe.config file by forcing the nunit to run under >= .NET 4.0 ONLY: http://msdn.microsoft.com/en-us/library/w4atty68.aspx https://groups.google.com/forum/?fromgroups=#!topic/microsoft.public.axapta.programming/zrcHzjLHBm4 http://mailarchiver.org/mail/topic/web-applications-crashes-when-using-netbusinessconnector-11521030 https://community.dynamics.com/product/ax/f/33/p/22895/36688.aspx On Wed, Oct 10, 2012 at 8:25 AM, Mun Wai Chan