Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Community
Community
Notifications
close
  • Forums
  • Knowledge Center
  • Events & Webinars
  • Ideas
  • Blogs
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Sustainability
Sustainability

Join our "Ask Me About" community webinar on May 20th at 9 AM CET and 5 PM CET to explore cybersecurity and monitoring for Data Center and edge IT. Learn about market trends, cutting-edge technologies, and best practices from industry experts.
Register and secure your Critical IT infrastructure

What does EwsBindingConfig Timeout Properties represent?

SmartConnector Forum

Schneider Electric support forum about SmartConnector applications for integration of other building management systems (BMS) into EcoStruxure Building Operation.

cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Schneider Electric Community
  • EcoStruxure Building
  • SmartConnector
  • SmartConnector Forum
  • What does EwsBindingConfig Timeout Properties represent?
Options
  • Subscribe to RSS Feed
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Experts
User Count
JeffBowman
Sisko JeffBowman Sisko
164
ardak
ardak Schneider Alumni (Retired)
34
sesa180908_brid
Commander sesa180908_brid Commander
34
mike_meirovitz
Commander mike_meirovitz
21
View All

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Solved Go to Solution
Back to SmartConnector Forum
Solved
sesa180961_brid
Lieutenant sesa180961_brid Lieutenant
Lieutenant

Posted: ‎2016-10-11 07:43 AM

0 Likes
8
853
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2016-10-11 07:43 AM

What does EwsBindingConfig Timeout Properties represent?

I am using the EWS library in my program. I am receiving this error for some of my AS devices when I try to get the EWS Client.

GetEwsClient has an exception for http://xx.xxx.xx.xxx/EcoStruxure/DataExchange. The request channel timed out while waiting for a reply after 00:29:56.9976998. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The time allotted to this operation may have been a portion of a longer timeout.. The HTTP request to 'http://xx.xxx.xx.xxx/EcoStruxure/DataExchange' has exceeded the allotted timeout of 00:30:00. The time allotted to this operation may have been a portion of a longer timeout.

I noticed that I can pass my own EwsBindingConfig to this method to overwrite the default timeout. The intellisense only says it takes a double but does not tell if represents seconds or minutes.


Is it timeout seconds or minutes?

Tags (3)
  • Tags:
  • ews
  • ewsbindingconfig
  • timeout
Reply
  • All forum topics
  • Previous Topic
  • Next Topic

Accepted Solutions
sesa180908_brid
Commander sesa180908_brid Commander
Commander

Posted: ‎2016-10-11 07:48 AM

0 Likes
7
827
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2016-10-11 07:48 AM

Maneesh,

All timeout values are in seconds.

If you use the overloaded constructor for EwsClient which allows you to supply your own binding config I would recommend also using the static EwsClient.DefaultBindingConfig to retrieve the default binding and then update only those properties you need to.




See Answer In Context

Reply
Replies 8
sesa180908_brid
Commander sesa180908_brid Commander
Commander

Posted: ‎2016-10-11 07:48 AM

0 Likes
7
828
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2016-10-11 07:48 AM

Maneesh,

All timeout values are in seconds.

If you use the overloaded constructor for EwsClient which allows you to supply your own binding config I would recommend also using the static EwsClient.DefaultBindingConfig to retrieve the default binding and then update only those properties you need to.




Reply
JeffBowman
Sisko JeffBowman Sisko
Sisko

Posted: ‎2016-10-11 07:53 AM

0 Likes
2
828
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2016-10-11 07:53 AM

Beyond what Mark has said, it might be worth debugging exactly why you are timing out as well, while changing the default binding config may 'hide' the issue, if SBO is taking over 30 seconds to respond to an EWS request, this is worth noting as it may be a sign of an overloaded system.

Reply
sesa180908_brid
Commander sesa180908_brid Commander
Commander

Posted: ‎2016-10-11 07:59 AM

0 Likes
1
828
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2016-10-11 07:59 AM

Actually, the default timeout as described above is 30 minutes (not seconds). 

Regardless, Jeff makes a very valid case.  Are you seeing timeouts that are shorter?  If so, then it's not the client that's timing out and changing the value wouldn't matter.

Reply
sesa180908_brid
Commander sesa180908_brid Commander
Commander

Posted: ‎2016-10-11 08:01 AM

0 Likes
0
828
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2016-10-11 08:01 AM

I'm probably confusing matters.  The timeout property values on the binding is in seconds but the default timeout is actually 1800 (which is 30 minutes worth of timeout).

Reply
sesa180961_brid
Lieutenant sesa180961_brid Lieutenant
Lieutenant

Posted: ‎2016-10-11 08:10 AM

0 Likes
2
828
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2016-10-11 08:10 AM

Hi Mark,

I could not find the DefaultBindingConfig on the EwsClient.

Could you please share a code snippet?

Reply
sesa180908_brid
Commander sesa180908_brid Commander
Commander

Posted: ‎2016-10-11 08:14 AM

0 Likes
1
828
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2016-10-11 08:14 AM

What NuGet version are you using?

Reply
sesa180961_brid
Lieutenant sesa180961_brid Lieutenant
Lieutenant

Posted: ‎2016-10-11 08:21 AM

0 Likes
0
828
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2016-10-11 08:21 AM

I have 1.3.45. I will update to the latest and see if that makes a difference. Thanks!

Reply
sesa180961_brid
Lieutenant sesa180961_brid Lieutenant
Lieutenant

Posted: ‎2016-10-11 08:46 AM

0 Likes
0
828
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2016-10-11 08:46 AM

That worked. Had to update Ews.Client to the latest (v2.1.83) and here is the code.

          private static EwsBindingConfig _ewsBindingConfig = EwsClient.DefaultBindingConfig;

          // all in seconds

          _ewsBindingConfig.SendTimeout = 60;

            try

            {

                var credentials = new EwsSecurity

                {

                    AuthenticationScheme = AuthenticationSchemes.Digest,

                    Username = username,

                    Password = password

                };

                return new EwsClient(credentials, url, _ewsBindingConfig);

Reply
Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

 
To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2025 Schneider Electric

This is a heading

With achievable small steps, users progress and continually feel satisfaction in task accomplishment.

Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.

of