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 11174
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: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
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: 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
|
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: 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...
| |