I'm using a public web server http://www.arvixe.com/
I have the following code
// Create a request for the URL.
WebRequest request = WebRequest.Create("http://mywebsite.info/External/NewUser.aspx
// If required by the server, set the credentials.
request.Credentials = CredentialCache.DefaultCre
// Get the response.
HttpWebResponse response = (HttpWebResponse)request.G
// Display the status.
// Get the stream containing content returned by the server.
Stream dataStream = response.GetResponseStream
// Open the stream using a StreamReader for easy access.
StreamReader reader = new StreamReader(dataStream);
// Read the content.
string responseFromServer = reader.ReadToEnd();
// Display the content.
lblResult.Text = responseFromServer;
// Cleanup the streams and the response.
The strange thing is i can run it fine on a local iis server but it gives this error on the public server
I have contacted the webhost and explained the problem but they are unable to help and are only requesting that i tell them what i need them to do to get it working. but i' at a loss.
Does anyboday have any ideas why this may work locally but not on a public webhost
Some sort of IIS settings maybe permissions.