原文: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