ASP.NET API DI (Simple Injector) null reference on IIS pool recycle

前端 未结 1 541
清酒与你
清酒与你 2021-01-25 06:31

I previously posted another question, but after some observations, I have narrowed down to what it may be that\'s causing my problem. Basically, once the IIS Application Pool i

1条回答
  •  离开以前
    2021-01-25 07:29

    var assemblies = BuildManager.GetReferencedAssemblies().Cast();
    

    Put inside of the Global.asax Application_Start() seems to have resolved the issue!

    0 讨论(0)
提交回复
热议问题