I am working on an ASP.NET MVC project, I installed MVCGrid.Net, but it seems it calls the RegisterGrids method before all the other methods from the Global.asax -> Application_Start() method. In the Application_Start() I configure the Automapper, etc., so you can imagine when it calls the RegisterGrids first - there come a number of Exceptions.
I have applied a temporary fix, by making RegisterGrids() method empty and moving all its content to a separate method which I additionally call at the end of the Application_Start() and it does the job properly, but is there a better way to solve it?
I am working on an ASP.NET MVC project, I installed MVCGrid.Net, but it seems it calls the RegisterGrids method before all the other methods from the Global.asax -> Application_Start() method. In the Application_Start() I configure the Automapper, etc., so you can imagine when it calls the RegisterGrids first - there come a number of Exceptions.
I have applied a temporary fix, by making RegisterGrids() method empty and moving all its content to a separate method which I additionally call at the end of the Application_Start() and it does the job properly, but is there a better way to solve it?