Last post Aug 17, 2016 05:45 AM by Yohann Lu
Aug 16, 2016 07:08 PM|vdha|LINK
<div class="post-text" itemprop="text">
We created a .Net MVC Web API and published them in to the file systems. In the IIS of DEV server(same server where application was created) I created a new website, gave the site name and the physical path of where it was . Binding as
https port 443
and the SSL was given. When I browse the API with the controller name it works perfectly in DEV server.
It returns the JSON file with name PData.JSON ( which was set up in the application) I wanted to move this in to the TEST server, where we dont have the VS. I did the same like I did in the DEV server.I copy pasted the published folder in to the Test server.In IIS created a new website, gave the site name and the physical path of where the folder is . Binding as https port 443
and the SSL was given. When I browse the API like
It returns like PData?id=LG&Column=ADMINI and I am not able to open it. When I tried checking in Fiddler
Any help with this is greatly appreciated
Aug 17, 2016 05:45 AM|Yohann Lu|LINK
From your description, your web api works perfectly in DEV server. In the Test server, it returns a 500 error.
500 Internal Server Error:
The server encountered an unexpected condition which prevented it from fulfilling the request.
I suggest you can try the following suggestions.
1: Error 500 means your application is throwing an exception. Have a look in the event viewer for exception details and/or add some exception management and logging to find out what the error is.
2: Enabling Cross-Origin Requests in ASP.NET Web API 2: