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.0MinMax Persistance error on my new C# module suddenly appearedMinMax Persistance error on my new C# module suddenly appeared
Previous
 
Next
New Post
5/22/2006 10:01 AM
 

I recently got my C# module to work(fantastic!!). All was fine and allthough i have seen the MinMax persistance problem before from where i recreated the entire module i was content. Next, I added a record. All still working fine. The next morning when I did a F5 i got

MinMax persistance type of cookie requires a ModuleId

I looked at all the forumns and have done what was suggested but still no luck. here is the main suggestions. It seems like there is no silver bullet for this problem, but any new suggestion would be great

1. Check your module namespaces and make sure that are all in sync (http://forums.asp.net/thread/1142102.aspx)

2. Alter the EditUrl on the Viewxxx.ascx page (http://dnnjungle.vmasanas.net/Forums/tabid/122/forumid/6/threadid/12/scope/posts/Default.aspx)

3. I have even started from scatch as suggested by (http://forums.asp.net/1150834/ShowPost.aspx) using only the templates

4. Lastly i deleted to EditUrl method on the ViewXXX.ascx - but still the problem exist

Here is a log of my error

AssemblyVersion: 04.00.03
Method: DotNetNuke.UI.Utilities.DNNClientAPI.EnableMinMax
FileName: C:\DotNetNuke\Library\Components\Shared\ClientAPI.vb
FileLineNumber: 155
FileColumnNumber: 50
PortalID: 0
PortalName: My Website
UserID: 1
UserName: host
ActiveTabID: 36
ActiveTabName: Home
AbsoluteURL: /DotNetNuke_2/Default.aspx
AbsoluteURLReferrer: http://localhost/DotNetNuke_2/Home/tabid/36/ctl/Login/Default.aspx
ExceptionGUID: 33fad3db-77ab-40bd-8edd-f24ddb44a872
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
InnerException: MinMax persistance type of cookie requires a ModuleId
Message: DotNetNuke.Services.Exceptions.PageLoadException: MinMax persistance type of cookie requires a ModuleId ---> System.Exception: MinMax persistance type of cookie requires a ModuleId at DotNetNuke.UI.Utilities.DNNClientAPI.EnableMinMax(Control objButton, Control objContent, Int32 intModuleId, Boolean blnDefaultMin, String strMinIconLoc, String strMaxIconLoc, MinMaxPersistanceType ePersistanceType, Int32 intAnimationFrames) in C:\DotNetNuke\Library\Components\Shared\ClientAPI.vb:line 155 at DotNetNuke.UI.Containers.Visibility.Page_PreRender(Object sender, EventArgs e) in C:\DotNetNuke\Website\Admin\Containers\Visibility.ascx.vb:line 238 at System.Web.UI.Control.OnPreRender(EventArgs e) at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
StackTrace:
Source:
Server Name: AROUX-LAPTOP4
  5/22/2006 3:53:28 PM   Module Load Exception   host     ModuleId: -1; ModuleDefId: -1; FriendlyName: ...
ModuleId: -1
ModuleDefId: -1
FriendlyName:
ModuleControlSource:
AssemblyVersion: 04.00.03
Method: System.Web.UI.UserControl.get_Request
FileName:
FileLineNumber: 0
FileColumnNumber: 0
PortalID: 0
PortalName: My Website
UserID: 1
UserName: host
ActiveTabID: 36
ActiveTabName: Home
AbsoluteURL: /DotNetNuke_2/Default.aspx
AbsoluteURLReferrer: http://localhost/DotNetNuke_2/Home/tabid/36/ctl/Login/Default.aspx
ExceptionGUID: 94a34ad7-0653-4f4b-b0c5-1528ebae653f
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
InnerException: Object reference not set to an instance of an object.
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at System.Web.UI.UserControl.get_Request() at DotNetNuke.Entities.Modules.PortalModuleBase.get_IsEditable() in C:\DotNetNuke\Library\Components\Modules\PortalModuleBase.vb:line 272 at DotNetNuke.UI.Containers.Title.CanEditModule() in C:\DotNetNuke\Website\Admin\Containers\Title.ascx.vb:line 52 at DotNetNuke.UI.Containers.Title.Page_Load(Object sender, EventArgs e) in C:\DotNetNuke\Website\Admin\Containers\Title.ascx.vb:line 82 --- End of inner exception stack trace ---
StackTrace:
Source:
Server Name: AROUX-LAPTOP4
  5/22/2006 3:53:27 PM   Module Load Exception   host     ModuleId: -1; ModuleDefId: -1; FriendlyName: ...
ModuleId: -1
ModuleDefId: -1
FriendlyName:
ModuleControlSource:
AssemblyVersion: 04.00.03
Method: System.Web.Compilation.BuildManager.CompileWebFile
FileName:
FileLineNumber: 0
FileColumnNumber: 0
PortalID: 0
PortalName: My Website
UserID: 1
UserName: host
ActiveTabID: 36
ActiveTabName: Home
AbsoluteURL: /DotNetNuke_2/Default.aspx
AbsoluteURLReferrer: http://localhost/DotNetNuke_2/Home/tabid/36/ctl/Login/Default.aspx
ExceptionGUID: 627907d7-eabb-4b34-ba7f-6a507e239886
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
InnerException: c:\DotNetNuke\Website\DesktopModules\ImageLinkBanners\ViewImageLinkBanners.ascx.cs(109): error CS0103: The name 'colImageLinkBannerss' does not exist in the current context
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: c:\DotNetNuke\Website\DesktopModules\ImageLinkBanners\ViewImageLinkBanners.ascx.cs(109): error CS0103: The name 'colImageLinkBannerss' does not exist in the current context ---> System.Web.HttpCompileException: c:\DotNetNuke\Website\DesktopModules\ImageLinkBanners\ViewImageLinkBanners.ascx.cs(109): error CS0103: The name 'colImageLinkBannerss' does not exist in the current context 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) in C:\DotNetNuke\Library\Components\Skins\Skin.vb:line 466 --- End of inner exception stack trace ---
StackTrace:
Source:
Server Name: AROUX-LAPTOP4

 
New Post
5/22/2006 11:01 AM
 

Hi

i dont know if this is the same For C#

but did you check if the module is made in the bin folder of dnn?
by choosing properties on your project and select configuration properties
then by build select the bin folder of dnn
same for the sqlprovider.

hope this helps,Sander

 
New Post
5/22/2006 12:47 PM
 

Hi Sander. Thanks for the tip but with the so-called "Starter-pack" in VS.net 2005, the c# module automatically is added to the http://localhost/DotNetNuke project and creates the DAS under something called AppCode and the actual modules under the DesktopModules. What you need to do (because of C#) you need to add the following to the Web.config

 <codeSubDirectories>

<add directoryName="myModuleName"/>

</codeSubDirectories>

I have done all that but still the problems is there ...any help welcome

 
New Post
5/24/2006 5:06 AM
 

Try this...

http://help.speerio.net/filemanagerpro/250/dnn/default.htm#Resources/DNNDebug.aspx.htm

...to help pinpoint the actual error which is being disguised by the min/max eception.

Just don't leave it on a production server!

I hope this is of some help to you.


Dwayne J. Baldwin
 
New Post
5/24/2006 9:03 AM
 

I find this problem a true head ache.

In my module ViewXXX.ascx.cs file, i decided to override the Render method to build a dynamic html table. The code build successfully but then i got the MinMax problem again. At closer inspection i realized that i made a typo which the compiler did not complain about but rather threw and MinMax persistance error. Please look at the code and you will see that if (info.ViewOrder =0) my was suppose to be  if (info.ViewOrder == 0) .

Why the MinMax persistance error? Am i missing something???

protected override void Render(HtmlTextWriter writer)

{

      ImageLinkBannersController objImageLinkBannerss = new ImageLinkBannersController();

      ArrayList colImageLinkBannerss;

      colImageLinkBannerss = objImageLinkBannerss.GetImageLinkBannersByModules(this.ModuleId);

      //create the table

      writer.AddAttribute(HtmlTextWriterAttribute.Width, "100%");

      writer.RenderBeginTag(HtmlTextWriterTag.Table);

      writer.RenderBeginTag(HtmlTextWriterTag.Tr);

      for (int i = 0; i <= colImageLinkBannerss.Count ; i++)

      {

            writer.RenderBeginTag(HtmlTextWriterTag.Tr);

            foreach( ImageLinkBannersInfo info in colImageLinkBannerss)

            {

                  if (info.ViewOrder == 0)

                  {

                        writer.AddAttribute(HtmlTextWriterAttribute.Rowspan, colImageLinkBannerss.Count.ToString());

                        writer.RenderBeginTag(HtmlTextWriterTag.Td);

                        writer.RenderEndTag();

                  }

                  for (int col = 0; col <= 2; col++)

                  {

                        writer.RenderBeginTag(HtmlTextWriterTag.Td);

                        writer.RenderEndTag();

                  }

         }

      writer.RenderEndTag();

}

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0MinMax Persistance error on my new C# module suddenly appearedMinMax Persistance error on my new C# module suddenly appeared


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