No exception when programmatically add firewall exception to my application in standard user mode RRS feed

  • Question

  • From my application, programmatically I am adding firewall exception to my application. I used below code snippet for the same.


    manager.LocalPolicy.CurrentProfile.ExceptionsNotAllowed = false;

    In XP, I am getting access denied error when run this in standard user mode.

    But in Vista, For the first line I am not getting any error also it does nothing. In the second line only getting access denied exception.

    Let me know why no exception in the first line when run in standard user mode.

    Thanks in Advance

    Thursday, April 1, 2010 10:50 AM