ASP.NET 5 MVC: unable to connect to web server ‘IIS Express’

After installing Update 2 for Visual Studio 2015 I started getting the same error. I tried everything above with no luck. However, I found a solution that works for me: Delete YourSolutionFolder\\.vs\config\applicationhost.config file (note: .vs is a hidden folder) Open Visual Studio, right-click on web site > Properties > Debug tab > Web Server Settings … Read more

Should I add the Visual Studio 2015 .vs folder to source control?

No, you should not add it to source control. The purpose of this folder is to move machine- and user-specific files to a central location. The explanation on the Visual Studio User Voice issue explains it well: So far, we have moved the .SUO file and the VB/C# compiler IntelliSense database files to the new … Read more

How to unapply a migration in ASP.NET Core with EF Core

Use: CLI > dotnet ef database update <previous-migration-name> Package Manager Console PM> Update-Database <previous-migration-name> Example: PM> Update-Database MyInitialMigration Then try to remove last migration. Removing migration without database update doesn’t work because you applied changes to database. If using PMC, Try: PM> update-database 0 This will wipe the database and allow you to remove the … Read more

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