Insights application error while updating database

I recently installed application information in my project ASP.Net MVC 5, and it works as intended.

But when I run the command Update-Databasefor the application of my migration to the database, I get the following error: Couldn't find type for class Microsoft.ApplicationInsights.TraceListener.ApplicationInsightsTraceListener.

The project I am running Update-Databaseon is a separate project (class library) that is included in a web project.

Does anyone know how to fix this?

UPDATE: it works when I ApplicationInsightsTraceListenerremove the nuget package , but it would be nice if it could be fixed without removing it.

+4
source share
1 answer

, DbContext. , NuGet ApplicationInsightsTraceListener . ApplicationInsights NuGet - , , /-.

NuGet, Trace DbContexts, , DbContext... NuGet .

..

+1

Source: https://habr.com/ru/post/1678165/


All Articles