I had this problem come up in an Evoq DNN 9.2.2 instance and found the same symptoms of issues previously reported by others:
- clicking on the edit mode button would not enter edit mode
- JS Console displayed error message of
/API/internalservices/controlBar/ToggleUserMode 500 (Internal Server Error)
- Logs showed
"The type initializer for 'DotNetNuke.ExtensionPoints.ExtensionPointManager' threw an exception.The type initializer for 'DotNetNuke.ExtensionPoints.ExtensionPointManager' threw an exception." "System.IO.FileNotFoundException: Could not load file or assembly 'nunit.framework, Version=18.104.22.16896"
this was after installing and then uninstalling a 3rd party module. My thought is that the third party module, on uninstall either didn't remove a reference from the web.config, or it removed the nunit though another module needed it... still working through the details.
as a temporary work around, entering edit mode from the Page Admin persona bar screen allowed us to enter edit mode.
I'm also tying together issues here from the old forum
This also cooincided with errors seen adding a new module to a page when in edit mode. On screen a friendly looking popup (not .net error or js/console error) displayed the error message "Error occurred when request service 'GetPortalDesktopModules'."
and the console along with that is
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
anyone run into this and have an explination? Meanwhile, I'm looking for nunit to put to the bin...