DNN Forums

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

Dependency errors when creating new module from template

 1 Replies
 1 Subscribed to this topic
 30 Subscribed to this forum
Sort:
Author
Messages
New Around Here
Posts: 1
New Around Here
New Member
New Member
You are a new member!
New Poster
New Poster
Congrats on posting!

Hi all,

Am trying out creating a DNN module for a future project at my company and I have been having a very frustrating experience getting things running even when right out of the box. After a few tries at installing DNN intself on my local machine I was eventually able to get the dnndev.me site running. From here I turned to creating and adding my own module as we will need it to host a 3rd party report generation tool. I installed the Chris Hammond templates as instructed by the documentation and followed one of his tutorial videos to create my first module. 

First issue encountered was that the module does not compile straight away. For some reason the project is set to .NET 4.7.2 while the dependencies it needs require .NET 4.8. Not sure why the discrepancy but I didn't create it so whatever. I update the project to the correct .NET version and now it compiles. But doing so has now broken the depencies for the ddndev.me site. When trying to visit I am met with an error: "Could not load file or assembly 'System.Collections.Immutable' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)"

If I place the old DLL from the downloaded install directory I am then met with a generic Application Error screen. The only way I've found so far to get dnndev.me running again is to full delete the created module and it's DLL's which defeats the whole purpose of what I am trying to do here. Am I going about this process incorrectly? Is there something that I'm missing that just hasn't been spelled out? I accept that I may have missed something but I find it very frustrating that I am encountering issues just installing and creating basic components with no modifications outside of what I have to do in order for them to build.

Veteran Member
Posts: 349
Veteran Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
MVP
MVP
You're an MVP!
2 Engaged Reader
Engaged Reader
You are an engaged reader!
Avid Reader
Avid Reader
Avid Reader art thou!

I run co-coding sessions on Discrord almost every friday if you want some help. The link to join our discord is on the home page of this very site.
Those templates probably target 4.7.2 because they still support older versions of DNN. You can bump that in your project settings to 4.8 if you don't intend to support older DNN versions.

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