Re: Error Message
"Charlie Poole" <[email protected]>
| Newsgroups | gmane.comp.windows.dotnet.nunit.user |
|---|---|
| Message-ID | <005401c8ccd3$45afbd10$1400000a@ferrari> |
Hi Kelly, > I am running NUnit GUI 2.4.6 under the debugger (I haven't > compiled the source locally) and am getting this message when > I turn on the break for all exceptions... > > Managed Debugging Assistant 'LoadFromContext' has detected a > problem in 'C:\Program Files\NUnit 2.4.6\bin\nunit.exe'. > Additional Information: The assembly named > 'nunit.core.interfaces' was loaded from 'file:///C:/Program > Files/NUnit 2.4.6/bin/nunit.core.interfaces.dll' using the > LoadFrom context. The use of this context can result in > unexpected behavior for serialization, casting and dependency > resolution. In almost all cases, it is recommended that the > LoadFrom context be avoided. This can be done by installing > assemblies in the Global Assembly Cache or in the > ApplicationBase directory and using Assembly.Load when > explicitly loading assemblies. > > Is this expected behavior complaining about a weird thing > NUnit just has to do or is this indicative of a setup problem? The message is correct in pointing out the fact that NUnit does something slightly edgy to inject it's own assemblies into the test AppDomain. In the past we did this through use of the GAC but stopped doing so because of some problems that arose. It's up for rethinking in the 3.0 version. Charlie ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php