The type or namespace name ‘DbContext’ could not be found [closed]

I had the same issue. Turns out, you need the EntityFramework.dll reference (and not System.Data.Entity). I just pulled it from the MvcMusicStore application which you can download from: http://mvcmusicstore.codeplex.com/ It’s also a useful example of how to use entity framework code-first with MVC.

Turn off Visual Studio Attach security warning when debugging IIS

Also found in the article mentioned by Tzury, but to sum up the answers in this thread: Make sure Visual Studio is not running when changing the registry key or it will be overwritten on exit with the old value Visual Studio 2022: Follow these instructions, then reboot. Visual Studio 2019: Follow these instructions, then … Read more

Visual Studio: How to “Copy to Output Directory” without copying the folder structure?

instead of <Content> use <ContentWithTargetPath> and specify target path, like this: <ItemGroup> <ContentWithTargetPath Include=”lib\some_file.dat”> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <TargetPath>some_file.dat</TargetPath> </ContentWithTargetPath> <None Include=”lib\some_file.dat” /> </ItemGroup> Note that this entry may not be visible from Visual Studio (2012, 2015, 2017), but once manually added to the csproj, it will appear in Visual Studio. The target path will not be editable … Read more

Targeting .NET Framework 4.5 via Visual Studio 2010

Each version of Visual Studio prior to Visual Studio 2010 is tied to a specific .NET framework. (VS2008 is .NET 3.5, VS2005 is .NET 2.0, VS2003 is .NET1.1) Visual Studio 2010 and beyond allow for targeting of prior framework versions but cannot be used for future releases. You must use Visual Studio 2012 in order … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)