Last post Jan 31, 2009 01:37 PM by TATWORTH
Jan 05, 2009 02:43 PM|compactor|LINK
I have been looking at this post:
http://forums.iis.net/t/1153995.aspx and is there any way to make it work without using a thread on its own, as the poster says, with async calls? Newbie here so would really like some info, or perhaps a few examples? Pointers to other articles or posts
please? Google does not return much for me!
Jan 07, 2009 10:24 AM|TATWORTH|LINK
What are you trying to do?
Do you have local administrator access to your server?
Jan 07, 2009 10:48 AM|Danny117|LINK
I might have read that post wrong. Are you sure you want to call a webservice syncronously from a mobil app? If the webservice locks up the phone will lock up. I know you can make the asyncronous call if you try. You pass in the sub you want executed
when the webservice returns data. Its not hard to do.
Jan 07, 2009 10:58 AM|TATWORTH|LINK
There are various methods of achieving asyncronous operation, depending on the hosting envirnoment.
Jan 07, 2009 03:06 PM|compactor|LINK
Thanks for the replies. As I said, I am a newbie at asp.net and also async calls. Yes, I know it will all lock up if I call it syncronously, but I dont know how to do the async bit, which is why I need help with either some articles or examples, so that
I can learn!!
Again, thanks for the replies,
Jan 07, 2009 03:36 PM|TATWORTH|LINK
Where is the site to be hosted? If hosted on your own server, you use a windows service to run all the long-running actions. All that is necessary is a means for for the web site to flag that work is to be done.
Jan 07, 2009 03:41 PM|TATWORTH|LINK
What is the nature of the long-running process? Is it a single shot process? Does it require actions with parameters to be queued?
Jan 08, 2009 08:07 AM|compactor|LINK
Its just like the article says, each device will wait for the contents of a specific folder to change, and then notify the device. But with a couple of hundred devices, the threads will run out. I need to be able to run it async so as not to use all the
threads up. But I dont know how to monitor the folder async and then inform the device. Hope this clears it up.
Jan 08, 2009 08:23 AM|TATWORTH|LINK
What are the folders that need to be monitored?
This sounds like a job for a Windows Service to monitor 0 to N folders defined in some database table.
How often do the folders need be polled?
What are the devices you mentioned?
Jan 08, 2009 09:00 AM|TATWORTH|LINK
Where is the site to be hosted? This is very important as it affects the scope of possible solutions.
Jan 31, 2009 04:23 AM|compactor|LINK
Sorry for the long gap, been trying things out. Basically i have tried what you suggested and it works, ie windows service etc. But the main problem is that the mobile device (wm5 pda) is behind the network providers nat, so the ip address gets changed.
I need to get the pda to make a long lived webrequest (approx 10 minutes) and do this async at the webservice, but after about 2 minutes, it times out at the webservice.
Hope i have made it clear.
Jan 31, 2009 01:37 PM|TATWORTH|LINK
>I need to get the pda to make a long lived webrequest (approx 10 minutes) and do this async at the webservice, but after about 2 minutes, it times out at the webservice.
The PDA needs to make a trigger call that posts a request to the queue and gets the id of the queue entry. The PDA then polls say every minute until the job is done and the result is posted.