>>>>I've verified the URL is correct by displaying it on the form and copying it to a new web page and running it. I did get asked to login by the Report Server, maybe that's the forbidden part?
>>>
>>>Most likely. Perhaps the System.Net.CredentialCache.DefaultCredentials on the clients machine would not have been a valid login?
>>
>>Hmm, should i change it to DefaultNetworkCredentials? Or do I do this differently?
>
>I guess I'd look at the properties of the credentials used on your development machine and, since that is working, create and use the same credentials on the clients server. Of course I could be wrong - just saying what I'd try......
I think I need to understand the code a bit more.
Have I understood what these lines of code actually do?
System.Net.HttpWebRequest Req = (System.Net.HttpWebRequest)System.Net.WebRequest.Create(URL);
Req.Credentials = System.Net.CredentialCache.DefaultNetworkCredentials;
Req.Method = "GET";
System.Net.WebResponse objResponse = Req.GetResponse();
If I comment out the credentials then I get a (401) Unauthorized error on my PC. Which is different to the 403 error I'm getting at the client.
How do I look at the properties of the credentials on my machine?
Thanks for all your help.