小编luk*_*uka的帖子

MiniProfilerEF6.Initialize()c#上的错误?

我在我调用的App_Start()方法的MVC项目中使用miniprofiler

  MiniProfilerEF6.Initialize()
Run Code Online (Sandbox Code Playgroud)

我收到错误:

     the Entity Framework was already using a DbConfiguration 
instance before an attempt was made to add an 'Loaded' event handler.
 'Loaded' event handlers can only be added as part of application start
 up before the Entity Framework is used. See http://go.microsoft.com/fwlink/?LinkId=260883 for more information.
Run Code Online (Sandbox Code Playgroud)

c# mvc-mini-profiler

5
推荐指数
1
解决办法
1207
查看次数

标签 统计

c# ×1

mvc-mini-profiler ×1