473,406 Members | 2,954 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

c# console app timeout?

Hi,
We have a c# console app that hits a db stroed proc to get data, it
keeps timing out. we tried increasing the timeout value in the
connection string, but that's not helping. it runs for about 30 sec
then times out. the stroed proc is taking about 45sec to return, but
it does return data when we call in directly in sql query analyzer. Is
there anyway to increase the amount of time we can get the app running,
rather than having it timeout like that?

I saw this:
http://msdn2.microsoft.com/en-us/lib...e.timeout.aspx

But when i tried the line:
TransactionAttribute attribute =
(TransactionAttribute)Attribute.GetCustomAttribute (this.GetType(),typeof(TransactionAttribute),false );

in my static void Main(string[] args) method, it errors out on the word
'this' as it's not static.

Thanks.

Dec 6 '06 #1
1 7307
Did you get any exception?

chanmm

"phil2phil" <ph*********@yahoo.comwrote in message
news:11**********************@n67g2000cwd.googlegr oups.com...
Hi,
We have a c# console app that hits a db stroed proc to get data, it
keeps timing out. we tried increasing the timeout value in the
connection string, but that's not helping. it runs for about 30 sec
then times out. the stroed proc is taking about 45sec to return, but
it does return data when we call in directly in sql query analyzer. Is
there anyway to increase the amount of time we can get the app running,
rather than having it timeout like that?

I saw this:
http://msdn2.microsoft.com/en-us/lib...e.timeout.aspx

But when i tried the line:
TransactionAttribute attribute =
(TransactionAttribute)Attribute.GetCustomAttribute (this.GetType(),typeof(TransactionAttribute),false );

in my static void Main(string[] args) method, it errors out on the word
'this' as it's not static.

Thanks.
Dec 7 '06 #2

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

Similar topics

3
by: Prasad | last post by:
Hi, I have a batch file which does file manipulation, I need to call this batch file using asp.net and display the o/p of the command e.g the copy command o/p of the batch file on the browser....
6
by: Kristoffer Persson | last post by:
I have a small console app that has a Run method like this: public void Run() { m_Timer = new System.Timers.Timer(1000); m_Timer.Elapsed += new System.Timers.ElapsedEventHandler(OnTimer); } ...
9
by: John Williams | last post by:
How do I load a HTML page (via URL) and parse the DOM in a Console Application? I've successfully done all this in a Windows Application by using the WebBrowser control, calling the Navigate...
13
by: Mark A. Nadig | last post by:
I've got a console application in vb.net to replicate the behavior of the old DOS command CHOICE. I've got a timer event successfully firing, however the main thread is stuck on the console.read()....
8
by: nadeem_far | last post by:
Hello All, These days I am working on a console application that will register for certain events and do some processing based on the event notification. Now, all the objects are being created...
2
by: Vikram | last post by:
I am using log4net in a vb.net console application. But its not working. I have added congif setting in app.config file also No error is generated but app. does not write to log file. ...
1
by: Joachim | last post by:
Is there a way to set a timeout for the Console.ReadLine method?
2
by: SriBhargav | last post by:
Hi, I've a question on setting timeout on console.readline() I would like the user to input something through Console.readline() in 5 secs. If there is no input in that time, I would like to...
1
by: valentin tihomirov | last post by:
The Web services are nice but they are hard to debug -- I need to observe the trace messages in the console (I do not like to have a special debug application to see the output window.)...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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
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...

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.