>Req.Credentials = new NetworkCredential("UserName", "password"); // or other relevant constructorSo create a user on the server with the necessary rights, then set the code to use this user? I don't particularly like that idea for the following reasons: I then need to hard code the password in, I need to work out what rights to assign to the user on the server. If somebody then changes the password on the server I have to recompile my code. Or am I misunderstanding what you suggested?