问题描述
.. NET 3.5
我有一个Windows服务应用程序,它有远程处理,
但是当客户端遇到错误时,客户端会得到以下内容错误
消息
"服务器遇到内部错误。有关更多信息,请在服务器的.config文件中关闭
customErrors。
我在哪里关闭它
我发现以下声明,但我在哪里发表这个声明,
客户?服务器?我试过两个但仍然得到相同的错误信息
RemotingConfiguration.CustomErrorsMode
谢谢
Peter
..NET 3.5
I have a Windows Service application and it does remoting,
but when a client incounters an error the client get the following error
message
"Server encountered an internal error. For more information, turn off
customErrors in the server''s .config file."
Where do I turn this off
I have found the following statement but where do I put this statement,
client? server ? I have tried both but still getting the same error message
RemotingConfiguration.CustomErrorsMode
Thank You
Peter
推荐答案
IIRC网络应用程序的配置文件。
IIRC the config file of the web app.
IIRC网络应用程序的配置文件。
IIRC the config file of the web app.
如果我记得正确
你必须设置相同的标签,但在< system.web>
<?xml version =" 1.0"编码= QUOT; UTF-8英寸?>
< configuration>
< system.web>
< customErrors mode =" Off" />
< /system.web>
< / configuration>
If I Remember Correctly
You have to set the same tag but inside <system.web>
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
这篇关于Windows服务配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!