DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

DotNetNuke.UI.Modules.IModuleControlPipeline Error

 14 Replies
 3 Subscribed to this topic
 37 Subscribed to this forum
Sort:
Page 1 of 212 > >>
Author
Messages
New Around Here
Posts: 4
New Around Here

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.

Veteran Member
Posts: 1246
Veteran Member
MVP
MVP
You're an MVP!
You really don't need to go through this to get DNN running, and you certainly don't need to "compile" anything.

Installing DNN is an absolute snap if you use nvQuickSite (https://github.com/nvisionative/nvQuickSite). It does absolutely everthing to get a DNN install up and running.
New Around Here
Posts: 4
New Around Here

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.

 

Veteran Member
Posts: 1246
Veteran Member
MVP
MVP
You're an MVP!
Like I said, but not very well, you should not be installing DNN this way. As a minimum, you shouldn't use the "precompile during publishing" option. If you are using the Install package or an Upgrade package, nothing needs to be compiled.

It is normal for some .cs files to be present. Which ones concern you?
New Around Here
Posts: 4
New Around Here
We have a few custom modules on the site and our App_Code folder contains some .cs files that we'd like to sit on the server as one .dll file to make it more secure.
Veteran Member
Posts: 1246
Veteran Member
MVP
MVP
You're an MVP!
You should set your custom modules up as compiled modules, compile them outside of DNN, create installation packages that don't include the cs files, and install them like other modules.

Take a look at Chris Hammonds module development templates to see how this is done (the scaffolding is there to create both "install" and "source" packages.
New Around Here
Posts: 4
New Around Here

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?

Veteran Member
Posts: 1246
Veteran Member
MVP
MVP
You're an MVP!
I'm afraid that I don't have an answer for you other than to repeat my suggestion that you convert this into a compile module. That really is the standard way to do things.
Advanced Member
Posts: 159
Advanced Member
MVP
MVP
You're an MVP!

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 <code>App_Code</code> folder anymore. Here are some module template options:

VM
New Around Here
Posts: 9
New Around Here
Richard - Could you please share how did you resolve the issue. I am experiencing the same issue as you.
Page 1 of 212 > >>

These Forums are for the discussion of the open source CMS DNN platform and ecosystem.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
  2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
  3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  5. No Flaming or Trolling.
  6. No Profanity, Racism, or Prejudice.
  7. Site Moderators have the final word on approving / removing a thread or post or comment.
  8. English language posting only, please.

Would you like to help us?

Awesome! Simply post in the forums using the link below and we'll get you started.

Get Involved