Ajax - 500 Internal Server Error

后端 未结 8 1103
难免孤独
难免孤独 2020-11-30 07:22

I am trying to learn AJAX for this project at work. I have a site that loads medications that a patient is taking.

I call this AJAX function up recursively so that i

相关标签:
8条回答
  • 2020-11-30 08:13

    I think your return string data is very long. so the JSON format has been corrupted. You should change the max size for JSON data in this way :

    Open the Web.Config file and paste these lines into the configuration section

    <system.web.extensions>
      <scripting>
        <webServices>
          <jsonSerialization maxJsonLength="50000000"/>
        </webServices>
      </scripting>
    </system.web.extensions>
    
    0 讨论(0)
  • 2020-11-30 08:15

    This may be an incorrect parameter to your SOAP call; look at the format of the parameter(s) in the 'data:' json section - this is the payload you are passing over - parameter and data wrapped in JSON format.

    Google Chrome's debugging toolbar has some good tools to verify parameters and look at error messages - for example, start with the Console tab and click on the URL which errors or click on the network tab. You will want to view the message's headers, response etc...

    0 讨论(0)
提交回复
热议问题