Remoting: Server encountered an internal error

时间:2022-04-25
本文章向大家介绍Remoting: Server encountered an internal error,主要内容包括其使用实例、应用技巧、基本知识点总结和需要注意事项,具有一定的参考价值,需要的朋友可以参考一下。

发生这个错误的原因是Remoting的一个配置项: <customErrors> 元素

  指示此应用程序域中的服务器通道是否将经筛选的或完整的异常信息返回给本地或远程调用方。

<?xml version="1.0" encoding="utf-8" ?> 
<configuration> 
  <system.runtime.remoting>  
    <customErrors mode="off"/> 
  </system.runtime.remoting> 
</configuration>

具体参见 http://msdn2.microsoft.com/zh-cn/library/y123fsf7(VS.80).aspx