asp.net - mvc 6 IApplicationEnvironment causes blank page -
i have asp 5 mvc 6 project , added iapplicationenvironment controller , of sudden going action in controller returns blank screen, 500 error can see in development tools
readonly dbdatacontext _dbcontext; readonly iapplicationenvironment _appenv; public contactcontroller(iapplicationenvironment appenv, dbdatacontext dbcontext) { _dbcontext = dbcontext; _appenv = appenv; }
does have ideas why might happening?
thanks!
i figured out - because had microsoft.framework.runtime
instead of using microsoft.extensions.platformabstractions;
@ top of controller. using second 1 made work fine.
Comments
Post a Comment