Consuming WEB API ASP.NET MVC 4 [ERROR]

0

I have a problem ... I put my web api in locaweb ... But if I use the link in the project, it does not work and returns me "StatusCode: 500, ReasonPhrase: 'Internal Server Error', Version: 1.1, Content : System.Net.Http.StreamContent ". I thought the problem was with them and I have decided to host Azure, but I get the same error in running the application. Now, when I upload my web api to my local IIS server and use the link in the project, I can use the api web in my application without any problem. Would anyone help me?

Follow my code:

    
asked by anonymous 30.05.2017 / 23:35

0 answers