Windows服务配置文件 [英] Windows Service config file
问题描述
.. 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
推荐答案
4月22日,10:59 * am,Peter < czu ... @nospam.nospamwrote:
On Apr 22, 10:59*am, "Peter" <czu...@nospam.nospamwrote:
.NET 3.5
但是当客户端遇到错误时客户端会收到以下错误
消息
服务器遇到错误内部错误。有关更多信息,请在服务器的.config文件中关闭
customErrors。
我在哪里关闭
.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
IIRC网络应用程序的配置文件。
IIRC the config file of the web app.
这是什么意思IIRCWeb应用程序的配置文件。 " ?
这是我在app.comfig文件中的内容,但是客户端仍然会收到相同的错误消息
。
<?xml version =" 1.0"编码= QUOT; UTF-8英寸?>
< configuration>
< system.runtime.remoting>
< customErrors mode =" Off" /> ;
< /system.runtime.remoting>
< / configuration>
" Ignacio Machin(.NET / C#MVP) " < ig ************ @ gmail.comwrote
留言
news:00 ********** ************************ @ x41g2000 hsb.googlegroups.com ...
4月22日上午10:59 ,彼得 < czu ... @nospam.nospamwrote:
What does this mean "IIRC the config file of the web app." ?
This is what I have in my app.comfig file, but the client is still getting
the same error message.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.runtime.remoting>
<customErrors mode="Off"/>
</system.runtime.remoting>
</configuration>
"Ignacio Machin ( .NET/ C# MVP )" <ig************@gmail.comwrote in
message
news:00**********************************@x41g2000 hsb.googlegroups.com...
On Apr 22, 10:59 am, "Peter" <czu...@nospam.nospamwrote:
.NET 3.5
但是当客户端遇到错误时客户端会收到以下错误
消息
服务器遇到错误内部错误。有关更多信息,请在服务器的.config文件中关闭
customErrors。
我在哪里关闭
.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
IIRC网络应用程序的配置文件。
IIRC the config file of the web app.
4月22日,4:50 * pm,彼得 < czu ... @nospam.nospamwrote:
On Apr 22, 4:50*pm, "Peter" <czu...@nospam.nospamwrote:
这是什么意思IIRC是网络应用程序的配置文件。 ?
What does this mean "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服务配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!