Strange Exception when starting a website - at System.RuntimeTypeHandle.GetTypeByName -


this first question on stack overflow, , you're last hope.

the site trying run, deployed on 15 different servers , working perfect.

however, on specific server, unable run it.

after configure in iis, try open in browser. browser gives me blank page, , in logs have following exception:

error}21/07/2016 14:46:31 -   @ system.runtimetypehandle.gettypebyname(string name, boolean throwonerror, boolean ignorecase, boolean reflectiononly, stackcrawlmarkhandle stackmark, intptr pprivhostbinder, boolean loadtypefrompartialname, objecthandleonstack type)    @ system.runtimetypehandle.gettypebyname(string name, boolean throwonerror, boolean ignorecase, boolean reflectiononly, stackcrawlmark& stackmark, intptr pprivhostbinder, boolean loadtypefrompartialname)    @ system.type.gettype(string typename, boolean throwonerror, boolean ignorecase)    @ system.web.compilation.buildmanager.gettype(string typename, boolean throwonerror, boolean ignorecase)    @ system.web.webpages.razor.webrazorhostfactory.createfactory(string typename)    @ system.collections.concurrent.concurrentdictionary`2.getoradd(tkey key, func`2 valuefactory)    @ system.web.webpages.razor.webrazorhostfactory.createhostfromconfigcore(razorwebsectiongroup config, string virtualpath, string physicalpath)    @ system.web.webpages.razor.razorbuildprovider.gethostfromconfig()    @ system.web.webpages.razor.razorbuildprovider.createhost()    @ system.web.webpages.razor.razorbuildprovider.get_host()    @ system.web.webpages.razor.razorbuildprovider.ensuregeneratedcode()    @ system.web.webpages.razor.razorbuildprovider.get_codecompilertype()    @ system.web.compilation.buildprovider.getcompilertypefrombuildprovider(buildprovider buildprovider)    @ system.web.compilation.buildproviderscompiler.processbuildproviders()    @ system.web.compilation.buildproviderscompiler.performbuild()    @ system.web.compilation.buildmanager.compilewebfile(virtualpath virtualpath)    @ system.web.compilation.buildmanager.getvpathbuildresultinternal(virtualpath virtualpath, boolean nobuild, boolean allowcrossapp, boolean allowbuildinprecompile, boolean throwifnotfound, boolean ensureisuptodate)    @ system.web.compilation.buildmanager.getvpathbuildresultwithnoassert(httpcontext context, virtualpath virtualpath, boolean nobuild, boolean allowcrossapp, boolean allowbuildinprecompile, boolean throwifnotfound, boolean ensureisuptodate)    @ system.web.compilation.buildmanager.getvirtualpathobjectfactory(virtualpath virtualpath, httpcontext context, boolean allowcrossapp, boolean throwifnotfound)    @ system.web.mvc.buildmanagerwrapper.system.web.mvc.ibuildmanager.fileexists(string virtualpath)    @ system.web.webpages.defaultdisplaymode.getdisplayinfo(httpcontextbase httpcontext, string virtualpath, func`2 virtualpathexists)    @ system.linq.enumerable.whereselectlistiterator`2.movenext()    @ system.linq.enumerable.firstordefault[tsource](ienumerable`1 source, func`2 predicate)    @ system.web.webpages.displaymodeprovider.getdisplayinfoforvirtualpath(string virtualpath, httpcontextbase httpcontext, func`2 virtualpathexists, idisplaymode currentdisplaymode)    @ system.web.mvc.virtualpathproviderviewengine.getpathfromgeneralname(controllercontext controllercontext, list`1 locations, string name, string controllername, string areaname, string cachekey, string[]& searchedlocations)    @ system.web.mvc.virtualpathproviderviewengine.getpath(controllercontext controllercontext, string[] locations, string[] arealocations, string locationspropertyname, string name, string controllername, string cachekeyprefix, boolean usecache, string[]& searchedlocations)    @ system.web.mvc.virtualpathproviderviewengine.findview(controllercontext controllercontext, string viewname, string mastername, boolean usecache)    @ system.web.mvc.viewenginecollection.<>c__displayclassc.<findview>b__b(iviewengine e)    @ system.web.mvc.viewenginecollection.find(func`2 lookup, boolean tracksearchedpaths)    @ system.web.mvc.viewresult.findview(controllercontext context)    @ system.web.mvc.viewresultbase.executeresult(controllercontext context)    @ system.web.mvc.controlleractioninvoker.<>c__displayclass1a.<invokeactionresultwithfilters>b__17()    @ system.web.mvc.controlleractioninvoker.invokeactionresultfilter(iresultfilter filter, resultexecutingcontext precontext, func`1 continuation)    @ system.web.mvc.controlleractioninvoker.invokeactionresultwithfilters(controllercontext controllercontext, ilist`1 filters, actionresult actionresult)    @ system.web.mvc.async.asynccontrolleractioninvoker.<>c__displayclass25.<begininvokeaction>b__22(iasyncresult asyncresult)    @ system.web.mvc.controller.<>c__displayclass1d.<beginexecutecore>b__18(iasyncresult asyncresult)    @ system.web.mvc.async.asyncresultwrapper.<>c__displayclass4.<makevoiddelegate>b__3(iasyncresult ar)    @ system.web.mvc.controller.endexecutecore(iasyncresult asyncresult)    @ system.web.mvc.async.asyncresultwrapper.<>c__displayclass4.<makevoiddelegate>b__3(iasyncresult ar)    @ system.web.mvc.mvchandler.<>c__displayclass8.<beginprocessrequest>b__3(iasyncresult asyncresult)    @ system.web.mvc.async.asyncresultwrapper.<>c__displayclass4.<makevoiddelegate>b__3(iasyncresult ar)    @ system.web.httpapplication.callhandlerexecutionstep.system.web.httpapplication.iexecutionstep.execute()    @ system.web.httpapplication.executestep(iexecutionstep step, boolean& completedsynchronously) 

yes full log, , gives me stack trace, , no error message. strange. please advice may check have fixed.

if need additional information, please let me know.

mvc 4 not installed on server. stupid me.


Comments