i am learning asp.net 5 and MVC 6! i created a web project
like this picture
after that right clicked on Models folder -> add new item but there is no ADO.Net templates here ( in VS 2013 it exist ). here is a picture :
this problem is only for web project, i created a Windows Application and added new item there was ADO.NET templates. here is picture :
how to fix this problem ?
Anyone having the same problem on any kind of project (like it was my case) and unable to open existing EDMX, be careful when you install VS 2015, and make sure to check the box saying "Microsoft SQL Server Data Tools".
I had not (we only use MySQL), and it is required for the Entity Framework designer, whatever connector you're using.
there is no support for edmx format in mvc6.
Pre version mvc5 would have got but mvc 6 doesnt.
Good luck
Related
I do have a very odd problem with Visual Studio 2019 (Professional version 16.9.2) when trying to create a new project with a ASP.NET Core Web Application template.
Although I have a a lot of templates available, my list of new project is desperately not showing the template, and none of ASP.Net Core ones (the ones with the little planet, a circle and a blue dot icon) this is the icon I don't have, it's not taken from my machine
My version of VS is up to date, I've installed the .NET Core cross-platform development my Visual Studio configuration
I've installed the .NET Core package (I tried with all versions).
No matter which option I'm chosing in the Update tool, I still have the same list of templates, it never changes.
I've reinstalled VS from scatch. I've tried on 4 different machines (1 physical machine, 1 virtual desktop and 2 servers). I've also tried from line command prompt by using dotnet new, but I do have exactly the same list then the one in VS.
I've also tried to change the templates location from my local profile folder to the C:\Program Files(x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\ProjectTemplates
But the templates list remains the same.
I'm out of ideas, sounds like I tried almost everything, for now I'm stuck!
If anyone among you has any idea or already had this issue, please let me know!
Thanks everyone for any help you could grant.
I finally found a way to have the 'missing' template. It seems that in VS 2019 the ASP.NET Core Web Application template has been replaced by the ASP.NET Core Empty.
I had to tweak it a little, but seems to be now Ok.
I hope this helps some folks
Install the ASP.NET and web development workload.
Visual Studio Installer -> Click on Modify -> Select ASP.NET and web development workload.
I need to upgrade a project from ASP.NET MVC 4 to ASP.NET MVC 5. I'm using Visual Studio Premium 2012 on a VM and I checked on the Internet how to do so. I installed ASP.NET and Web Tools 2013.1 for Visual Studio 2012 (whose name is now 2012.2 update) and from what I've seen on the web I should be able to create a new ASP.NET MVC 5 Empty Project in Visual Studio. But nothing has changed and I can't see the ASP.NET MVC 5 in my projects creation list :
Project creation (Sorry for French language)
I installed it from the Web Platform Installer that asserts that the update has been installed (I actually uninstalled it and installed it again to be sure) :
Web Platform Installer 5.0
I also tried to repair VS 2012.
If somebody already had this issue and knows how to solve it, it would help a lot.
You can check the below link and try t install WebNode11Pack.exe from the link specified on the link below :
http://www.c-sharpcorner.com/UploadFile/36985e/using-Asp-Net-mvc5-within-visual-studio-2012/
Link to downlaod the Webnode11Pack.exe is as under :
https://www.microsoft.com/web/handlers/webpi.ashx/getinstaller/WebNode11Pack.appids
I am not able to show SQLite option while I'm going to add Entity framework via wizard in Visual Studio 2012 and Framework 4.5.
I have used below link:
http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki
but still I'm not able to show it.
There is no need to add Sqlite from wizard,you just need to add the .dll to your File System Editor while making a deployment. Here is the full tutorial of how you can achieve this.
include sqlite while build setup exe
Hope it helps.
I have a problem with Oracle Data Provider for .NET. I have:
just disinstalled and reinstalled new version of Oracle, I have now 12.1.0
Visual Studio 2015
Oracle Developer Tool for Visual Studio
I want to create a ASP.NET Web Application with Entity Framework 6.0. If I open one of my old projects or when I create a new one and download from Nuget Oracle.ManagedDataAccess and Oracle.ManagedDataAccessEntityFramework this appears:
and if I click OK, I continue and create a model based on Oracle it always says that my EntityFramework is not correct for that provider even if I followed this link or it crashes after setting the connection and click "Next".
What's wrong? Please help me..
Thats how I solved it:
Remove all folders wich names contains "Oracle" from:
Windows\Microsoft.NET\assembly\
Windows\assembly\
Then restart Visual Studio and it will work.
I used cmd in administrator mode to do that, because explorer or other file managers did not allow me to remove that folders.
I am running Visual Studio Community 2013 and one time when following tutorial about database projects I noticed that I dont have item.
New Project -> Visual C# -> Data -> Service-based Database
I dont even have a Data tab.
I have image but cant post it until I will have 10 reputation...
I have tried to delete folders:
...Common7\IDE\ItemTemplates ...Common7\IDE\ItemTemplatesCache
then use
devenv.exe /InstallVSTemplates
I have also tried to repair Microsoft Visual Studio from Add/Remove programs and Install SQL DATA TOOLS but problem still exists.
Any 1 have idea how to solve that ?
The Service Based Database is not a Project, but a File template. So either on an existing project or on a new blank Class Library project use the Add new Item... option and you should be able to find the correct file template.
See also: https://msdn.microsoft.com/en-us/library/ms233763.aspx