By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,688 Members | 1,888 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,688 IT Pros & Developers. It's quick & easy.

Thread was being aborted

P: n/a
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
Nov 23 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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

Nov 23 '05 #2

P: n/a
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


Nov 23 '05 #3

P: n/a
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
>
>



Nov 23 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.