I get this error :
(The remote server returned an error: (500) Internal Server Error. at System.Net.HttpWebRequest.GetResponse())
suddenly in one of my windows applications made using c#. I have been using this application for years and have not got any issues till yesterday..It suddenly started throwing this error.
Below is my method and Url i am calling :
public string CallOnlineUrl() {
try {
Uri onlineupdateUrl = new Uri("https://billett.tusenfryd.no/admin/update.aspx");
HttpWebRequest req = (HttpWebRequest)WebRequest.Create(onlineupdateUrl);
System.Net.WebResponse resp = req.GetResponse();
System.IO.Stream stream = resp.GetResponseStream();
//****some code
//-------
} catch(Exception ex) {
ERPLog.AddLogEntry(ex.Message + ex.StackTrace);
}
return cont;
}
any help or suggestions to solve this are appreciated :)