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

Signature
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
Fax.: 0202/439-1944
Jeffery Jones - 18 Apr 2006 22:10 GMT
>'System.UnauthorizedAccessException: Access to the path 'Global\.net clr
>networking' is denied.'
[quoted text clipped - 4 lines]
>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.
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_thre
ad/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
see if it is the same type of failure.
Paul Horstink - 12 Jun 2006 10:50 GMT
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.
Has a solution been found already?