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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. Ajax in SharePoint 2007. How to make the original error message to show up?

Ajax in SharePoint 2007. How to make the original error message to show up?

Scheduled Pinned Locked Moved Web Development
sharepointsysadminhelptutorialquestion
2 Posts 2 Posters 1 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
    bin_bin1
    wrote on last edited by
    #1

    Hello, there, I am using Ajax in an application page in SharePoint 2007. I found that when there is an exception. Ajax will show a dialog box says " Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed.", and the original exception message is not displayed. I know I can use registerpostbackcontrol() function to register the button that causes the exception to make the original SharePoint error page to show up. But I do not want to do that. Is there any other way to make the original SharePoint exception/error page to show up? Thank you very much. Best regards, Bin

    S 1 Reply Last reply
    0
    • B bin_bin1

      Hello, there, I am using Ajax in an application page in SharePoint 2007. I found that when there is an exception. Ajax will show a dialog box says " Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed.", and the original exception message is not displayed. I know I can use registerpostbackcontrol() function to register the button that causes the exception to make the original SharePoint error page to show up. But I do not want to do that. Is there any other way to make the original SharePoint exception/error page to show up? Thank you very much. Best regards, Bin

      S Offline
      S Offline
      Shog9 0
      wrote on last edited by
      #2

      This is actually trivial. If you were using simple AJAX techniques built directly on XMLHttpRequest. See, that API gives you a handy responseText property that will give you what the server sent back without trying to parse it first. But you're not. You're using some sort of complicated .NET thing built to conceal the simplicity of XMLHttpRequest. Try the ASP.NET forum[^], or perhaps find a Sharepoint forum. A place where masochists gather and delight in sharing tales of their byzantine workarounds for this baroque platform.

      Citizen 20.1.01

      'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'

      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