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...Please Help. Error: The base class includes the field Please Help. Error: The base class includes the field 'ctlRoles', but its type
Previous
 
Next
New Post
9/10/2006 7:08 PM
 

Hello,

Could some one please help? I am stuck with this error.

Error:
Edit User Accounts is currently unavailable. (see stack trace below)
Its in this module Admin/Users/ManageUsers.ascx
And the error is
The base class includes the field 'ctlRoles', but its type (DotNetNuke.Modules.Admin.Security.SecurityRoles) is not compatible with the type of control (ASP.admin_security_securityroles_ascx) ...

At first I thought it could be some bug between the 64bit and 32bit versions of os or the framework but it doesn’t make sense. If that was the case then why would the other modules work ?

Home machine: AMD 64 with win 2003 server 64 bit
Hosting: on discountasp.net
DNN Version: 4.3.4
Problem:
when i login as admin or host on my home dev machine and try to edit the user account (Admin | User Account | All | then click on pencil next to admin account)
I can see the edit form perfectly. But when i try to do it after it’s deployed to the web hosting service. I get this error (i got the stack trace from the log viewer a handy thing  click Admin | Log Viewer)

Anyone else encounterd this problem ? Thanks in advance.

Regards

Stack Trace:

ModuleId: 356
ModuleDefId: 15
FriendlyName: Edit User Accounts
ModuleControlSource: Admin/Users/ManageUsers.ascx
AssemblyVersion: 04.03.04
PortalID: 0
PortalName: SKMTech
UserID: 1
UserName: host
ActiveTabID: 45
ActiveTabName: User Accounts
RawURL: /Portal01/Admin/UserAccounts/tabid/45/ctl/Edit/mid/356/UserId/2/Default.aspx
AbsoluteURL: /Portal01/Default.aspx
AbsoluteURLReferrer: http://www.skmtech.com/Portal01/Admin/UserAccounts/tabid/45/filter/All/currentpage/1/PageRecords/10/Default.aspx
UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; WOW64; .NET CLR 2.0.50727; InfoPath.1)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 35eb6a63-317d-4ca1-ab5b-5d585fd533fd
InnerException: The base class includes the field 'ctlRoles', but its type (DotNetNuke.Modules.Admin.Security.SecurityRoles) is not compatible with the type of control (ASP.admin_security_securityroles_ascx).
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildFieldDeclaration
StackTrace:
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: The base class includes the field 'ctlRoles', but its type (DotNetNuke.Modules.Admin.Security.SecurityRoles) is not compatible with the type of control (ASP.admin_security_securityroles_ascx). ---> System.Web.HttpParseException: The base class includes the field 'ctlRoles', but its type (DotNetNuke.Modules.Admin.Security.SecurityRoles) is not compatible with the type of control (ASP.admin_security_securityroles_ascx). ---> System.Web.HttpParseException: The base class includes the field 'ctlRoles', but its type (DotNetNuke.Modules.Admin.Security.SecurityRoles) is not compatible with the type of control (ASP.admin_security_securityroles_ascx). at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildFieldDeclaration(ControlBuilder builder) at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse) at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse) at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse) at System.Web.Compilation.TemplateControlCodeDomTreeGenerator.BuildMiscClassMembers() at System.Web.Compilation.BaseCodeDomTreeGenerator.BuildSourceDataTree() at System.Web.Compilation.BaseTemplateBuildProvider.GenerateCode(AssemblyBuilder assemblyBuilder) at System.Web.Compilation.AssemblyBuilder.AddBuildProvider(BuildProvider buildProvider) --- End of inner exception stack trace --- at System.Web.Compilation.AssemblyBuilder.AddBuildProvider(BuildProvider buildProvider) at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders() at System.Web.Compilation.BuildProvidersCompiler.PerformBuild() at System.Web.Compilation.BuildManager.CompileWebFile(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.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at System.Web.UI.TemplateControl.LoadControl(String virtualPath) at DotNetNuke.UI.Skins.Skin.InjectModule(Control objPane, ModuleInfo objModule, PortalSettings PortalSettings) --- End of inner exception stack trace ---
Source:
Server Name: WEB127


Regards KM
 
New Post
9/11/2006 7:12 PM
 

Me again,

Found some interesting article on the Microsoft site
http://support.microsoft.com/kb/919284/en-us?spid=8940&sid=258

It still dosent make sense, can some DNN guru please look int it.
Thanks

Duplicating it here just in case ...

Error messages when you try to run an ASP.NET 2.0 Web application that is built on the .NET Framework 2.0

Article ID : 919284
Last Review : July 25, 2006
Revision : 1.0

SYMPTOMS

When you try to run a Microsoft ASP.NET 2.0 Web application that is built on the Microsoft .NET Framework 2.0, you may receive an error message that resembles one of the following error messages:
The base class includes the field 'MyControl_1', but its type (MyControl) is not compatible with the type of control (ASP.MyControl_ascx).
Unable to cast object of type 'ASP.MyControl_ascx' to type 'MyNameSpace.MyControl '.
Circular file references are not allowed.
Note In these error messages, MyControl is the name of the control that has caused the error. MyNameSpace is the name of the namespace that this control is a member of

CAUSE

This is problem occurs because of the way in which ASP.NET 2.0 uses the application references and the folder structure of the application to compile the application. If the batch property of the <compilation> element in the web.config file for the application is set to true, ASP.NET 2.0 compiles each folder in the application into a separate assembly. In this scenario, a circular reference may occur. Additionally, the compilation process may fail if either of the following conditions is true:
The application contains references to Web controls.
The application contains references to Web pages that are outside the current directory.

 


Regards KM
 
New Post
9/13/2006 5:36 PM
 
When you publish your site to the server, make sure the "Allow this precompiled site to be updatable" and the "Use fixed naming and single page assemblies" checkboxes are checked.

That seemed to resolve a similar issue that I ran into...

 
New Post
9/14/2006 10:29 AM
 

Yes It worked.
Whoooo hooooo !!!
Thanks a lot.

 


Regards KM
 
New Post
2/14/2007 8:04 PM
 

wrote
make sure the "Use fixed naming and single page assemblies" checkboxes are checked.

I don't like to have single page assemblies. As it said in the reffered MSDN article,
"The individual page assemblies are then loaded at the next available memory location. Additionally, the individual page assemblies cannot be moved. This causes memory fragmentation."
As I understand, the problem is that admin\Users\manageusers.ascx refers ~/Admin/Security/SecurityRoles.ascx,
that located in the different folder.
To restructure core folders to put all related controls into the same folder is a big job.

Does anyone has other suggestions how to resolve the issue?  


Michael Freidgeim http://geekswithblogs.net/mnf
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Please Help. Error: The base class includes the field Please Help. Error: The base class includes the field 'ctlRoles', but its type


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