Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error adding "Azure Mobile Apps Table Controller"

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:

enter image description here

enter image description here

Any ideas?

-John

like image 430
JohnKoz Avatar asked Mar 26 '17 17:03

JohnKoz


1 Answers

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.

like image 52
Juliano Nunes Silva Oliveira Avatar answered Nov 19 '22 00:11

Juliano Nunes Silva Oliveira