473,406 Members | 2,894 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

'UnauthorizedAccessException' - 'Global\.net clr networking'

Hi there,

I've been experiencing a strange issue for a short while now and have
managed to make a tiny replication of the bug.

The uploaded a VB.NET 2005 project which implements a single instance
application, it's very basic.

http://nickpateman.m6.net/Files/xpbug.zip

Previously I had been using my own implementation but have
recently decided to port to the built in .net 2005 method. Both methods
experience the same problem...

"An unhandled exception of type 'System.UnauthorizedAccessException'
occurred in mscorlib.dll
Additional information: Access to the path 'Global\.net clr networking' is
denied."

If you try running this code on a limited account in XP Pro you will
experience an unhandled 'UnauthorizedAccessException'. My understanding is
that the string literal 'Global\.net clr networking' refers to the name of a
performance counter. But quite why a performance coutner would need to be
created in order to initialise a simple TCP connection I have no idea.

This basically renders the "Make Single Instance Application" feature of
VS 2005 useless on limited accounts. Unless of course I am missing
something. I have enabled click-once security and set the application to
full-trust.

Hasa anyone got any work arounds for this? I can get the application
working by disabling the single instance feature in the project properties,
but of course I then have no interprocess communication, which is 100%
essential for what I am doing.

Thanks loads in advance!

BTW. I have found references to this problem through Google which
suggest that it's a bug with XP Pro, as apparently it does not exist on XP
Home. But unfortunately have not found a resolve for the issue.

Nick.

May 31 '06 #1
1 7141
Hi there,

I've finally got the application tested on XP Home and it appears that
the bug is not down to a limited account but the "Guest" account.

If you log on as a restricted account merely a member of "Users" the
application works fine. Although I still consider this to be a problem as
interprocess communication like this shouldn't require any special
priviledges and the .NET application framework has no way of specifying a
condition upon launching as to allow "Single instance" mode or not.

Anyway, I hope this info helps other people.

Nick.

"NickP" <a@a.com> wrote in message
news:uK**************@TK2MSFTNGP05.phx.gbl...
Hi there,

I've been experiencing a strange issue for a short while now and have
managed to make a tiny replication of the bug.

The uploaded a VB.NET 2005 project which implements a single instance
application, it's very basic.

http://nickpateman.m6.net/Files/xpbug.zip

Previously I had been using my own implementation but have
recently decided to port to the built in .net 2005 method. Both methods
experience the same problem...

"An unhandled exception of type 'System.UnauthorizedAccessException'
occurred in mscorlib.dll
Additional information: Access to the path 'Global\.net clr networking' is
denied."

If you try running this code on a limited account in XP Pro you will
experience an unhandled 'UnauthorizedAccessException'. My understanding
is
that the string literal 'Global\.net clr networking' refers to the name of
a
performance counter. But quite why a performance coutner would need to be
created in order to initialise a simple TCP connection I have no idea.

This basically renders the "Make Single Instance Application" feature
of
VS 2005 useless on limited accounts. Unless of course I am missing
something. I have enabled click-once security and set the application to
full-trust.

Hasa anyone got any work arounds for this? I can get the application
working by disabling the single instance feature in the project
properties,
but of course I then have no interprocess communication, which is 100%
essential for what I am doing.

Thanks loads in advance!

BTW. I have found references to this problem through Google which
suggest that it's a bug with XP Pro, as apparently it does not exist on XP
Home. But unfortunately have not found a resolve for the issue.

Nick.

May 31 '06 #2

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

Similar topics

7
by: Doug Taylor | last post by:
Hi, I originally posted this in dotnet.security, but have moved it here by request: Hi, I am trying to programmatically add a user with read permissions to the DACL of a registry key. ...
4
by: ASP Yaboh | last post by:
I have app that writes text files to any location of the users choosing in the network. It has been working for 18months. An exception has begun occurring where a folder on a network share is...
2
by: GM | last post by:
Any help is greatly appreciated! I'm up against a meeting deadline. Directory.CreateDirectory Method throws UnauthorizedAccessException Here is the path: ...
1
by: Hal 9000 | last post by:
In c# we have a function that creates a virtual directory in IIS 6.0 using DirectoryServices API. The code looks like this: // log in to IIS DirectoryEntry rootDir = new...
0
by: Mythran | last post by:
I'm getting the System.UnauthorizedAccessException exception when I deploy my application to a test environment. I understand that the <domain>\ASPNET account doesn't have access to write to the...
0
by: Efi | last post by:
Hi, We have a simple 3 tier application which its core application is VC++ 6.0 ATL COM running as a server application in the COM+. An asp pipe is in charge of handling the requests and passes it...
12
by: Lucas Tam | last post by:
I have a very simple loop: If (Directory.Exists(tempDirectory)) Then Try Dim Files() As String = Directory.GetFiles(tempDirectory) 'Clear out directory For Each Filename As String In Files...
0
by: nime | last post by:
I've got a problem. I cannot debug my app. which one contains WebBrowser control. I found a resolution but it's for an ASP related problem. I couldn't find a correct "user" to give permisson then...
8
by: imukai | last post by:
I have a forms-based authentication application on our intranet - ASP.NET 3.5 (C#). For security purposes there is one specific .aspx file that we have enabled Integrated Windows Authentication...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.