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...Administration ...Administration ...ModuleSettings.ascx.vb(651): error BC30451: ModuleSettings.ascx.vb(651): error BC30451: 'destinationTab' is not declared.
Previous
 
Next
New Post
10/13/2010 6:43 PM
 
After upgrading a website from v. 4.7.0 to 5.5.1 I am getting this error anytime I try to go into a module's settings:

ModuleId: 4501
ModuleDefId: -1
FriendlyName:
ModuleControlSource: Admin/Modules/ModuleSettings.ascx
AssemblyVersion: 5.5.1
PortalID: 4
PortalName: ###### ######
UserID: 1
UserName: host
ActiveTabID: 119
ActiveTabName: Home
RawURL: /Home/tabid/119/ctl/Module/ModuleId/4501/Default.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://www.###############.com/Home/tabid/119/Default.aspx
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10 (.NET CLR 3.5.30729) Creative ZENcast v2.01.01
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: b8457a84-f4ba-4bfc-b2ab-6a9e0e356c73
InnerException: C:######\Admin\Modules\ModuleSettings.ascx.vb(651): error BC30451: 'destinationTab' is not declared. It may be inaccessible due to its protection level.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Web.Compilation.BuildManager.CompileWebFile
StackTrace:
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: C:\#########\Admin\Modules\ModuleSettings.ascx.vb(651): error BC30451: 'destinationTab' is not declared. It may be inaccessible due to its protection level. ---> System.Web.HttpCompileException: C:\###########\Admin\Modules\ModuleSettings.ascx.vb(651): error BC30451: 'destinationTab' is not declared. It may be inaccessible due to its protection level. at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean ensureIsUpToDate) at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at DotNetNuke.UI.ControlUtilities.LoadControl[T](TemplateControl containerControl, String ControlSrc) at DotNetNuke.UI.Modules.ModuleHost.LoadModuleControl() --- End of inner exception stack trace ---
Source:
Server Name: WEB-T4YSZWRHZZZ
 
New Post
10/21/2010 9:19 PM
 
Not sure the cause still...  but I recylced the application pool and restarted IIS and the error went away. 
 
New Post
4/16/2011 1:00 AM
 

It is caused by the following line of code missing in the ModuleSettings.ascx.vb file in the admin -> modules folder... I changed it in a text editor i.e. notepad

Dim destinationTab as TabInfo

This code is around line 651

Dim listTabs As List(Of Entities.Tabs.TabInfo) =
TabController.GetPortalTabs(PortalSettings.PortalId, Null.NullInteger, False, True)

If chkAllTabs.Checked Then
If Not chkNewTabs.Checked Then
For Each destinationTab In listTabs
objModules.CopyModule([Module], destinationTab, Null.NullString, True)
Next
End If
Else
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...ModuleSettings.ascx.vb(651): error BC30451: ModuleSettings.ascx.vb(651): error BC30451: 'destinationTab' is not declared.


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