Async Problem


I have an MVC Action method which is returning async Task<ActionResult>.

When I run my website normally, everything works but when I'm profiling through Ants it returns the error below.

If I change it to just return an ActionResult, it works fine.

I'm using Ants and have "Profile with Async awareness" and "Async Mode" checked.

I'd appreciate any help you can give me, thanks.




  • Jessica RJessica R Posts: 1,009 Rose Gold 3
    So sorry to hear you're experiencing some trouble with the profiler!

    Can I please first check:
    - What version of the profiler are you using? (Help>About)
    - Just to confirm--if you disable "Profile with Async awareness" and profile again, the error no longer comes up?
    - What .NET framework does your application target?

    Jessica Ramos | Product Support Engineer | Redgate Software

    Have you visited our Help Center?

  • Hi

    I'm using Ants and targeting framework version: 4.5

    I can confirm that if I disable "Profile with Async awareness", it does work


Sign In or Register to comment.