An attempt was made to access a socket in a way forbidden by its access permissions



I've got code that's been working for years, now running on Win2003 Server
whiled logged in as the admin.

When the MS sec fixes were installed last night, this code now fails with:

System.Net.Sockets.SocketException: An attempt was made to access a socket in a
way forbidden by its access permissions

IDictionary props = new Hashtable();
props["name"] = "tcp";
props["port"] = 1234;
props["rejectRemoteRequests"] = "true";
props["bindTo"]= "127.0.0.1";

BinaryServerFormatterSinkProvider srv = new BinaryServerFormatterSinkProvider();

TcpServerChannel chnl = new TcpServerChannel(props,srv); // fails here

How can this not work - the user is the Admin?

This seems to only affect Win2003, not XP?

Help - my app is completely down until I can resolve this.
--
Thanks in advance, Les Caudle
.



Relevant Pages

  • ms sec fix caused SocketException: An attempt was made to access a socket in a way forbidden by its
    ... This is running on Win2003 Server whiled logged in as the admin. ... When the MS sec fixes were installed last night, this code now fails with: ... way forbidden by its access permissions ...
    (microsoft.public.dotnet.languages.csharp)
  • SocketException: An attempt was made to access a socket in a way forbidden by its access permissions
    ... This is running on Win2003 Server whiled logged in as the admin. ... When the MS sec fixes were installed last night, this code now fails with: ... way forbidden by its access permissions ...
    (microsoft.public.dotnet.framework.remoting)
  • Webhosting question
    ... I have a class that uses raw sockets to ping and trace route to hosts, ... works like a charm. ... access permissions" error. ... or at least allows you to impersonate an ADMIN? ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Secure host newbie - fun - humm
    ... decision, as the admin, whether or not to take down the server. ... Listen, as a security specialist, I *know* that every single box that I, ... some level of risk and that there is no "100% I'm secure" level. ...
    (Security-Basics)
  • Re: Server Operator Role
    ... domain admin and then keep in mind that a domain admin can get Enterprise Admin ... Joe Richards Microsoft MVP Windows Server Directory Services ... The server operator role allows ... the group cannot run the TS Policy. ...
    (microsoft.public.win2000.active_directory)