Results 1 to 3 of 3

Thread: [2.0] System.Net.Sockets.SocketException - DontRoute option set - OS Vista

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2006
    Location
    Chennai, INDIA
    Posts
    58

    Exclamation [2.0] System.Net.Sockets.SocketException - DontRoute option set - OS Vista

    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,
    Sugan
    Chennai, INDIA.

  2. #2
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632

    Re: [2.0] System.Net.Sockets.SocketException - DontRoute option set - OS Vista

    Not sure what the issue is here.
    I have written some c# apps and tested them on Vista.

    One thing you really do have to take into account here is that Vista is still under development...and there are still many bugz in it, as I found out the hard way.

    Have you got the latest Vista build that was released last week?

    Woka

  3. #3

    Thread Starter
    Member
    Join Date
    Jun 2006
    Location
    Chennai, INDIA
    Posts
    58

    Exclamation Re: [2.0] System.Net.Sockets.SocketException - DontRoute option set - OS Vista

    I'm not sure which build is released last week. I'm using Windows Vista RC2 Build 5384, that came with MSDN mag
    Sugan
    Chennai, INDIA.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width