DNN Forums

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

DNN Module Fails to Install After Adding .ascx View — "File Not Found" or Upload Zip Error

 2 Replies
 0 Subscribed to this topic
 30 Subscribed to this forum
Sort:
Author
Messages
New Around Here
Posts: 7
New Around Here

I'm developing a DNN module using Visual Studio 2022 (Community Edition). Everything works fine until I add a new .ascx view file to the project (e.g., Indicateurs1.ascx) and reference it in the .dnn manifest:


                
                DesktopModules/Indicateurs/Indicateurs.ascx
                True
                Indicateurs View
                View
                
                
                0


After doing this and building the project, the ZIP is generated as expected, but:

  • The module becomes impossible to upload via the DNN extension installer

However, I confirmed the file exists in the project, and its properties are set to:

  • Build Action: Content

  • Copy to Output Directory: Copy Always

 

🧪 What I’ve tried:

  • Verified file is in the ZIP

  • Checked .dnn file paths

  • Compared against working modules

  • Checked IIS permissions

  • Tried different controlKey values

  • Recreated the .ascx file from scratch

  • Verified Visual Studio workloads (ASP.NET Desktop, Web)

 

Why does adding a simple .ascx file manually break the module ZIP packaging — even if the file physically exists — and only works after enabling this specific workload? Is there an internal dependency on MSBuild items that Visual Studio adds only when the template is used?

Thanks for your help!

New Around Here
Posts: 7
New Around Here
reference it in the .dnn manifest:



DesktopModules/Indicateurs/Indicateurs.ascx
True
Indicateurs View
View


0
New Around Here
Posts: 7
New Around Here

eference it in the .dnn manifest:

 

 

 

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