luisma
04-22-2010, 04:24 AM
Hi all,
I would like to tell you the problems I have with my web application in discountasp server and ask you for help if it is possible.
My web application has a button which creates a background thread to generate a pdf file using report viewer (.rdcl) and then to send it via hardcoded email (the first version had just one thread but now I prefer to put this process in the background thread because of takes about ten minutes). The report is created as a chain of subreports using subreporting processing, and this subreports need to access several times to the database (sqlserver 2008 and located in discountasp server too) and use the session variables managed by the application to build querys.
In my local server it executes right, but in discountasp server, after a few minutes, an exception (I can not capture it) is being generated and the application behaviour is then wrong. I suppose is the timeout for the session, because something similar happens if the report generation is in the main thread, and then the time out exception can be captured. Then:
1) Do you think could it be the problem or there is something I'm not taking into account?
2) I'm thinking about using ASP-NET SQL Server Session, do you think this could be a solution?
3) Do you know if discountasp server allows to work with background threads during just for a few minutes or they recycled?
Thanks for your time and regards
I would like to tell you the problems I have with my web application in discountasp server and ask you for help if it is possible.
My web application has a button which creates a background thread to generate a pdf file using report viewer (.rdcl) and then to send it via hardcoded email (the first version had just one thread but now I prefer to put this process in the background thread because of takes about ten minutes). The report is created as a chain of subreports using subreporting processing, and this subreports need to access several times to the database (sqlserver 2008 and located in discountasp server too) and use the session variables managed by the application to build querys.
In my local server it executes right, but in discountasp server, after a few minutes, an exception (I can not capture it) is being generated and the application behaviour is then wrong. I suppose is the timeout for the session, because something similar happens if the report generation is in the main thread, and then the time out exception can be captured. Then:
1) Do you think could it be the problem or there is something I'm not taking into account?
2) I'm thinking about using ASP-NET SQL Server Session, do you think this could be a solution?
3) Do you know if discountasp server allows to work with background threads during just for a few minutes or they recycled?
Thanks for your time and regards