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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Usual error: "MinMax persistance type of cookie requires a ModuleId"Usual error: "MinMax persistance type of cookie requires a ModuleId"
Previous
 
Next
New Post
9/6/2006 5:53 AM
 

Hi everyone. I've seen LOTS of threads asking for an explanation but I saw no real answer to it.

The background of the error is the following: I'm working on a module for the integration of some apps. In the past, I've been working on version 2 of DNN and having a look at the new architecture I found it not very comfortable. Looking around, I decided to adopt the old module deveopment approach, following the instructions I found int THIS site. I did it because we needed to start ASAP and had no time to try and get confident with the new Business Layer.

I began development in this way and everything was ok. I almost finished it actually. I had this module with several controls inside (among them there was also a TreeView and a ReportViewer). I had a DataGrid with a template column containing a LinkButton. For many reasons I found more appropriate a HyperLink control, so I changed the column and recompile. That was THE ONLY ACTION I TOOK. The module did not work nymore and the error "MinMax persistance type of cookie requires a ModuleId" appeared. It seems that the module ID can't be found.

I installed the module manually from "Module definitions" and had 2 definitions for it with 2 view controls associated (1 for each definition). The module in the 2nd deinition works fine, while the other one does not. I tried every solution posted in evry known forum but nothing happened.

Seen that the compilation I last made should not ahve changed any dlls (I work on the aspx page only), I think it must be an "html" side parsing problem, but I couldn't realize what it'd be. Moreover the debugger does not get to the module code, so this means no code problem is verifying.

Hope you could light my life, becAUSE I'm working on it since 2 days from 8am to 11pm and I'm getting just a bit desperate. The last solution is going to be recreate the presentation layer from scratch and copy and paste the code, but, like Mulder says I WANNA KNOW!!!

thank you in advance

Marcos

 
New Post
9/6/2006 7:04 AM
 
Marcos,

99.9% of the time, I found this to be a problem with the compiling.  If you look in the log viewer, you will usually see three exceptions in order -- on Page Exception and two Module Exceptions.  Look at the *earliest* Module Exception, and it will tell you that it could not load type of such and such page.  (I my case, I usually didn't put in the right namespace.. complete PEBKAC error).  Other times it can be that the dll didn't get copied into the bin directory.

Hope this helps.
 
New Post
9/6/2006 10:35 AM
 

Thanks for your help. Anyway the error I get is: "Could not load type '$rootnamespace$.$classname$'"

Here is a copy of the complete log:

ModuleId: -1
ModuleDefId: -1
FriendlyName:
ModuleControlSource:
AssemblyVersion: 04.00.03
Method: System.Web.UI.TemplateParser.GetType
FileName:
FileLineNumber: 0
FileColumnNumber: 0
PortalID: 0
PortalName: My Website
UserID: 1
UserName: host
ActiveTabID: 36
ActiveTabName: Home
AbsoluteURL: /SozziIntranet/Default.aspx
AbsoluteURLReferrer:
ExceptionGUID: 10985dfd-1bba-4ba0-9ee5-970274bb15a9
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
InnerException: Could not load type '$rootnamespace$.$classname$'.
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Could not load type '$rootnamespace$.$classname$'. ---> System.Web.HttpParseException: Could not load type '$rootnamespace$.$classname$'. ---> System.Exception: Could not load type '$rootnamespace$.$classname$'. ---> System.Exception: Could not load type '$rootnamespace$.$classname$'. ---> System.Web.HttpException: Could not load type '$rootnamespace$.$classname$'. at System.Web.UI.TemplateParser.GetType(String typeName, Boolean ignoreCase, Boolean throwOnError) at System.Web.UI.TemplateParser.ProcessInheritsAttribute(String baseTypeName, String codeFileBaseTypeName, String src, Assembly assembly) at System.Web.UI.TemplateParser.PostProcessMainDirectiveAttributes(IDictionary parseData) --- End of inner exception stack trace --- at System.Web.UI.TemplateParser.ProcessException(Exception ex) at System.Web.UI.TemplateParser.PostProcessMainDirectiveAttributes(IDictionary parseData) at System.Web.UI.TemplateParser.ProcessMainDirective(IDictionary mainDirective) at System.Web.UI.TemplateControlParser.ProcessMainDirective(IDictionary mainDirective) at System.Web.UI.TemplateParser.ProcessDirective(String directiveName, IDictionary directive) at System.Web.UI.BaseTemplateParser.ProcessDirective(String directiveName, IDictionary directive) at System.Web.UI.TemplateControlParser.ProcessDirective(String directiveName, IDictionary directive) at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) --- End of inner exception stack trace --- at System.Web.UI.TemplateParser.ProcessException(Exception ex) at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) --- End of inner exception stack trace --- at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) at System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath) at System.Web.UI.TemplateParser.ParseInternal() at System.Web.UI.TemplateParser.Parse() at System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType() at System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(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 ---
StackTrace:
Source:
Server Name: MINGALDI

Thanks

 
New Post
9/6/2006 1:43 PM
 
I had this problem before with datagrids, and your on the right track about the html markup. Post your html, and we can take a closer look.
 
New Post
9/7/2006 3:05 AM
 
Wll, guys there must be some little dnn devil getting fun with me by putting some mess into my modules: I dropped the db and re-installed DNN from scratch. Then created my module definition, put my module on mthe home page and... IT WORKED!!! Many tears started dropping from my unbelieving eyes. To be completely sure a delete the module definition and re-created it and it worked again. Remains a mistery why the error came up, but I can come back home at 6pm again finally (and maybe get some rest). Thank you for your help anyway. Hope I'll never need it again :)
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Usual error: "MinMax persistance type of cookie requires a ModuleId"Usual error: "MinMax persistance type of cookie requires a ModuleId"


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