Hi All,
I am working on an application which interacts with a server through webservice call. The application runs fine with normal user accounts on the target platform. However, when I try to run the same application under Guest account I am getting the following exception.
"Access to the path Global\.net clr networking is denied"
After debugging, I found that it is causing exception at the line where I am using
ServicePointManager's Expect100Continue property.
I by-passed using that property and tried, but it fails in the webservice call with the following exception.
“Error creating the Web Proxy specified in the 'system.net/defaultProxy' configuration section”
After searching in Google, found the reason in one of the msdn site that,
“The first time you call a System.Net method we do a handful of setup operations, like loading WS2_32.dll. One of the things we do is initialize the System.Net performance counters, which the Guest account doesn't have sufficient permission to do. So, unfortunately, the answer is "No, it's not possible to use this function when logged in as the guest account."
Also, in one of the site/forum, I found that it is the issue with .Net framework and the issue will be fixed in the next release of .Net framewrok (i.e. 4.0).
I checked the target platform and found that it had .Net framework 3.5 that comes by default with Win7.
I then installed, .Net 4.0 and ran the application in Guest account. The issue still exists.
I ran the same application under Guest account on another similar platform. It ran fine on that :(. I checked what is the difference between the one with the issue and the one which works fine for Guest account, I found that the working one had VS2008, SP1, .Net4.0 installed and .Net SDK installed on it.
I then installed all these components on the non-working platform. But still the issue is there.
Now I am confused, why is that same application is working fine under Guest account on one and it gives exception on the other.
Any help is really appreciated as I am stuck with the issue.
Thanks in advance.