I seem to be experiencing a similiar issue to what was posted at https://dnncommunity.org/forums/aft/762
When the site is published (using web deploy package as the method in VS2017) and compiled, it functions correctly upon initial upload but some time later when the application is visited again it shows a 500 internal server error.
The error returned "No service for type 'DotNetNuke.UI.Modules.IModuleControlPipeline' has been registered."
It is the install package of DNN 9.4.1 running.
When I don't compile the site it functions as expected.
Thanks for the reply Joe, the install of DNN 9.4.1 is working fine.
The issue with the site I am building arises when I use the "precompile during publishing" setting in VS2017 to hide the .cs files. I upload the site and it works on initial load however sometime later when the site is refreshed it will show a 500 internal server error.
The error log shows "No service for type 'DotNetNuke.UI.Modules.IModuleControlPipeline' has been registered."
When the precompile setting is unchecked in VS2017 the error message is no longer an issue and the site functions properly but with the .cs files present.
The targetting framework is .NET Framework 4.7.2.
Thanks for the guidance on the custom modules Joe.
From doing some reading it appears the best way to get the App Code converted into one .dll file is using the precompile during publishing option in VS. If we execute this it will throw that No service for type 'DotNetNuke.UI.Modules.IModuleControlPipeline error for which there seems to be no known fix. Would you know if there is a different way to try and compile the App Code folder to a single .dll file?
Using one of the common module templates will create a new C# project for you, and compile all of your code into a DLL. You won't be using the App_Code folder anymore. Here are some module template options:
App_Code
generator-dnn
starter-module-web-forms
These Forums are dedicated to the discussion of DNN Platform.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.