473,698 Members | 2,942 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ms sec fix caused SocketException : 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.

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:

System.Net.Sock ets.SocketExcep tion: 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["rejectRemoteRe quests"] = "true";
props["bindTo"]= "127.0.0.1" ;

BinaryServerFor matterSinkProvi der srv = new BinaryServerFor matterSinkProvi der();

TcpServerChanne l chnl = new TcpServerChanne l(props,srv);

ChannelServices .RegisterChanne l(chnl, false); // fails at this point
How can I resolve this?
--
Thanks in advance, Les Caudle
Mar 13 '08 #1
1 3427
Actually, it fails on the TcpServerChanne l chnl = new
TcpServerChanne l(props,srv); - and only on Win2003 Server.

As the user has admin priv, I don't see how it can fail to have proper
permissions.

Anyone have a clue - I'm dead in the water until I resolve this?

Thanks, Les Caudle

On Thu, 13 Mar 2008 09:56:25 -0500, Les Caudle <Do***********@ newsgroup.nospa m>
wrote:
>I've got code that's been working for years.

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:

System.Net.Soc kets.SocketExce ption: 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["rejectRemoteRe quests"] = "true";
props["bindTo"]= "127.0.0.1" ;

BinaryServerFo rmatterSinkProv ider srv = new BinaryServerFor matterSinkProvi der();

TcpServerChann el chnl = new TcpServerChanne l(props,srv);

ChannelService s.RegisterChann el(chnl, false); // fails at this point
How can I resolve this?
Mar 13 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1940
by: OvErboRed | last post by:
I have a program that repeatedly opens and closes TCP connections to a host on the same computer: while (true) { using (TcpClient client = new TcpClient("localhost", 54321)) { using (Stream stream = client.GetStream()) { using(StreamReader reader = new StreamReader(stream)){ ... } }
1
2614
by: Bryan Martin | last post by:
Using udp sockets inside a class called by ASP.NET By impersonating you can use a TCP socket from a external class and call it from a ASP.NET page. However, changing the socket type to UDP and binding it to a port throws an error "An attempt was made to access a socket in a way forbidden by its access permissions". I tried all the methods I knew of to get this to work such as... ASPNET added the account to the local administrators...
1
6843
by: DotNetter | last post by:
I have two computers. Both computers have Windows 2003 installed as well as Visual Studio.Net 2003 installed. Computer A has active directory set and also has .Net and the webservice called WebserviceTest with a method called Service1 that only returns the string "Hello World". I have enabled Anonymous Access and have a user called ASPNET set up with normal permissions for this user.
0
3464
by: ZR | last post by:
I am writing two applications which needs to (among other things) communicate through network, so one of them is a client and the other one is a server. I have used asynchronous socket examples found at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconblockingclientsocketexample.asp as templates (they have to be asynchronous, because application must not freeze if connection fails). I have converted the...
9
6808
by: Henrik | last post by:
I'm developing an application that uses two threads to communicate with two different devices on my network. One of the devices is reached through an API from the supplier of that device. The API has support for detecting when the connection to the device is lost and signal back to my application. When I use this whitout starting the other thread everything works fine. The problem occurs when I start the other thread where the following...
0
3136
by: oferns | last post by:
Hi, apologies for the cluncky title.... Using WinXpSP2 & VS2005 Express editions..... I am writing an asynchronous socket client and I am getting a SocketException error on creating the socket: + EnableBroadcast 'this.client.EnableBroadcast' threw an exception of type 'System.Net.Sockets.SocketException' bool
4
5012
by: sd1978 | last post by:
Hi, I have placed a webservice in the webserver. When I access it from a webpage, default.aspx on a click of a button i get the following error: No connection could be made because the target machine actively refused it Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details:...
2
1922
by: XenReborn | last post by:
Hi, I wrote a simple socket application, which connects to a simple socket server application I also wrote, the server opens a socket, listens, accepts connections, sends back a string of information and then disconnects. Problem is the client, is the harder to manage, I use blocking mode to receive, after the timeout receive is supposed to throw a socketexception (according to the docs) but it never does... please help me... the code...
0
5890
by: kuguy | last post by:
Hi all, I'm new to the forums, so I hope this isn't in the wrong place... I have that "Software caused connection abort: socket write error" exception error that i've never meet before. Basically what im trying to do is the following: - a client connect to a server using sslsocket. - server receive the connection and reply with the first part of the data and keep the connection open. - then client receive the reply and request for...
0
8683
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8611
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9170
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9031
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8876
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6531
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5867
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4372
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4624
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.