Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. (500) Internal Server Error.

(500) Internal Server Error.

Scheduled Pinned Locked Moved ASP.NET
helpcsharpasp-netdesignsysadmin
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    benams
    wrote on last edited by
    #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

    D R 2 Replies Last reply
    0
    • B benams

      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

      D Offline
      D Offline
      Dennis E White
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • B benams

        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

        R Offline
        R Offline
        R Giskard Reventlov
        wrote on last edited by
        #3

        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

        B 1 Reply Last reply
        0
        • R R Giskard Reventlov

          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

          B Offline
          B Offline
          benams
          wrote on last edited by
          #4

          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)

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups