While creating an MVC3 project, I got this problem. I created Movies.cs and while creating the Controller for this Model, I did the following.
Right-click the Controllers folder, and select Add and Controller
Set controller name to MoviesController
Select template: Controller with read/write actions and views, using Entity Framework
Select model class: Movies (McvDemo.Models)
Select data context class: MovieContext (McvDemo.Models)
Select views Razor (CSHTML)
Click Add.
It processed for a while and got me this error.
Unable to retrieve metadata gor "MvcDemo.Models.Movies". Unable to
find the requested.NET framework Data provider. It may not be
installed.
What does that means? If anyone could point me the answer.
Related
I have recently created a new Entity: Configuration of type Setting, so it won't show up with the rest of the entities. I have already updated the Forms with the necessary fields but I can't find it on the app to create new records.
Where is that form?
How can I create new Records of that entity on the UI?
Make sure to verify these steps:
Edit the UCI app to include the assets/artifacts like Entity and the Default form, Quick create form, Views, etc
Edit the app Sitemap to add the Entity list as navigation in UCI app
If you have enabled "Quick create" for that entity and a QC form is created + added as asset in step 1 - then it is better experience
Make the entity searchable, then you can add a record from Advanced find query results
Learn more
Hi I am building a new package and I want to give all users access to the new section automatically when the package is being installed.
I have found the GrantPermissionForApp class action in the "PackageActionsContrib" project, but the injected SQL is targeting tables that now do not exist.
Umbraco now sets section permissions on group Membership not at the user level, hence the SQL table "umbracoUser2app" doesn't exist.
Has anyone modded the GrantPermissionForApp class to account to the Umbraco changes or could advise what tables I need to mod in SQL?
Many thanks.
I am trying to implement ASP.net web API versioning using URL(namespace) techniques.
I have existing controller say Roles controller. I am able to access it via route .../ API/roles.
Now I have added one more controller with same name Roles but in different folder say V1.
I added route for this new controller and I am able to access it via .../API/V1/roles.
But now when I am trying to access my old route I.e. .../API/roles. I am getting error as multiple controller found. One controller in folder V1 and another in folder controllers.
Can anyone help me in figuring out this issue. How to fallback the existing routes.
If I add another folder v2 and try to access roles controller over there its working fine.
But for existing controller which is placed directly in Controllers folder its not working.
Any help is appreciated.
Thanks.
On A c# mvc website, I created a controller with the name NotFound, and then created a default route to an index action on the controller. When I debugged the program it went to the correct controller action but did not display anything in the view. Does any one know why?
did you do:
return View("some view name");
in the action method?
what does the some view name.aspx contain?
How can I create a login partial view in MVC 2.0?
I want to include this in several masterpages in my site since I can't use the login control in MVC.
What code do I put in the controller which will accept the username and password?
The default MVC project creates one for you. Just install MVC and create a MVC project. It will have a Master page, with a login partial view already created.