I need to lock my web application, remotely. however, i tried App_Offline.htm to make offline mode. but i need to stop the applcation atelast two days once. So, i can manage my complete web application under my control.
Anyone can guide that how to achieve this.? I'm using Asp.net 3.5 with SQL 2005.
Waiting for your kind reply. Any help will be greatly appreciated.
Thanks for your quick reply. can i do some more of favor in Global.asax file.? So, it will stop webserver automatlically as time basis. So, i can manually restart the service, from the client request.!
AL MUBARAK
Member
160 Points
112 Posts
How to Stop the runnning application remotely.
Dec 09, 2012 07:31 AM|LINK
Dear All,
I need to lock my web application, remotely. however, i tried App_Offline.htm to make offline mode. but i need to stop the applcation atelast two days once. So, i can manage my complete web application under my control.
Anyone can guide that how to achieve this.? I'm using Asp.net 3.5 with SQL 2005.
Waiting for your kind reply. Any help will be greatly appreciated.
Regards
Mubarak
Al Mubarak
oned_gk
All-Star
30969 Points
6338 Posts
Re: How to Stop the runnning application remotely.
Dec 09, 2012 07:52 AM|LINK
try remote start/stop service using batch file
Start.bat
echo start PING server services… sc \\<ipaddress> start HTTPFilter sc \\<ipaddress> start IISADMIN sc \\<ipaddress> start lanmanserver sc \\<ipaddress> start MSSQLSERVER sc \\<ipaddress> start SQLBrowser sc \\<ipaddress> start SQLWriter sc \\<ipaddress> start W3SVC sc \\<ipaddress> start WebClientstop.bat
echo STOPPING server services… sc \\<ipaddress> stop HTTPFilter sc \\<ipaddress> stop IISADMIN sc \\<ipaddress> stop lanmanserver sc \\<ipaddress> stop MSSQLSERVER sc \\<ipaddress> stop SQLBrowser sc \\<ipaddress> stop SQLWriter sc \\<ipaddress> stop W3SVC sc \\<ipaddress> stop WebClientyou can also use task scheduler, login first to server
AL MUBARAK
Member
160 Points
112 Posts
Re: How to Stop the runnning application remotely.
Dec 09, 2012 08:43 AM|LINK
Dear Oned_gk,
Thanks for your quick reply. can i do some more of favor in Global.asax file.? So, it will stop webserver automatlically as time basis. So, i can manually restart the service, from the client request.!
Hope you understand. Waiting for your kind reply.
Al Mubarak
oned_gk
All-Star
30969 Points
6338 Posts
Re: How to Stop the runnning application remotely.
Dec 09, 2012 12:02 PM|LINK
AL MUBARAK
Member
160 Points
112 Posts
Re: How to Stop the runnning application remotely.
Dec 09, 2012 12:08 PM|LINK
Hi,
Can you please help me with some coding part.!
Regards,
Mubarak
Al Mubarak