View Single Post
  #15 (permalink)  
Old 08-30-2007, 09:46 AM
raja raja is offline
D-Web Trainee
 
Join Date: May 2007
Posts: 34
raja is on a distinguished road
Default Re: HTTP Web Response Exception - I cant able to trap.

You need to set the Credentials property of your service. To pass the
system credentials for the current security context, you can use
CredentialCache.DefaultCredentials.

For a service named SimpleService, it would look something like this:

[C#]
SimpleService ss = new SimpleService();
ss.Credentials = System.Net.CredentialCache.DefaultCredentials;
__________________
Raja. Myblog
Reply With Quote