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

Popular posts from this blog

compilation - PHP install fails on Ubuntu 14 (make: *** [sapi/cli/php] Error 1) PHP 5.6.20 -

javascript - return highlighted cells to php -

java - Creating a room by reading from a file (for a game) -