Debug add-type 的错误信息

简介:

在使用add-type添加类的时候我们无法判断具体的错误原因

Image

可使用以下方法:

try {Add-Type -Path "C:\lync2013\Microsoft.Lync.Model.dll"} 

catch [Reflection.ReflectionTypeLoadException]{$_.Exception.LoaderExceptions}

 

Image

 

可清晰看到错误的原因



转自handsome7038 51CTO博客,原文链接:http://blog.51cto.com/lixiaosong/1609244

相关文章
|
10月前
|
API Android开发 开发者
failed to set system property error code: 0x18
failed to set system property error code: 0x18
461 1
|
编译器 Serverless Go
Fail to start function, Code:1
Fail to start function, Code:1
83 2
error • The parameter ‘name‘ can‘t have a value of ‘null‘ because of its type错误
error • The parameter ‘name‘ can‘t have a value of ‘null‘ because of its type错误
编译x264:avisynth_c.h:825:3: error: unknown type name ‘HMODULE‘
编译x264:avisynth_c.h:825:3: error: unknown type name ‘HMODULE‘
173 0
解决办法:error: unknown type name ‘__int64‘
解决办法:error: unknown type name ‘__int64‘
526 0
|
程序员 算法框架/工具 Caffe
解决办法:error: 'size_t' does not name a type、unknown type name 'size_t'
解决办法:error: 'size_t' does not name a type、unknown type name 'size_t'
809 0
Whitelabel Error Page There was an unexpected error (type=Not Found, status=404). No message availab
Whitelabel Error Page There was an unexpected error (type=Not Found, status=404). No message availab
225 0
Q_OBJECT 导致 error: undefined reference to `vtable for XXXX' 错误
Q_OBJECT 导致 error: undefined reference to `vtable for XXXX' 错误
767 0
|
Android开发
1--debug时安卓源码不一致问题--Source code does not match the bytecode
AS--debug时:Source code does not match the bytecode 解决方案:保持模拟器与编译版本一致,即: 编译版本与运行版本一致
3667 0