Re: webservice problem system.net.webexception
From: nitesh (niteshs_at_yahoo.com)
Date: 11/17/04
- Next message: Jacek Hełka: "Re: Declarative security"
- Previous message: Rahul Kumar: "Re: Strong names ...."
- In reply to: Nicole Calinoiu: "Re: webservice problem system.net.webexception"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 17 Nov 2004 02:16:58 -0800
Hi Nicole, thanx for the response, I managed to solve the problem
Heres what I did and had to check
1. first check the local system policy and make sure the local system
account is not set as a member of the guest account since the guest
account has in its security policy "Deny access to this computer from
the network", you could remove the guest account from here if u wish
(this is under local security settings/user rights assignment), I made
mine look at the User account instead.
2. Make sure anonymous access is not ticked in IIS directory security,
make sure integrated windows security is ticked.
3. Test the client on the local machine, you should see the
system.net.webexcpetion access is not allowed : 401 message
4. now to fix this, create a new instance of the webservice proxy
and finally make the call like so :
MyProxy.Credentials = System.Net.CredentialCache.DefaultCredentials;
P.S my mistake was that i did not create a proper instance of the
webservice with the proper proxy credentials within it.
Regards Nitesh
"Nicole Calinoiu" <calinoiu REMOVETHIS AT gmail DOT com> wrote in message news:<#ozop9AzEHA.1652@TK2MSFTNGP11.phx.gbl>...
> What is the exception message or, even better, its full details (as returned
> by its ToString method)?
>
>
> "nitesh" <niteshs@yahoo.com> wrote in message
> news:edacd7e5.0411160804.d21f8ff@posting.google.com...
> > hi all
> > i have a webservice that is called by a client, this works fine on the
> > local machine but when i try and access this from other machines the
> > client on the machine comes up with the system.net.webexception
> > i have added a trust relationship to the client thru the .net wizard
> > i also tried the framework config wizard and tried giving the web
> > service full trust by adding a runtime security policy on the machine
> > still no luck.
> > This is very frustrating as i have other web services written in other
> > packages that run fine but the asp.net w/s are a problem
> > cheers nitesh
- Next message: Jacek Hełka: "Re: Declarative security"
- Previous message: Rahul Kumar: "Re: Strong names ...."
- In reply to: Nicole Calinoiu: "Re: webservice problem system.net.webexception"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|