System.Net.NetworkCredential

  • Thread starter Thread starter Ivan G.
  • Start date Start date
I

Ivan G.

Hi.

I'm trying to call web service passing a new
System.Net.NetworkCredential to it's reference:

jobs.Jobs j = new jobs.Jobs();

j.Credentials = new System.Net.NetworkCredential(login,password,domain);

but anyway I get System.SecurityException



Why?


Thanx.
 
Ivan said:
Hi.

I'm trying to call web service passing a new
System.Net.NetworkCredential to it's reference:

jobs.Jobs j = new jobs.Jobs();

j.Credentials = new
System.Net.NetworkCredential(login,password,domain);

but anyway I get System.SecurityException



Why?

Pretty hard to tell from these lines of code. The NetworkCredentials
constructor isn't (supposed to be) throwing this exception, so it must be
somewhere else.

Can you provide more details?

Cheers,
 
Back
Top