Object.GetType抛出NullReferenceExceptions

时间:2012-01-24 13:23:50

标签: moles pex

我正在尝试在我的SharePoint项目中使用Pex和Moles。但是在运行Pex Explorations时我遇到了问题。我收到了错误:

System.NullReferenceException: Object reference not set to an instance of an object.
  at System.Type System.Object.GetType()

另外在“Pex Exporations结果”窗口中,我看到了2个反思问题:

System.TypeLoadException: Method 'get_TargetType' in type 'System.ComponentModel.Moles.SBaseNumberConverter' from assembly 'System.Moles, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0ae41878053f6703' does not have an implementation.

在装饰的属性处     [module System.Moles.dll]

System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

在装饰的属性处     [module System.Moles.dll]

0 个答案:

没有答案