logo
Welcome to our new AbleCommerce forums. As a guest, you may view the information here. To post to this forum, you must have a registered account with us, either as a new user evaluating AbleCommerce or an existing user of the application. For all questions related to the older version of Gold and earlier, please go to AbleCommerce Gold forum. Please use your AbleCommerce username and password to Login. New Registrations are disabled.

Notification

Icon
Error

Options
Go to last post Go to first unread
charles25686713  
#1 Posted : Tuesday, November 8, 2022 3:01:19 PM(UTC)
charles25686713

Rank: Advanced Member

Groups: Authorized User, Developers
Joined: 7/1/2022(UTC)
Posts: 64

Thanks: 5 times
Was thanked: 1 time(s) in 1 post(s)
Hello, I'm working on migrating all my custom code from AC gold to AC9 (now .7).

I've done a lot of development in Core now and am accustomed to the async Task/await pattern.

I thought I'd try making my custom action in one of the controllers async Task, and it builds just fine.

Then ASP complains:

The asynchronous action method 'MyRecordings' returns a Task, which cannot be executed synchronously.

Is there something else I should change to properly enable this, or is AC9 not yet async/await friendly?

Thanks,
Charles

p.s. I thought I posted this in the wrong section earlier, then deleted it, only to find out this seems to be the right section. Apologies!

Wanna join the discussion?! Login to your AbleCommerce Forums forum account. New Registrations are disabled.

Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.