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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Fix for Error: Export Template is currently unavailableFix for Error: Export Template is currently unavailable
Previous
 
Next
New Post
3/1/2010 7:04 AM
 

Hi,

I recently went to check on my installed portals and noticed that the Export Template part of Host->Portals was coming back with a ModuleLoadException. It appears to be a result of a portion of the 05.00.00.SqlDataProvider not running correctly (on my upgrade at least - can someone from the Core confirm if this is a general issue?). Here's what I discovered, and the fix I applied.

I believe the problem arose out of part of the 05.00.00.SqlDataProvider (lines 933-937) not running as intended. The failure is "silent" and does not produce a message in the log file for 05.00.00.log. That whole section of the script (lines 909-943) have to do with the change of Admin and Host modules to becoming "standard Desktop Modules". Part of that change entailed the moving of the physical code from being under "~/Admin/..." to being under "~/DesktopModules/Admin/...". The script attempts to do the move the location of the controls where the Friendly Name is 'Portals'. The reason that the Export Template (lines 933-937) didn't move is that its Friendly Name was 'Export Template' (even though it was a "subset" of Portals, as appears to be intended by 04.04.00.SqlDataProvider, lines 1138-53).

I was able to confirm the error by running the following script:

select * from ModuleControls where ControlSrc in ('Admin/Portal/Portals.ascx','Admin/Portal/SiteSettings.ascx','Admin/Portal/Template.ascx','Admin/Portal/Signup.ascx') 

Running the script returned one row - the Template.ascx that wasn't loading. To fix the error, I ran the following script:

UPDATE ModuleControls
SET ControlSrc = 'DesktopModules/Admin/Portals/Template.ascx',
   IconFile = '~/images/icon_sitesettings_32px.gif'
WHERE ControlSrc = 'Admin/Portals/Template.ascx'

After running the script, I went to Host->Host Settings and clicked "Restart Application" at the bottom. When I revisited Host->Portals, everything was fine once again.

I hope this helps anyone else who had this problem!

Background Info:

Here's a trimmed copy of the exception in the Event Viewer:

FriendlyName: Export Template
ModuleControlSource: Admin/Portal/Template.ascx
AssemblyVersion: 5.2.3
ActiveTabName: Portals
InnerException: The file '/Admin/Portal/Template.ascx' does not exist.
FileName: 
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Web.UI.Util.CheckVirtualFileExists
StackTrace: 
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: The file '/Admin/Portal/Template.ascx' does not exist. ---> System.Web.HttpException: The file '/Admin/Portal/Template.ascx' does not exist.at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath)at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath)at System.Web.UI.TemplateControl.LoadControl(String virtualPath)at DotNetNuke.UI.ControlUtilities.LoadControl[T](TemplateControl containerControl, String ControlSrc)at DotNetNuke.UI.Modules.ModuleHost.LoadModuleControl()--- End of inner exception stack trace ---
 

Here's the portion of 05.00.00.SqlDataProvider that this relates to (lines 909-943):

/* Update Portals Module */
/*************************/
 
DECLARE @ModuleDefID int
SET @ModuleDefID = (SELECT ModuleDefID FROM {databaseOwner}{objectQualifier}ModuleDefinitions WHERE FriendlyName = 'Portals')
 
UPDATE {databaseOwner}{objectQualifier}DesktopModules
SET FolderName = 'Admin/Portals',
   IsPremium = 1
WHERE ModuleName = 'Portals'
 
UPDATE {databaseOwner}{objectQualifier}ModuleControls
SET ControlSrc = 'DesktopModules/Admin/Portals/Portals.ascx',
   IconFile = '~/images/icon_sitesettings_32px.gif'
WHERE ControlSrc = 'Admin/Portal/Portals.ascx'
   AND ModuleDefID = @ModuleDefID
 
UPDATE {databaseOwner}{objectQualifier}ModuleControls
SET ControlSrc = 'DesktopModules/Admin/Portals/SiteSettings.ascx',
   ControlType = 3,
   IconFile = '~/images/icon_sitesettings_32px.gif'
WHERE ControlSrc = 'Admin/Portal/SiteSettings.ascx'
   AND ModuleDefID = @ModuleDefID
 
UPDATE {databaseOwner}{objectQualifier}ModuleControls
SET ControlSrc = 'DesktopModules/Admin/Portals/Template.ascx',
   IconFile = '~/images/icon_sitesettings_32px.gif'
WHERE ControlSrc = 'Admin/Portal/Template.ascx'
   AND ModuleDefID = @ModuleDefID
 
UPDATE {databaseOwner}{objectQualifier}ModuleControls
SET ControlSrc = 'DesktopModules/Admin/Portals/Signup.ascx',
   IconFile = '~/images/icon_sitesettings_32px.gif'
WHERE ControlSrc = 'Admin/Portal/Signup.ascx'
   AND ModuleDefID = @ModuleDefID
 
 
 
New Post
9/29/2010 6:53 PM
 
Daniel,

Thank you for taking the time to post this. Made it easy for me to correct the same problem.

Mike

pmgerholdt
 
New Post
9/29/2010 11:39 PM
 
You're welcome! I'm glad it helped!
 
New Post
12/31/2010 6:33 AM
 
There is an error in this sql. It should look like code below. There is no S on the end of Portal

UPDATE ModuleControls
SET ControlSrc = 'DesktopModules/Admin/Portals/Template.ascx',
   IconFile = '~/images/icon_sitesettings_32px.gif'
WHERE ControlSrc = 'Admin/Portal/Template.ascx'
 
New Post
12/31/2010 8:11 AM
 
Andrew, please log your finding into the DNN issue tracker at support.dotnetnuke.com. Thank you!

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Fix for Error: Export Template is currently unavailableFix for Error: Export Template is currently unavailable


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