原文:Make sure that the controller has a parameterless public constructor.

web调用了wcf,发现是wcf那边出错,连不上数据库导致的。 数据库的ip更换了 : : , ERROR : controller:Logon, action:LogonSystem.InvalidOperationException: An error occurred when trying to create a controller of type UKERecognition.Admi ...

2020-03-24 11:02 0 674 推荐指数:

查看详情

no parameterless constructor define for type 解决一例

在生成根据模型和上下文生成带增删查改操作的视图的控制器时,提示上述信息,网上查找了资料也没有解决,突然想起该项目是连接MSSQL数据库和Redis数据库的,并且已经依赖注入了,而Redis数据库的服务 ...

Mon Feb 03 23:29:00 CST 2020 0 1425
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM