I'm trying to load a dll using System.Reflection.Assembly.Load.
I'm getting the following exception : "Exception has been thrown by the target of an invocation."
I tried adding _useLoadFromCache = true
I'm using the following code to load the assembly
AppDomain.CurrentDomain.Load(fullDllPath, _useLoadFromCache);
Any suggestions on how I can resolve this error?
A:
Apparently, it is a mismatch between the type of the arguments in the Load() method and the type of the arguments in the constructor of the object you are trying to instantiate.
Make sure that the type of the constructor parameters match the type of the arguments in the Load() method.
The error was resolved by simply running the application in debug mode. It seems that it was thrown during the bootstrap phase of the application. I've solved it by placing a breakpoint in the OnStartup() method.
Determination of brominated dioxins and polychlorinated dibenzo-p-dioxins and dibenzofurans in the atmosphere of megacities in China.
Brominated dibenzo-p-dioxins (PBDD/Fs) and polychlorinated dibenzo-p-dioxins and dibenzofurans (PCDD/Fs) are rapidly emerging pollutants found in numerous areas of the world. In this study, a method for analysis of PBDD/Fs and PCDD/Fs in the atmospheric particulate matter of megacities in China was developed and validated. This study characterized the atmospheric PBDD/Fs and PCDD/Fs distribution in seven megacities (Beijing, Chongqing, Dalian, Guangzhou, Hangzhou, Shanghai, and Xi'an) in China during winter, spring, and summer seasons in 2008. The results indicated that the concentrations of PBDD/Fs and PCDD/Fs in the atmosphere of all seven megacities ranged from 0.071 pg/m(3) to 0.482 pg/m(3) and from 0.028 pg/m(3) to 0.217 pg/m(3), respectively. For PBDD/Fs, PrnOt(PBDD
Related links:
Comments