Tuesday, 15 April 2014

SharePoint 2010: How I can stop the timeout when I am debugging server side code in Powershell?

Debugging code can be frustrating at times - even more so when your attachment to the w3wp.exe times out. A simple solution to the problem is to disable the 'Ping' on the application pool. This is accessed through the 'Advanced Settings'.

Alternative, if you are lazy like me, you can run the following PowerShell script to disable it on all web applications:

Get-WmiObject -Class IISApplicationPoolSetting -Namespace "root\microsoftiisv2" | ForEach-Object { $_.IdleTimeout=0; $_.PingingEnabled=$false;  $_.Put(); }

No comments:

Post a comment