Microsoft Knowledge Base Email Alertz

KBAlertz.com: (821617) - This article describes the new timeout property in Microsoft Visual Studio .NET. You can set and configure the timeout property in the application configuration file.

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]

Search KbAlertz

Advanced Search

Webmasters
Put kbAlertz on your website.
[ Click Here for more! ]





ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
The ad says 3 - but KBAlertz referrals get
** SIX MONTHS FREE **


Bug Tracking Software
For bug tracking software or defect tracking software or issue tracking software, visit Axosoft.


Community Site



We Send hundreds of thousands of emails using ASP.NET Email



Expert Web Design & Graphic Design
Design44.com

ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
The ad says 3 - but KBAlertz referrals get
** SIX MONTHS FREE **




Mentioned In








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:
Remoting Example: Channel Sink Provider
http://msdn2.microsoft.com/en-us/library/2ckwbt8a(vs.71).aspx (http://msdn2.microsoft.com/en-us/library/2ckwbt8a(vs.71).aspx)

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
Keywords: 
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