BoC icon indicating copy to clipboard operation
BoC copied to clipboard

Getting Error InitBoc Error

Open aruntd77 opened this issue 8 years ago • 3 comments

Value cannot be null. Parameter name: resolver Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentNullException: Value cannot be null. Parameter name: resolver

Source Error:

Line 17: { Line 18: public static IDependencyResolver CreateResolver(){ Line 19: global::BoC.Persistence.SitecoreGlass.Initialize.InitBoc.Start(); Line 20: Line 21: var config = new global::Glass.Mapper.Sc.Config();

aruntd77 avatar Dec 28 '16 11:12 aruntd77

@aruntd77 did you include one of the boc.ioc.* libraries (eg boc.inversionofcontrol.simpleinjector).. you'll need to choose a dependency injection container to use this

csteeg avatar Dec 28 '16 12:12 csteeg

Hi, as per blog I followed the steps, I have added BoC.InversionOfControl.Unity nuget. I see the DLL "BoC.InversionOfControl.Unity" added in my project. Which config I should use to set the dependency injection?

aruntd77 avatar Dec 28 '16 12:12 aruntd77

Sorry I had followed the blog instructions from http://guidovtricht.nl/2015/07/sitecore-mvc-musicstore-part-2/#comment-22191. Let me check the configuration and get back to you

aruntd77 avatar Dec 28 '16 12:12 aruntd77