0

Async actions in AsyncControllers (in MVC2) have two action methods (ActionNameAsync and ActionNameCompleted) which seem to confuse T4MVC.

If it can't be done with T4MVC, is there a way to disable it from trying to include these methods?

Robert Dean
  • 3,193
  • 3
  • 25
  • 29

1 Answers1

0

Indeed, async controllers don't currently work with T4MVC. Here was a thread discussing it: http://forums.asp.net/t/1534619.aspx

Is this causing something to break for you, or is it simply that T4MVC is not available for those methods, but everything else works fine?

David Ebbo
  • 42,443
  • 8
  • 103
  • 117
  • I added an async controller to my project and it is causing it to break now. I'm wondering if one could pass an array on the T4MVC settings to ignore a namespace or a controller name. What is your opinion on this? – Robert Dean Jun 03 '10 at 12:38
  • Ideally, we'd fix it so it doesn't cause a break. Could you show what the exact signature of your methods are, and include the complete text of the error you get? – David Ebbo Jun 03 '10 at 14:56
  • You are right. The breaking code was due to something not releated to T4MVC. – Robert Dean Jun 08 '10 at 23:42