Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Error: Your site template File Is Missing And Must be Uploaded To The Site.Error: Your site template File Is Missing And Must be Uploaded To The Site.
Previous
 
Next
New Post
9/23/2015 10:52 PM
 

I've created a module that makes child portals and it is displaying this error.

The module is installed on a new site.  So I'm sure its expecting to see some sort of default file.  The template we created on our development site was uploaded but it did not solve the error.

Which file(s) will satisfy it?

Thanks!

Mike

 

 
New Post
9/25/2015 10:27 AM
 
I'm not sure your error made it into the forum post?

Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
New Post
9/25/2015 11:14 AM
 
I just realized that you put your error in the title of the post. It wasn't exact, so it took a few minutes to track it down, but it appears to be an error that occurs when you don't have any skin (ASCX) files available to choose from in your site. Look in your ~\_default\Skins\ folder and any other folder you might have selected in there, and make sure there are skin files to be found. There needs to be at least one .ascx file in there.

Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
New Post
9/26/2015 10:06 AM
 

Will,

Here is the error:

 Here is the directory.  I copied one skin file to the ~/_default/skins/ path.  The Metro Skin is the  skin we're using and it does contain .ascx files:

I don't think it's a missing skin file.  I copied the template creating code from DNN Source so it could be that DNN just thinks there is an error of some sort.  I'm searching the VS solution for the text 'Your site template File Is Missing And Must be Uploaded To The Site'  and could not find it there.  Then I realized I'm setting up a fresh DNN install in test.  My module comes from a Dev solution I created it in.  That's from an existing Dev DNN site.

Dropping the module from the dev DNN site into the new site brings this up.  So there is a resource file someplace where the above text lives.  The test site is on a server with Visual studio installed so I'll be able to locate it and find out where my code is triggering it.

This being said ... if you come up with any ideas based on this input let me know.

Thanks!

 
New Post
9/26/2015 10:20 AM
 

Paydirt!  Found the key by the text, finally.  Here's the C# Code that triggering it:

        void BindTemplates()
        {
            var templates = TestablePortalController.Instance.GetAvailablePortalTemplates();

            foreach (var template in templates)
            {
                if (template.Name == Localization.GetString("PortalTemplateName.Text", LocalResourceFile))
                {
                    var item = CreateListItem(template);
                    cboTemplate.AddItem(item.Text, item.Value);
                    var ourTemplate = TestablePortalController.Instance.GetPortalTemplate(template.Name, Thread.CurrentThread.CurrentUICulture.Name);
                }
            }

            if (cboTemplate.Items.Count == 0)
            {
                DotNetNuke.UI.Skins.Skin.AddModuleMessage(this, "", Localization.GetString("PortalMissing", LocalResourceFile),
                                                ModuleMessage.ModuleMessageType.RedError);
                cmdCreateSite.Enabled = false;
            }
        }
 

I have pushed a template file up but apparently DNN doesn't like what it sees. :)  But I've found where to start looking at least.

Does this give you any ideas?  There are definitely items for the cboTemplate box to be loaded with but somehow it isn't seeing them.

This is DNN code revised in my module.  I'd have to dig for the original code file name, sorry I don't have it to hand.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Error: Your site template File Is Missing And Must be Uploaded To The Site.Error: Your site template File Is Missing And Must be Uploaded To The Site.


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

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

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. 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.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out