(500) Internal Server Error.
-
Hi, I get the following error when cliking on a button: System.Net.WebException: The remote server returned an error: (500) Internal Server Error. stack trace: [WebException: The remote server returned an error: (500) Internal Server Error.] System.Net.HttpWebRequest.CheckFinalStatus() +677 System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) +139 System.Net.HttpWebRequest.GetResponse() +248 Mediachase.Store.Business.UrlReader.GetHtmlFromUrl(String theurl, String authorizeUserName, String authorizePassword) Mediachase.Store.Business.UrlReader.GetHtmlFromUrl(String theurl) Mediachase.Store.Web.Admin.Module.AdminCampaign.GetHtmlFromUrl(String theurl) Mediachase.Store.Web.Admin.Module.AdminCampaign.get_CampeignBody() Mediachase.Store.Web.Admin.Module.AdminCampaign.SaveChanges() Mediachase.Store.Web.Admin.Module.AdminCampaign.SaveButton_Click(Object sender, EventArgs e) System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33 System.Web.UI.Page.ProcessRequestMain() +1292 I can't understand why it happens, as I really did nothing special (it was OK yesterday, but today it's not). I have tryed recycling pool (in IIS manager) and it didn't help. I have to mention that i use asp.net 1.1
-
Hi, I get the following error when cliking on a button: System.Net.WebException: The remote server returned an error: (500) Internal Server Error. stack trace: [WebException: The remote server returned an error: (500) Internal Server Error.] System.Net.HttpWebRequest.CheckFinalStatus() +677 System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) +139 System.Net.HttpWebRequest.GetResponse() +248 Mediachase.Store.Business.UrlReader.GetHtmlFromUrl(String theurl, String authorizeUserName, String authorizePassword) Mediachase.Store.Business.UrlReader.GetHtmlFromUrl(String theurl) Mediachase.Store.Web.Admin.Module.AdminCampaign.GetHtmlFromUrl(String theurl) Mediachase.Store.Web.Admin.Module.AdminCampaign.get_CampeignBody() Mediachase.Store.Web.Admin.Module.AdminCampaign.SaveChanges() Mediachase.Store.Web.Admin.Module.AdminCampaign.SaveButton_Click(Object sender, EventArgs e) System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33 System.Web.UI.Page.ProcessRequestMain() +1292 I can't understand why it happens, as I really did nothing special (it was OK yesterday, but today it's not). I have tryed recycling pool (in IIS manager) and it didn't help. I have to mention that i use asp.net 1.1
HTTP 500 is an internal server error and what you are seeing is the stack trace for the exception that was thrown back when one of your methods was called. without seeing your server side code it is really hard to make a diagnose as to why the exception is occurring. just because the code worked once doesn't really mean much.
as if the facebook, twitter and message boards weren't enough - blogged
-
Hi, I get the following error when cliking on a button: System.Net.WebException: The remote server returned an error: (500) Internal Server Error. stack trace: [WebException: The remote server returned an error: (500) Internal Server Error.] System.Net.HttpWebRequest.CheckFinalStatus() +677 System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) +139 System.Net.HttpWebRequest.GetResponse() +248 Mediachase.Store.Business.UrlReader.GetHtmlFromUrl(String theurl, String authorizeUserName, String authorizePassword) Mediachase.Store.Business.UrlReader.GetHtmlFromUrl(String theurl) Mediachase.Store.Web.Admin.Module.AdminCampaign.GetHtmlFromUrl(String theurl) Mediachase.Store.Web.Admin.Module.AdminCampaign.get_CampeignBody() Mediachase.Store.Web.Admin.Module.AdminCampaign.SaveChanges() Mediachase.Store.Web.Admin.Module.AdminCampaign.SaveButton_Click(Object sender, EventArgs e) System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33 System.Web.UI.Page.ProcessRequestMain() +1292 I can't understand why it happens, as I really did nothing special (it was OK yesterday, but today it's not). I have tryed recycling pool (in IIS manager) and it didn't help. I have to mention that i use asp.net 1.1
Set a break point in the code and step through to see where this exception is being thrown.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair. nils illegitimus carborundum me, me, me
-
Set a break point in the code and step through to see where this exception is being thrown.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair. nils illegitimus carborundum me, me, me
Thank you both for your answers. Actually, break points couldn't help me because the application did well on my computer(localhost), the error occurred only when I tried to run it on the server, so I used a try-catch block, captured the exception and inserted it to my database. btw, the error was about file permissions (I had to give the aspnet and network-services accounts read,write & execute permissions)