Re: "Requested registry access is not allowed" and Web Service call

From: Clint (cjmueller_at_gmail.com)
Date: 12/15/04


Date: 15 Dec 2004 06:49:15 -0800

I think I'm doing something wrong in that I tried setting the Proxy
right after creating a new instance of my service:

ws = new HashTest.iisvm03.Service1();
ws.Proxy = new System.Net.WebProxy("http://foo:80", true);
ws.CookieContainer = new System.Net.CookieContainer();
ws.Credentials = System.Net.CredentialCache.DefaultCredentials;

With no success - still trying to read from the registry. I did find a
work-around, though, in that I'm not always impersonating a user in the
application, only on remote calls. So, when my calling class fires up,
it isn't impersonating, and I can set a private proxy field in the
constructor and use it as needed when I do my calls. That, oddly
enough, seems to work.

I have no problem going that route, I'm more curious now as to what I
was doing wrong for future reference. Either way - thanks again for
helping me out - this has been bugging me for a while!

Clint



Relevant Pages

  • Re: Proxy auth with default credentials
    ... I can't auth with kerberos to the proxy, ... I'm happy I can't do that, but seeing as I'm impersonating the user on ... the IIS box. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: FileNotFoundException and Proxy constructor
    ... >> FileNotFoundException when trying to construct a web service proxy. ... >> There has been several different reasons for this in the past including ... This caused the proxy constructor to fail ... >> Graham Allwood ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: FileNotFoundException and Proxy constructor
    ... > FileNotFoundException when trying to construct a web service proxy. ... > that is reported missing changes everytime. ... > There has been several different reasons for this in the past including ... This caused the proxy constructor to fail with ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • FileNotFoundException and Proxy constructor
    ... FileNotFoundException when trying to construct a web service proxy. ... that is reported missing changes everytime. ... There has been several different reasons for this in the past including ... This caused the proxy constructor to fail with ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: Web Service client that dynamically changes posting server
    ... Let me also add that each client using this proxy has the burden of knowing ... > file into the webservice project, itself, changing it's namespace to ... > Then I created a new constructor for the proxy wherein you supply the ...
    (microsoft.public.dotnet.framework.aspnet.webservices)