Object.GetType выбрасывает NullReferenceExceptions

Я пытаюсь использовать Pex and Moles в своем проекте SharePoint. Однако я столкнулся с проблемой при запуске 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.

на атрибут, который украшает [модуль System.Moles.dll]

а также

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

на атрибут, который украшает [модуль System.Moles.dll]

0 ответов

Другие вопросы по тегам