Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Visual Studio 2018 - Erro ao acessar BD

Já alterei o banco para local, mas não resolveu.

Erro na tentativa de listar...

            return contexto.Produtos.Include("Categoria").ToList();

System.Data.Entity.Core.ProviderIncompatibleException: 'An error occurred accessing the database. This usually means that the connection to the database failed. Check that the connection string is correct and that the appropriate DbContext constructor is being used to specify it or find it in the application's config file. See http://go.microsoft.com/fwlink/?LinkId=386386 for information on DbContext and connections. See the inner exception for details of the failure.'

1 resposta
solução!

Corrigido alterando o webconfig manualmente para...

connectionString="Data Source=(LocalDB)\MSSQLLocalDB;

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software