Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / CLR / June 2006

Tip: Looking for answers? Try searching our database.

Unauthorized Access Exception with tcp_listener.AcceptSocket();

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Arkadius Roczniewski - 11 Apr 2006 10:50 GMT
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?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.