Sitecore - ControllerRendering complaining about Controller “not found or does not implement IController.”

十年热恋 提交于 2019-12-07 08:30:29

问题


So I have created my Controller Rendering, that uses controller

Sitecore.Social.Twitter.Client.Mvc.Areas.Social.Controllers.TwitterConnectorController

like so:

But when I try to access the page, I get an error complaining about the Controller not being controller enough:

But if I inspect the dll with the Object Viewer, the controller in question indeed inherits from IController:

So, what is going on here? Why am I receiving this error?

EDIT: I suspect that perhaps the error message is merely a symptom, and Sitecore is somehow unable to access the controller in the DLL. What factors could cause this behavior, and how can I debug them?


回答1:


This link worked for me: http://jockstothecore.com/adventures-in-dependency-injection/

Basically fully qualified controller names bug out the system. I updated mine to use the class name (minus the "controller" word) and proper action and it solved my issue.




回答2:


I checked TwitterConnectorController and I don't see any connection between /ajax/sociallogin and TwitterConnectorController

Please search for sociallogin controller and check if is inherits from from SitecoreController




回答3:


When I turned current framework of project to

.NET Framework 4.6.1

previously scaffolding was also not working and it started to work.



来源:https://stackoverflow.com/questions/36624936/sitecore-controllerrendering-complaining-about-controller-not-found-or-does-n

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!