473,503 Members | 3,308 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Setting a timeout


I have a program that does an automated login to Outlook, does some
parsing of emails and closes.

There have been some issues with my Exchange server lately, such that it
will throw the username/password prompt when logging in. This seems
to be hanging my program because it is waiting for some type of user
input that the program is not designed to deliver. It occurs at:

objFolder.Logon("username", "password", false,true);

Questions:

1) Is there a way to set a Timeout on the .Logon method?
2) Is there a way to detect the popup dialog box and close it.
At the point that the username/password dialog appears, I know there is
a problem with Outlook and the correct procedure would be to wait and
try again later.

Any suggestions appreciated.
--
Texeme Construct
Sep 8 '06 #1
0 1138

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
5175
by: Hermes | last post by:
Hi All, Is there a way to specify the server timeout for IIS in an asp file rather than with IIS. As I would just want one page to have a long timeout period but limit the other pages in the...
4
3266
by: yohomonkey | last post by:
I want to setting the session end , but ican't waiting for the session is timeout! Who can help me?
1
3364
by: ArunPrakash | last post by:
Hi, I want to implement a method which will poll database for messages. But i want to provide a method that will specify a timeout until which it will be polled and after that it will throw an...
11
14928
by: Frank Rizzo | last post by:
Hello, My c# based windows service takes a while to dispose. I have to release bunch of resources all over the place and unfortunately it can take 20-40 seconds before I can cleanly exit. ...
1
2875
by: Scott Walters | last post by:
Hi, I have an asp.net webapp that uses some javascript in a hidden frame on the browser to poll the server every 30 seconds, using an http post. I also want my sessions to timeout in the...
2
2146
by: Swaroop | last post by:
PLS HELP..I am working on socket programming as part of my final year project. I want to know how to set a timeout on read api that reads from a socket. Is it possible using SIGALRM signal?Will...
1
3000
by: Ken Varn | last post by:
IIS has a Session Timeout setting. How does this setting coincide with the ASP.NET property Session.SessionTimeout value. If I change this value in code, will it override the IIS Session Timeout...
4
9413
by: UJ | last post by:
I have a page where the user can upload a video file. As you can guess, this may take a while. Is there a way I can change the session timeout for just this one page? I would also want to change...
1
6439
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting"...
1
10554
by: lorband | last post by:
Is there a configuration setting that will let me specify the amount of time when a transaction or request will timeout because of no response ? I see the setting connectionTimeout, but the...
0
7064
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7261
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6974
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7445
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4991
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3147
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1492
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
369
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.