Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
Article ID: 821617 - Last Review: December 3, 2007 - Revision: 2.4
Information about the Timeout property and how to set this property by using the application configuration file
SUMMARY
This article describes the
timeout property in Microsoft Visual Studio 2005 and in Microsoft Visual Studio .NET. You can set and
configure the
timeout property in the application configuration file.
MORE INFORMATION
The
timeout property is the channel configuration property, and you can
specify the
timeout property for the current channel in the configuration
file.
The value of the
timeout property is an integer that specifies the period that is before
the request should time out. To request no time-out period, set
timeout to
-1.
Setting the
timeout property is a useful way to build an application by using the
configuration file. Otherwise, you must create properties and set properties
programmatically, and then you must pass values to the
constructors.
The following example shows how you can set the
timeout property in the application configuration file:
Note In the following example, the time-out period is set to 10,000.
<configuration>
<system.runtime.remoting>
<application>
...
<channels>
<channel ref="http">
<formatter ref="soap"/>
<provider ref="propsetter" username="bob" writeToConsole="true">
<endpoint allowAutoRedirect="true"/>
<endpoint preauthenticate="true"/>
<endpoint url="example.com:9000" password="xyz" />
<endpoint url="example.com:9001" password="123" />
<endpoint timeout="10000"/>
</provider>
</channel>
</channels>
...
</application>
</system.runtime.remoting>
</configuration> REFERENCES
For more information, visit the following Microsoft
Developer Network (MSDN) Web site:
APPLIES TO
- Microsoft .NET Framework 2.0
- Microsoft .NET Framework 1.1
- Microsoft .NET Framework 1.0
- Microsoft Visual Studio 2005 Standard Edition
- Microsoft Visual Studio 2005 Professional Edition
- Microsoft Visual Studio .NET 2003 Enterprise Architect
- Microsoft Visual Studio .NET 2003 Enterprise Developer
- Microsoft Visual Studio .NET 2003 Academic Edition
- Microsoft Visual Studio .NET 2002 Professional Edition
- Microsoft Visual Studio .NET 2002 Enterprise Architect
- Microsoft Visual Studio .NET 2002 Enterprise Developer
- Microsoft Visual Studio .NET 2002 Academic Edition
| kbvs2005applies kbvs2005swept kbchannels kbproperties kbweb kbconfig kbremoting kbinfo KB821617 |
Community Feedback System
Very often, it takes hours to solve a problem. Very often, you've looked high
and low, and have tried a lot of solutions. When you finally found it, chances
are, it was because someone else helped you. Here's your chance to give back.
Use our community feedback tool to let others know what worked for you and what
didn't.
Please also understand that the community feedback system is not warranted to be
correct, it's simply a system that we've built to let people try and help each
other. If something in a feedback response doesn't make sense to you, or you're
not comfortable making changes that the feedback talks about (like registry
edits), please consult a professional.
Thank you for using kbAlertz.com Feedback System.
-- Scott Cate
Be the first to leave feedback, to help others about this knowledge base
article.
(Optional) Name
(Optional)
Public URL Or Email
Comments
No
HTML -- Text Only Please