-1

Is it possible to implement constructor dependency injection with asp.net webforms 4.6.2?

Tried building the container in the Global.asax >> Application_Start method. However, I encountered the below error:

"Could not load file or assembly 'Autofac, Version=4.6.2.0, Culture=neutral, PublicKeyToken=17863af14b0044da' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)"

CodeVenture
  • 157
  • 1
  • 16
  • Have you tried anything yet? – Broots Waymb Oct 22 '19 at 19:55
  • Yes, tried and getting error as 'Could not load file or assembly 'Autofac, Version=4.6.2.0, Culture=neutral, PublicKeyToken=17863af14b0044da' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)' – CodeVenture Oct 22 '19 at 20:01

1 Answers1

0

Have you tried Ninject dependency resolver. It work's great in .net Web aplication. I think you can use it. You can see the below link

ninject

Wasim
  • 11
  • 4