Message "An error has occurred" when use webapi with JWT in IIS 8.5

54 views Asked by At

I have a webapi in C# and use JWT authentication in Windows Server 2012 R2 with IIS 8.5. This webapi works fine in others servers (with IIS 10), but when I call in IIS 8.5 return the message "An error has occurred". This error return when I call methods with JWT. I tryed to put AllowAnonymous, but, if I have some validation with JWT, occur the error. When I call others methods (with no JWT validations), work fine. If I call the same method in localhost, in the server, return a empty download (!) instead of the real return (is a test message) or the error.

Does have any configuration in IIS or i my application I need to do??? Someone does have any idea for me???

This is the error message

Error message

The method is a GET method and I tested with a Xamarin Form, browser and Postman.

I expect a message when I call the method. After this result, I can try to test the others methods (authentication, POST, etc.).

This is the expect result Expect result

0

There are 0 answers