0
OriAssurant created
Hi,
When we were using the SPA (MVC & jQuery) we had access to a WebAPI Controller.
When we migrated (mostly everything) to SPA solution, everything works and builds, except now we can't hit the custom controller we built in the WebAPI proj.
This is the error from hitting the Controller w/valid input: {"message":"An error has occurred."}
Here is what it looks like, more or less:
public class nameOfController : MajesticApiControllerBase
{
public nameOfController()
{
}
[HttpGet, ActionName("CheckIfSIM")]
public IHttpActionResult nameOfController(string value)
{
}
}
I also want to mention that it vanished from Swagger.
Thanks for the help.
1 Answer(s)
-
0
@OriAssurant your Controller definition seems fine. Do you have any error message in Logs.txt file ? You can find it under your Web project folder.