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

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -