Problem during Synchronisation...
-
Hi guys.. I have a web application and in one of my aspx page i have a button to synchronise the users(user details) from the Active directory to my database table.. since the active directory has almost 4900 users the synchronisation process takes around 3hours now here comes the issue, on clicking the synchronise button the process goes on fine no issues wit it but the page with the status bar running remains idle only for about an hour or more (with the status bar showing half completed) after which the page shows "This page cannot be displayed" but the process of synchronisation goes on perfectly.. i dont want the page to display this way because after the synchronisation is over i have designed an alert box which displays "Synchronisation done successfully" but this alert box doesnt get displayed because the page is showing "Page cannot be displayed" before the end of Synchronisation process.. but on debugging, the code behind runs perfectly calling all methods and finally calling my alert box also.. but the alert box doesnt get displayed on the page except for "page cannot be displayed"... hope u guys can figure out what i really meant.. i really wanna solve this issue.. please be free to ask me if ur not clear with my question... Ur help and advice is really appreciated... Thanx in advance... Tash
-
Hi guys.. I have a web application and in one of my aspx page i have a button to synchronise the users(user details) from the Active directory to my database table.. since the active directory has almost 4900 users the synchronisation process takes around 3hours now here comes the issue, on clicking the synchronise button the process goes on fine no issues wit it but the page with the status bar running remains idle only for about an hour or more (with the status bar showing half completed) after which the page shows "This page cannot be displayed" but the process of synchronisation goes on perfectly.. i dont want the page to display this way because after the synchronisation is over i have designed an alert box which displays "Synchronisation done successfully" but this alert box doesnt get displayed because the page is showing "Page cannot be displayed" before the end of Synchronisation process.. but on debugging, the code behind runs perfectly calling all methods and finally calling my alert box also.. but the alert box doesnt get displayed on the page except for "page cannot be displayed"... hope u guys can figure out what i really meant.. i really wanna solve this issue.. please be free to ask me if ur not clear with my question... Ur help and advice is really appreciated... Thanx in advance... Tash
If the browser establishes a connection to a web server and the request takes more then the HTTP keep alive time of browser or the web server in that case you will get this error. Ideally for this type of operation web applications are not preferred; it should be done through a windows service or some other background service. But still if you want to implement this using a webapplication then you can run a background thread to do this synchronization and refresh your page let say every 30 seconds using javascript to check the progress, once the synchronization is done you can stop the refresh and show your message to the user.
WWW, WCF, WWF, WPF, WFC .... WTF
modified on Tuesday, March 30, 2010 2:01 AM
-
If the browser establishes a connection to a web server and the request takes more then the HTTP keep alive time of browser or the web server in that case you will get this error. Ideally for this type of operation web applications are not preferred; it should be done through a windows service or some other background service. But still if you want to implement this using a webapplication then you can run a background thread to do this synchronization and refresh your page let say every 30 seconds using javascript to check the progress, once the synchronization is done you can stop the refresh and show your message to the user.
WWW, WCF, WWF, WPF, WFC .... WTF
modified on Tuesday, March 30, 2010 2:01 AM
-
Hi guys.. I have a web application and in one of my aspx page i have a button to synchronise the users(user details) from the Active directory to my database table.. since the active directory has almost 4900 users the synchronisation process takes around 3hours now here comes the issue, on clicking the synchronise button the process goes on fine no issues wit it but the page with the status bar running remains idle only for about an hour or more (with the status bar showing half completed) after which the page shows "This page cannot be displayed" but the process of synchronisation goes on perfectly.. i dont want the page to display this way because after the synchronisation is over i have designed an alert box which displays "Synchronisation done successfully" but this alert box doesnt get displayed because the page is showing "Page cannot be displayed" before the end of Synchronisation process.. but on debugging, the code behind runs perfectly calling all methods and finally calling my alert box also.. but the alert box doesnt get displayed on the page except for "page cannot be displayed"... hope u guys can figure out what i really meant.. i really wanna solve this issue.. please be free to ask me if ur not clear with my question... Ur help and advice is really appreciated... Thanx in advance... Tash
Looks like a request timeout issue... Read this of how to increase it in Web.Config: httpRuntime Element (ASP.NET Settings Schema)[^] Though since you say, the syncronization finishes in the background... just want to confirm that is that another thread/process in the background that continues?
-
Looks like a request timeout issue... Read this of how to increase it in Web.Config: httpRuntime Element (ASP.NET Settings Schema)[^] Though since you say, the syncronization finishes in the background... just want to confirm that is that another thread/process in the background that continues?
-
Thanx for ur reply.. Do u have any samples or tutorials.. mean while i will try google... Thanx in advance... Tash
-
I meant to say that even if the display shows that "The page cannot be displayed" the process of synchronisation goes on perfectly on the background... The synchronisation takes place by referring to a DLL which does the process...
As already been suggested, such synchronization things should be done using a service or so. For now, it looks like its response timeout issue issue only. While you debug, probably it continously slides it so you might not get it. Try to increase the response time... but thats not advisable in general. Refer the link i provided you, it would help you.
-
Hi guys.. I have a web application and in one of my aspx page i have a button to synchronise the users(user details) from the Active directory to my database table.. since the active directory has almost 4900 users the synchronisation process takes around 3hours now here comes the issue, on clicking the synchronise button the process goes on fine no issues wit it but the page with the status bar running remains idle only for about an hour or more (with the status bar showing half completed) after which the page shows "This page cannot be displayed" but the process of synchronisation goes on perfectly.. i dont want the page to display this way because after the synchronisation is over i have designed an alert box which displays "Synchronisation done successfully" but this alert box doesnt get displayed because the page is showing "Page cannot be displayed" before the end of Synchronisation process.. but on debugging, the code behind runs perfectly calling all methods and finally calling my alert box also.. but the alert box doesnt get displayed on the page except for "page cannot be displayed"... hope u guys can figure out what i really meant.. i really wanna solve this issue.. please be free to ask me if ur not clear with my question... Ur help and advice is really appreciated... Thanx in advance... Tash
On googling out i came to know that in web.config file we have to add the following tag:
<system.web>
<httpRuntime executionTimeout="5"/>I set it 5 which means 5 seconds but after 5 seconds the synchronisation process doesnt get time out which means the executiontimeout tag is not responsible for my problem... Im confused... plz advise... Thanx in advance.. Tash