Hi,
I was created a web service which will execute some functions and will do
some database activities related to our project
When i execute this method directly from browser using webservice link it
sometimes throwing "Thread was being aborted" Exception.
If the time taken by the function is less then its giving proper results
else throwing this exception.
There are no redirections inside the code.
My Procedure might take update 1 hour to finish the task.
Please reply ASAP,
With Regards,
Prasad Dannani 3 11175
Hi Prasad,
Yes, I suppose you are getting this error due to execution timeouts. You may
want to increase the execution timeout for the web service by increasing the
executionTimeout value of the httpRuntime element. This element would be
found in machine.config.
--
HTH,
Manoj G
MVP, Visual Developer http://msmvps.com/manoj
"Prasad Dannani" <pr****@pennywise.com> wrote in message
news:OV**************@TK2MSFTNGP15.phx.gbl... Hi,
I was created a web service which will execute some functions and will do some database activities related to our project
When i execute this method directly from browser using webservice link it sometimes throwing "Thread was being aborted" Exception.
If the time taken by the function is less then its giving proper results else throwing this exception.
There are no redirections inside the code.
My Procedure might take update 1 hour to finish the task.
Please reply ASAP,
With Regards, Prasad Dannani
Hi,
Is it possible to specify these setting at application level.
And This error i am getting at different situation like firing the same web
service function through ASP.NET ThreadPool,
when using redirect functions inside try/catch blocks and when firing some
big sql queries
and when connecting to some sites using request and response objects etc.,
With Regards,
Prasad Dannani
"Manoj G [MVP]" <ma***@nospam.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl... Hi Prasad,
Yes, I suppose you are getting this error due to execution timeouts. You
may want to increase the execution timeout for the web service by increasing
the executionTimeout value of the httpRuntime element. This element would be found in machine.config.
-- HTH, Manoj G MVP, Visual Developer http://msmvps.com/manoj
"Prasad Dannani" <pr****@pennywise.com> wrote in message news:OV**************@TK2MSFTNGP15.phx.gbl... Hi,
I was created a web service which will execute some functions and will
do some database activities related to our project
When i execute this method directly from browser using webservice link
it sometimes throwing "Thread was being aborted" Exception.
If the time taken by the function is less then its giving proper results else throwing this exception.
There are no redirections inside the code.
My Procedure might take update 1 hour to finish the task.
Please reply ASAP,
With Regards, Prasad Dannani
Yes, definitely, you can do it at the web.config as well.
One more thing - Response.Redirect throws a ThreadAbort exception upon
completion. That is one more reason for the same. Avoid using the same.
--
HTH,
Manoj G
MVP, Visual Developer http://msmvps.com/manoj
"Prasad Dannani" <pr****@pennywise.com> wrote in message
news:ut**************@TK2MSFTNGP14.phx.gbl... Hi,
Is it possible to specify these setting at application level. And This error i am getting at different situation like firing the same web service function through ASP.NET ThreadPool, when using redirect functions inside try/catch blocks and when firing some big sql queries and when connecting to some sites using request and response objects etc.,
With Regards, Prasad Dannani
"Manoj G [MVP]" <ma***@nospam.com> wrote in message news:%2****************@TK2MSFTNGP15.phx.gbl... Hi Prasad,
Yes, I suppose you are getting this error due to execution timeouts. You may want to increase the execution timeout for the web service by increasing the executionTimeout value of the httpRuntime element. This element would be found in machine.config.
-- HTH, Manoj G MVP, Visual Developer http://msmvps.com/manoj
"Prasad Dannani" <pr****@pennywise.com> wrote in message news:OV**************@TK2MSFTNGP15.phx.gbl... > Hi, > > I was created a web service which will execute some functions and will do > some database activities related to our project > > When i execute this method directly from browser using webservice link it > sometimes throwing "Thread was being aborted" Exception. > > If the time taken by the function is less then its giving proper > results > else throwing this exception. > > There are no redirections inside the code. > > My Procedure might take update 1 hour to finish the task. > > > Please reply ASAP, > > With Regards, > Prasad Dannani > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: MichaelR |
last post by:
I'm getting a curious result from a module using WinInet on the client and
IIS 6.0/ASP.NET on the server. Can't really tell if it's a client or a
server issue.
The client module uses...
|
by: Johanna |
last post by:
Hello,
Thread was being aborted exception is thrown by my asp.net
application.
I hope someone could help me with this error that I get in windows
2003 server. This error has not occured with...
|
by: Johanna |
last post by:
Hello,
Thread was being aborted exception is thrown by IIS for my asp.net
application on win2003 server. This error has not yet occured with the same
asp.net application on
windows 2000...
|
by: Keith F. |
last post by:
Hi,
I have an asp.net web app that is intermittently throwing "Thread was being
aborted." errors in my data access component. This seems to occur when the
app is under a heavier than normal load....
|
by: Keith F. |
last post by:
Hi,
I have an asp.net web app that is intermittently throwing "Thread was being
aborted." errors in my data access component. This seems to occur when the
app is under a heavier than normal load....
|
by: hitendra15 |
last post by:
Hi following is the code which sends file to the browser means user can
download file,
but the code generates error message Thread Being Aborted., will any
one put their thoughts
protected void...
|
by: Jimi |
last post by:
Hi all, I have a user control which raises an event to the parent page when
a person clicks on a link in a datagrid.
In the event handler inside the parent page I construct a url to redirect to...
|
by: Totto |
last post by:
Hi,
I'm doing a server.transfer from a click event of a button,
but an exception is raised with "Thread was being aborted"
Anyone know why?
Thanks Tor
|
by: Daniel Knöpfel |
last post by:
Hi
I am develloping an asp.net 2.0 application. For some tasks (daily
notifications to users via email), we use background threads. I rather have
this task as background thread of the asp.net...
|
by: jediknight |
last post by:
Having recently been asked to look into some bugs in one of our old
web systems, I keep getting an error message in some try...catch
statements that I've put in.
Error message is
Thread was...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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...
|
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,...
|
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...
| |