C# aspnet core getting error: Internal Server Error http://localhost:26665/swagger/v1/swagger.json

 This error comes about when there's a missing METHOD attribute in your method that exposing a REST service - all you need to do, is decorate it - as seen below :-

[HttpGet]
public IActionResult GetData() 
{

}



Comments

Popular posts from this blog

The specified initialization vector (IV) does not match the block size for this algorithm

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20