Archive

Archive for the ‘TroubleShooting’ Category

How to enable ping in windows firewall in windows server 2008 r2

April 28, 2012 Leave a comment

If you are unable ping your windows server 2008 r2 machine or if you have a “one way ping problem”. You need to check whether you have it enabled in your windows firewall.To enable it , you need to do the following:

1. You need to go to control panel >> windows firewall >> Advanced settings

2. Go to Inbound Rules and enable File and Printer Sharing (Echo Request – ICMPv4-In),after you have done this ,your computer will become pingable.

How to fix “Unable to cast COM object of type ‘Microsoft.SharePoint.Library.SPRequestInternalClass’ to interface type ‘Microsoft.SharePoint.Library.ISPRequest” using PowerGUI

March 20, 2012 3 comments

I got the error today when debugging some of my PowerShell Script in PowerGUI. The script works perfectly fine in PowerShell console. Then I had spent a couple of hours scratching my head, trying to figure out why. It turns out that the PowerShell Variables Panel causes the problem. Not quite sure why, but collapse the panel fix the problem.

Problem:

It throws the following exception when debugging my PowerShell Script.

Analysis:

It turns out that the PowerShell Variables Panel causes the problem. I assume it calls some function to grab value of some of variables which cause the problems.


Solution:

Collapse or Close the variables panel fix the problem

Follow

Get every new post delivered to your Inbox.

Join 151 other followers