Set connectionId threw an exception.

今天调试一个WPF程序时,出现一个问题。

程序运行后抛出异常, "Set connectionId threw an exception. XXXXXXXXXX",原因是依赖的一个dll运行出现问题。

解决办法:

在抛出异常时,可以在调试窗口local里输入$exception , 然后看innerException就可以知道是哪个dll出现问题。 


我的程序原因是dll内部自引用了一些资源,当我改了dll名字时,引用资源的路径没有改变, 导致dll运行崩溃。 
原文地址:https://www.cnblogs.com/muzizongheng/p/3170855.html