发生这个错误的原因是Remoting的一个配置项:
<customErrors> 元素 指示此应用程序域中的服务器通道是否将经筛选的或完整的异常信息返回给本地或远程调用方。
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.runtime.remoting>
<customErrors mode="off"/>
</system.runtime.remoting>
</configuration>