且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

System.MissingMethodException:没有为此对象定义无参数构造函数

更新时间:2023-11-21 23:28:52

你的 LogOnModel 有无参数构造函数吗?它需要一个 DefaultModelBinder 来实例化它.此外,当您发布异常时,请发布异常对象的完整堆栈跟踪,否则我们只是在猜测错误实际发生的位置.

Does your LogOnModel have a parameterless constructor? It needs one for the DefaultModelBinder to instantiate it. Additionally, when you post the exception, please post the full stack trace from the exception object, else we're simply guessing where the error actually took place.