Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
We are facing a server related issue in one of our API Service application (ASP.NET WEB API 2). When we access the service by site domain name (api.xxx.com), the service returns an Internal server error (500). But If we accessing the same service by site IP address (11.111.11.111), Its returning proper result (404). This issue occurred only if the server trying to return 404.

What I have tried:

<pre>
https://api.xxx.com/api/Test/getEmployee/1 [Returns 500 Error]
https://111.11.111.11/api/Test/getEmployee/1 [Got Expected Result(404)]

Its working fine for the same API service and different params which is having data.

We have checked in code side, no error logged.

We hosted the site in Azure server.

Is there any problem with the domain name hosting/ load balancer/ ARR server.

Please help us to solve this issue.

Thanks in advance.
Posted
Comments
Laxmidhar tatwa technologies 29-Sep-18 7:03am    
what is the method type (verb) like post or get.
If get thai is correct .other wise send parameter through json

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900