c# - Moving a time taking process away from my asp.net application -


my asp.net application generates dynamic pdf. takes while , quite heavy process. dont want users wait pdf, send there mail after generated.

so tried webservice. i'm passing id (to data database) , strings websercice's method.

but webservice (even asynchronous calls) client receives response after pdf generated. user still has wait.

so i'm kinda stuck, there must way i'm overlooking.

you don't need webservice in order ability make asynchronous invocations.

you can use threadpool.queueuserworkitem() fire-and-forget approach in aspx page, return reply sort of "work item id" - receipt or order number.

generate pdf in waitcallback pass quwi. when pdf ready, waitcallback can send email, or whatever.


use webservice if want function accessible, outside webpage. don't use strictly asynchrony.


Comments