Server Error in '/' Application. No parameterless constructor defined for this object

前端 未结 6 2006
感动是毒
感动是毒 2021-01-11 11:55

The callstack shows the following:

[MissingMethodException: No parameterless constructor defined for this object.]
System.RuntimeTypeHandle.CreateInstance(Ru         


        
6条回答
  •  粉色の甜心
    2021-01-11 12:19

    Did you remove Default.aspx? That needs to be in place to render the root properly. This can also happen if you're trying to use Dependency Injection and your container isn't setup properly - meaning there is no ControllerFactory that asks the DI Container for the instance.

提交回复
热议问题