Hi All,

I use DontRoute option for a socket in my application which works with no issues in Windows 2000 and Windows XP but throws an exception in Windows Vista RC2.

Here is the code:

tcpClient.SetSocketOption(SocketOptionLevel.Tcp, SocketOptionName.DontRoute, 1);

This is the exception Message;

Exception: System.Net.Sockets.SocketException
Message: An unknown, invalid, or unsupported option or level was specified in a getsockopt or setsockopt call
Source: System
at System.Net.Sockets.Socket.SetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName, Int32 optionValue, Boolean silent)
at System.Net.Sockets.Socket.SetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName, Int32 optionValue)


Are there any security options changed in Vista to resolve this issue or is there anything else that i can do with the code.

PS: When i removed the DontRoute option in my code, I'm able to use the application and i don't find any issues.

Thank you,