I have a fresh install of Visual Studio 2017, RTM (15.0.0+26228.9). I created a new project from the "Azure Mobile App" template. (created fine) Then, under the Controllers folder, I right-clicked "Add Controller...". I tried each of the following 2 templates, and received an error on each:
Azure Mobile Apps Custom Controller
Azure Mobile Apps Table Controller
Considering the Table Controller first, I received the error: There was an error running the selected code generator: 'A TwoWay or OneWayToSource binding cannot work on the read-only property 'EntityTypes' of type 'Microsoft.Cct.MobileApps.WebExtensions.Scaffolding.MobileAppsTableControllerViewModel'.'
The Custom Controller allowed me to select the controller name, then showed the error: There was an error running the selected code generator: 'Could not find template '' in these folders ['C:\Program Files (x86)\Microsoft SDKs\Microsoft Azure\Mobile Apps\2.0\Scaffold'], including sub-folders.'
The standard Web API Controller - Empty worked fine.
Azure App Services Tools shows v3.0.0 (15.0.30209.0).
EDIT 4/1/2017: Reproduced the table controller symptom with a fresh Mobile App project, same error for table creation, even after reinstalling with latest tool version, as directed in comments:
Any ideas?
-John
Go to https://www.microsoft.com/en-us/download/details.aspx?id=54917, download AzureMobileAppsSdkPackagesV2.0.msi
only and install it. Then try to add a new custom controller once more and the problem should be gone.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With