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,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top