internel server error 500 - http

I made a web application that I connect to it from a mobile device
and I used Ajax Request Object but the status of the object returned data is 500
and after search I found that this means Internel Server Error 500
Is there any suggestions what may be the reason ??
thanks

First of all, you should look your server's error log. It will give you informations about the error (depeding the verbose level given in the configuration)

It could be that the data sent and the data type expected do not match.

Related

ReportViewer control in a webpart in SharePoint displays 401 for some reports

I am trying to solve an issue with the Report Viewer control displaying the message:
The request failed with HTTP status 401: Unauthorized.
rather than a report. This message is shown in the location where the report would be displayed. The Share Point parts of the page are displayed normally.
This occurs in a Report Viewer control on a SharePoint 2013 page.
Some other reports on other pages show up just fine. In Report Server, the browsing permissions on these reports are the same.
A testing environment with the same configuration is working correctly. I could not find any differences in the web.config on the web server and in the RSReportServer.config file on the report server.
I http traffic from my browser, using the Network tab in the IE developer tools and saw something remarkable. POST Requests from javascript to the report server control are like:
/Reserved.ReportViewerWebControl.axd?OpType=SessionKeepAlive&ControlID=597f9e1be96e4291b847ce06da66940d
and receive a HTTP 500 status, whereas the response body is just two bytes:
OK
The report that works correctly, issues similar requests, but just receives HTTP 200 status, also with OK as response body.
On my testing environment, thing are different, again. The report issues three requests to ReportViewerWebControl.axd. The first get a HTTP 401 status. The next request adds an Authentication header with an NTLM token. This also gets an 401 status. The third adds another NTLM value and gets a 200 status.
This looks like some challenge mechanism and I found an MSDN article Error: The request failed with HTTP status 401: Unauthorized when you open a report in Microsoft Dynamics CRM 4.0 and tested with added to my RSReportServer.config file. This did not help and this key is also absent in my testing environment.
I also enabled FailedRequest logging to get more insight in the Internal server error, return by the requests to ReportViewerWebControl.axd. This logging is very elaborate, but I could not find anything pointing to a cause of this error.
Under request summary it reads
188. view trace
Warning -MODULE_SET_RESPONSE_ERROR_STATUS
ModuleName ManagedPipelineHandler
Notification EXECUTE_REQUEST_HANDLER
HttpStatus 500
HttpReason Internal Server Error
HttpSubStatus 0
ErrorCode The operation completed successfully. (0x0)
ConfigExceptionInfo
and under Authentication & Authorization
No. Event
60. view trace -AUTH_START AuthTypeSupported MapCliCert
61. view trace -AUTH_END
64. view trace -AUTH_START AuthTypeSupported Basic
65. view trace -AUTH_END
68. view trace -AUTH_START AuthTypeSupported NT
70. view trace -AUTH_END
91. view trace -FILTER_AUTH_COMPLETE_START
92. view trace -FILTER_AUTH_COMPLETE_END
I do not understand what all of that means, but it is the
ErrorCode The operation completed successfully.
looks like a contradiction.
Does anyone have suggestions on next steps to tackle this problem?

Is there an HTTP status code for (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)?

if there isn't, I need to know how to capture that error in my applicaion and display a suitable message to the user. I am using mvc5
If the error is because the server is misconfigured, or something else server side, that would be a 500 series error, or just the basic 500 "server messed up" error. This suggests there's nothing the user can do to fix this error.
If the error is because of something that the client is passing in the request, then it's a 400 series error, ideally with some text telling the user what they can change to make the request process properly.

Error 400 happened while getting response from uri

I have problem with use of URL. There is a bug related to web API. I need to update data in database using rest APIs. But the URL I have to update the data in database is throwing error:
“The remote server returned an error: (400) Bad Request”.
so I am not understanding whether it's wrong with my code or with URL I have. So please suggest your ideas regarding this.

Suddenly get a 500 Internal Server Error

My website was working fine for weeks until two days ago, then on every page besides the homepage I'm getting:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator and inform them of the time the error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log."
The error log says:
Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace."
How do I fix this?
Also, what could've caused it so I know how to prevent it in the future?
Have you tried rebooting? (I know, its obvious)

How to handle the push data

I dont understand the explanation on the website.
https://developer.foursquare.com/overview/realtime
I am working with classic asp, do they refer to a query string or a form when they say parameter.
I received the following error; Your Server returned: 502 Bad Gateway.
Bad gateway means that your script is trying and failing to connect to an external url

Resources