Click here to Skip to main content
15,913,669 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: accessing textbox which is inside ascx file Pin
Not Active20-May-10 8:57
mentorNot Active20-May-10 8:57 
GeneralRe: accessing textbox which is inside ascx file Pin
Dhyanga20-May-10 8:53
Dhyanga20-May-10 8:53 
GeneralRe: accessing textbox which is inside ascx file Pin
Sandeep Mewara20-May-10 18:54
mveSandeep Mewara20-May-10 18:54 
GeneralRe: accessing textbox which is inside ascx file Pin
Dhyanga24-May-10 3:20
Dhyanga24-May-10 3:20 
GeneralRe: accessing textbox which is inside ascx file Pin
Dhyanga20-May-10 8:32
Dhyanga20-May-10 8:32 
GeneralRe: accessing textbox which is inside ascx file Pin
PunkIsNotDead20-May-10 18:32
PunkIsNotDead20-May-10 18:32 
GeneralRe: accessing textbox which is inside ascx file Pin
Dhyanga24-May-10 3:18
Dhyanga24-May-10 3:18 
QuestionProblem with webservice that runs threaded [modified] Pin
FarmerHE20-May-10 3:23
FarmerHE20-May-10 3:23 
Sorry if my question is a bit out of the normal and my approach is less briliant. Im under education and currently on internship at a company being the only programmer on a website at the moment. To make things even better its also my first experience with ASP.NET untill now ive only made C# applications.

I have a problem with a webservice that runs threaded.

The webservice it self is rather simple. All code used to start the webservice thread is shown here

public virtual OverwriteCollectionResponse OverwriteCollection([System.Xml.Serialization.XmlElementAttribute(Namespace="http://XXXX/MAP_INHOUSE_OUT/COLLECTION:MESSAGES:V1", ElementName="OverwriteCollectionRequest")] OverwriteCollectionRequest overwriteCollectionRequest){

//Creation of Class that should run
WebserviceThread webservice = new WebserviceThread();

//Saving data to the class
webservice.overwriteCollectionRequest = overwriteCollectionRequest;

//Create a thread based on the class
Thread thread = new Thread(new ThreadStart(webservice.OverwriteCollection));

//Start the thread
thread.Start();
return new OverwriteCollectionResponse(1);


The real method takes up to two hours to run depending on amount of data. I have read about asyncrone webservices after making this but im unsure if thats the right choice to solve my problem.

The webservice is running on a IIS6 server configured to have session timeout to 300 min.
The configuration for timeout in the config file is the following
<httpruntime maxrequestlength="1000000" executiontimeout="3600">

The problem is the following:
After a random amount of time (can be all from 15 min to 25 min havent seen it below or above that) the Thread stops. Only prof that it stops is that the log file isnt updated anymore. (Using NLog as logger).

Also the data in the database isnt updated more.

Anyone that have an idea to why the thread suddenly stops?

Hope my question is clear else dont hessitate to ask for more info Smile | :)

Thanks for any help in advance
HE

modified on Thursday, May 20, 2010 9:32 AM

AnswerRe: Problem with webservice that runs threaded Pin
Martin Jarvis20-May-10 6:03
Martin Jarvis20-May-10 6:03 
GeneralRe: Problem with webservice that runs threaded Pin
FarmerHE20-May-10 6:24
FarmerHE20-May-10 6:24 
GeneralRe: Problem with webservice that runs threaded Pin
Martin Jarvis20-May-10 6:31
Martin Jarvis20-May-10 6:31 
GeneralRe: Problem with webservice that runs threaded Pin
FarmerHE20-May-10 6:41
FarmerHE20-May-10 6:41 
GeneralRe: Problem with webservice that runs threaded Pin
T M Gray20-May-10 9:36
T M Gray20-May-10 9:36 
GeneralRe: Problem with webservice that runs threaded Pin
FarmerHE20-May-10 10:48
FarmerHE20-May-10 10:48 
AnswerRe: Problem with webservice that runs threaded Pin
The Man from U.N.C.L.E.20-May-10 6:40
The Man from U.N.C.L.E.20-May-10 6:40 
GeneralRe: Problem with webservice that runs threaded Pin
FarmerHE20-May-10 6:52
FarmerHE20-May-10 6:52 
GeneralRe: Problem with webservice that runs threaded Pin
The Man from U.N.C.L.E.20-May-10 7:09
The Man from U.N.C.L.E.20-May-10 7:09 
GeneralRe: Problem with webservice that runs threaded Pin
FarmerHE20-May-10 7:19
FarmerHE20-May-10 7:19 
QuestionIE8 issue--URGENT PLZZZZ.... Pin
chetan_agarwal20-May-10 2:59
chetan_agarwal20-May-10 2:59 
AnswerRe: IE8 issue--URGENT PLZZZZ.... Pin
Yusuf20-May-10 3:05
Yusuf20-May-10 3:05 
GeneralRe: IE8 issue--URGENT PLZZZZ.... Pin
chetan_agarwal20-May-10 19:12
chetan_agarwal20-May-10 19:12 
GeneralRe: IE8 issue--URGENT PLZZZZ.... Pin
FarmerHE20-May-10 19:53
FarmerHE20-May-10 19:53 
GeneralRe: IE8 issue--URGENT PLZZZZ.... Pin
chetan_agarwal20-May-10 20:05
chetan_agarwal20-May-10 20:05 
AnswerRe: IE8 issue--URGENT PLZZZZ.... Pin
Not Active20-May-10 5:45
mentorNot Active20-May-10 5:45 
GeneralRe: IE8 issue--URGENT PLZZZZ.... Pin
Martin Jarvis20-May-10 6:04
Martin Jarvis20-May-10 6:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.