Hi I have an issue with asp.net core.

I have a method in my controller..

    [HttpPost]
    public async Task<SystemValidationViewModel> DoSomething(string model)
    {
        try
        {                
            return null;
        }
        catch (Exception ex)
        {
            throw;
        }
    }

This works fine locally, however when I deploy this to Azure it doesnt, in fact I get a 404 error. The only difference I can think of between the two is that Azure uses IIS7.5 while Im running under IISExpress.

Its worth point out that this is only happening for Async methods.

Any ideas as to what can be causing this issue?

Related posts

Recent Viewed