Error adding "Azure Mobile Apps Table Controller" - azure-mobile-services

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.

Related

VSCode - Shows Deploy to Function App, instead of Deploy to Web App for blazor (ASP.Net) webapp

VSCode sees my Blazor server app as an Azure Function. Right-clicking on my publish folder I only have the option to Deploy to Function App, instead of Deploy to Web App which logically shows me only my function apps from azure. How is this determined by VSCode? I have checked the project file, but I do not see anything obvious wrong.
I tried Googling this, but the search terms only brings me to tutorials where this problem does not exist.
I was missing the Azure Web App extension. Once that was installed, the option appeared

Creating VM theme in Liferay 7

I want to create VM theme in liferay 7. I made the changes in package.json and changed the templateLanguage to vm. Next I changed liferay-look-and-feel.xml and changed tag value to cm and did gulp build. The vm files are created, but when i Deploy it to the server, I get this warning:
09:53:24,368 WARN [Refresh Thread: Equinox Container: a046c07b-9d60-0017-134e-c4d1864b896c][ThemeHotDeployListener:129] Support of Velocity is deprecated. Update theme testTheme to use FreeMarker for forward compatibility.
Also in the browser, the control panel and header tabs are not displayed and instead a warning is displayed as below:
An app that can VIEW com.liferay.admin.kernel.util.PortalProductNavigationControlMenuApplicationType$ProductNavigationControlMenu belongs here. Please contact the portal administrator or install such an app from the Liferay Marketplace.
Below is the link of how the warning on browser is displayed: Image of Warning Message
What can be the issue?
I was facing the same problem when i migrated the application from 6.2 to 7. Liferay 7 supports freemarker template language. When I used Velocity i used to get blank page and page not used to get displayed. I advice you to use freemarker.

Adding Existing SAPUI5 Applications in HANA Cloud Portal site

I am new to HANA Cloud portal. I have created a standalone SAPUI5 Application following the below steps:
SAP HANA Cloud Platform
I have not set any destinations since I am using dummy data for now. The app works fine standalone but when I add it to a site in the HANA cloud portal the application fails with the error "could not open App.Try again Later". I have followed the below steps. Please let me know if I have missed put anything:-
1) Created a site from the site directory screen with a blank site temppplate.
2) Next I selected the app I want to add into the site from the account apps section in the left navigation inside the flpportal service and added it[using the forward icon].
3) Then when I try to add it as a menu configuration it shows up in the list and gets added but when I publish the site I get the above error mentioned.
Am I missing any step or doing it wrong altogether? BTW I am using a HANA trial account for now.
Also, I would like to know whether this is the correct way to do it. Also, any documentation on the same will be helpful
Adding the error description. The name of the app is Kpidemo:

'Could not load type' error when viewing a web app package on IIS

I am new to Visual Studio 2012 and the Web Deploy 3.0 used to upload a package to IIS. While my application compiles and renders fine on my local development laptop, when I package the web app and then import the packaged zip file to my site on IIS I get error when I try to view the page. When I open IE on my local machine and browse to my site address by IP (_http://1.2.3.4/acme/tools/default.aspx) I get this error "Server Error in '/' Application." and then further below "Parser Error Message: Could not load type 'ACME.Default'". The source error is pointing to my page declaration. It appears that it is having trouble with the 'Inherits="ACME.Default"' , but why? And how to fix?
Many thanks.
Alex
Have you checked your AppPool version versus your app -- typical IIS configurations will still default to 2.0 not 4.0 and this is exactly the sort of error one sees when one has that kind of version mismatch.

error activating .wsp file in sharepoint server 2010

I developed a sample application in visual studio 2010. I created an Empty SharePoint Project and gave the local site url for debugging. Checked "Deploy as Farm" as the trust level of the SharePoint solution. Added a visual webpart and also a class to the solution. I am able to build and successfully run the application using visual studio. In my local machine am using SharePoint foundation 2010 to debug the SharePoint application.
Now i want to deploy this application in the SharePoint server 2010 which is in a virtual machine.
1. I copied the .wsp file of the application i created to the virtual machine.
2. From the central administrator in the VM I created a web application and the site collection.
3. Then using Site Actions -> Site Settings -> Solution(Galleries), choose the .wsp file for uploading. it showed a "Warning: You should only activate this solution if you trust this solution. An activated solution can read, modify and delete your data. " and the activate button is disabled.
Then I tried to do same in my local machine on a different site collection. Here Activate button is enabled but when clicked it threw exception
Server Error in '/' Application.
This solution contains invalid markup or elements that cannot be deployed as part of a sandboxed solution. Solution manifest for solution 'aee60282-765d-4c9f-b67a-5981f18a6d3b' failed validation, file manifest.xml, line 10, character 4: The element 'Solution' in namespace 'http://schemas.microsoft.com/sharepoint/' has invalid child element 'TemplateFiles' in namespace 'http://schemas.microsoft.com/sharepoint/'. List of possible elements expected: 'FeatureManifests, ActivationDependencies' in namespace 'http://schemas.microsoft.com/sharepoint/'.
What could be this error?
The "TemplateFiles" element refers to items that will be copied onto the web server. This is allowed for farm solutions (which are deployed via CentralAdmin), but is not allowed for sandboxed solutions (which are deployed via the Solution Gallery).
When you deploy your wsp with visual studio, you deploy it as farm solution.
When you deploy your wsp from site settings into solution galery, you deploy it as user solution (sandbox solution) with some limitations :
first, avoid using out of the box visual webparts, it's prohibited !
Deploy your wsp by writing powershell script.
A good starting point here :
patrickboom.wordpress.com/2010/05/31/using-powershell-to-deploy-sharepoint-solutions-wsp-2/
Le_Fredo is correct here, when attempting to deploy a WSP file into the site collection directly under the site settings, you won't be able to. I found this article from microsoft to be extermely helpful
http://technet.microsoft.com/en-us/library/ff607688(v=office.14).aspx