Wednesday, November 23, 2011

Reset App Pool in Command Line

One of major issue happens when you customize CRM entities is, even you publish the solution, SOMETIMES your changes are not getting applied and hence you need to do a IIS Reset. This is becomes an issue,

1. when the client is also accessing the system
2. QA team performing testing in the same CRM Instance
3. Your team members may be using the system or in a debugging their code.

So instead of doing a IIS Reset, you can do a Application Pool reset. But normally that need to open the Internet Information Service (IIS InetMgr.exe) and need to navigate to App pools and you have to manyually reset all the relevent application pools.
Instead of that you may create a bat file, and call once.

@echo off
echo.
echo recycling 'CRMAppPool' Application Pool
%windir%\System32\inetsrv\appcmd recycle apppool /apppool.name:CRMAppPool
echo.

No comments:

Post a Comment