No matter what I tried until now I always end up with some similar error message:
System.Web.HttpException: 'Error executing child request for handler 'System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerAsyncWrapper'.'
InvalidOperationException: HttpServerUtility.Execute blocked while waiting for an asynchronous operation to complete.
Google had a few solutions but they didn't work as expected. I also read somewhere, that there will be changes in MVC6 related to this. Has anyone done this in Umbraco 8 and can give me a push in the right direction?
This is not really an Umbraco issue, it's just down to the fact that async partial actions are not supported in the underlying MVC5 framework. You'll probably need to wait until Umbraco 9 comes along which utilises a new framework for this to work.
SurfaceController with async await not working: Execute blocked while waiting for an asynchronous operation to complete
Dear Umbraco Pros
I am currently trying to integrate an async Action Result to Umbraco giving me headaches.
The call:
Current Controller:
No matter what I tried until now I always end up with some similar error message:
Google had a few solutions but they didn't work as expected. I also read somewhere, that there will be changes in MVC6 related to this. Has anyone done this in Umbraco 8 and can give me a push in the right direction?
Thanks and have a good Monday! Chris
This is not really an Umbraco issue, it's just down to the fact that async partial actions are not supported in the underlying MVC5 framework. You'll probably need to wait until Umbraco 9 comes along which utilises a new framework for this to work.
https://github.com/aspnet/AspNetWebStack/issues/61
Dear Dan
Thanks for the general reply. I fixed this issue now by rewriting to sync and clearing the session in between:
Going strong so far. Thanks to https://stackoverflow.com/questions/15021304/an-async-await-example-that-causes-a-deadlock
Hope, this helps somebody else.
Cheers Christian
is working on a reply...