This error may come when installing Azure DevOps Server, all you need to do is to open command prompt as administrator and navigate to Elastic search directory which is usullay as below:
D:\Program Files\Azure DevOps Server 2019\Search\ES\elasticsearchv6.2\bin
And run below command:
elasticsearch-service.bat remove
You will get message as below upon success:
The service ‘elasticsearch-service-x64’ has been removed
Are you moving changes from Development Environment to staging and you are getting above error, well there is a very quick and simple solution to the problem.
Just got to database and delete this table, and it will solve the issue, given that you already have moved the changes to the required tables etc using SQL compare or any other tool.
_MigrationsHistory
Considerations and Other Solutions:
There is an other approach to automatically move the changes to database by using below code in configuration.cs file in Migrations folder.
AutomaticMigrationsEnabled = true;
Please for the love of God don’t go for drop and recreate database option, as you will lose data when accidentally code is moved to staging or production, code as given below(Warning, You will lose data by using this)
I am using Dotnet-Core 2.1.11 on windows so I downloaded the package as highlighted below:
For some reason if you get the below error, that surely mean that you have installed wrong version of the dotnet-core, you don’t need to uninstall previously installed package for most cases, just install the correct version and you are good to go.
http error 502.5 – process failure asp.net core 2.1
It will restore the packages at once and you need to cancel the build and initiate again. Next time whole process will work like a charm. Please also make sure you have access to internet or source of the nuget packages.