Error message for Debug add-type
We cannot determine the specific cause of the error when using add-type to add classes
The following methods can be used:
Try {Add-Type-Path "C:\ lync2013\ Microsoft.Lync.Model.dll"}
Catch [Reflection.ReflectionTypeLoadException] {$_ .Exception.LoaderExceptions}
You can clearly see the cause of the error.