Groups | Blog | Home
all groups > dotnet clr > april 2006 >

dotnet clr : Unauthorized Access Exception with tcp_listener.AcceptSocket();


Arkadius Roczniewski
4/11/2006 11:50:47 AM
Hello NG,

i have a big problem with establishing a network connection between two
Windows-forms Applications. The first application(server) has a
Tcplistener and the second(client) a Tcpclient. when the client wants to
connect to the server, the server-application throws this Exception:

'System.UnauthorizedAccessException: Access to the path 'Global\.net clr
networking' is denied.'

So the connection was established but the server refuses the connection.
I tried to use the Security.Permisssion -Namespaces with the
demand()-method but i can't figure it out. I don't know how to solve my
Problem. Can someone help me to solve this? I can post the source code
or the call stack of the exception, when it's helpful.
With Regards,

Arkadius Roczniewski
--
Auszubildender Fachinformatiker - Anwendungsentwicklung
Bergische Universität Wuppertal
Fachbereich E Elektrotechnik, Informationstechnik, Medientechnik
Automatisierungstechnik/ Prozessinformatik
Rainer-Gruenter-Str. 21 Gebäude FC
42119 Wuppertal
Tel.: 0202/439-1330
Jeffery Jones
4/18/2006 5:10:41 PM
On Tue, 11 Apr 2006 11:50:47 +0200, Arkadius Roczniewski
[quoted text, click to view]

I saw this same sort of problem several weeks ago: See the thread in
this same newsgroup 'Confusing networking exception'.
http://groups.google.com/group/microsoft.public.dotnet.framework.clr/browse_thread/thread/7a284f577c28330e/ce2466ef2f0c824a?lnk=st&rnum=2#ce2466ef2f0c824a

A couple of points -
This is a .NET networking performance counter (Shared memory?)
On my system it would occur only in the client with the user as a
normal 'user', not an administrator. It worked when running as an
administrator.
I tried to see if I could turn off performance counters in .NET but
couldn't find anything.
I couldn't reproduce the behaviour on other computer systems or
Windows 2000 (English) in a Virtual PC session.

In my case, it happened on a German language installation - I
hadn't considered this, but is your problem also on a German language
version?

It would be interesting to see the call stack of your exception to
Paul Horstink
6/12/2006 2:50:02 AM
I have the same error on a Windows2000 system with regular user-account (I'm
not doing a 'connect' but I use try to consume a web-service).
Anyway, I also saw a message related to the messages realted to the
performance counter as indicated by Jeffrey Tan in you other thread.
AddThis Social Bookmark Button