Custom module error after upgrade

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
4/19/2011 3:20:53 PM
Gravatar
Total Posts 221

Custom module error after upgrade

After upgrading to the latest (2.3.6.5 and 2.3.6.4) version of MojoPortal all of my custom modules stopped working to some extent. My modules are very simple and don't have any resource files, they all exist of only a .ascx page and then the module installation done from the admin>tools>features>install area.

From there I added the path to the .ascx, custom GUID and resource name. Then I went into the settings and added some items like color, width, height, etc. I gave each a setting key and nothing more.

After that's done I could drop the modules on a page and go into the module settings and filling in the settings on a per module basis (like add the color, height, width, etc).

This had been working great up until the last couple Mojo upgrade. Now when I click on a module settings I see the admin screen as normal where I can input the values, but when I press save I get an error screen. Nothing else changed except the upgrade of Mojo. Any ideas? The error message is posted below:

 

2011-04-19 15:19:11,710 ERROR mojoPortal.Web.AdminUI.ModuleSettingsPage - ModuleSettings.aspx.cs error getting resource for s.SettingName Height
System.NullReferenceException: Object reference not set to an instance of an object.
   at mojoPortal.Web.AdminUI.ModuleSettingsPage.AddSettingControl(CustomModuleSetting s, Panel groupPanel)
2011-04-19 15:19:11,710 ERROR mojoPortal.Web.AdminUI.ModuleSettingsPage - ModuleSettings.aspx.cs error getting resource for s.SettingName Width
System.NullReferenceException: Object reference not set to an instance of an object.
   at mojoPortal.Web.AdminUI.ModuleSettingsPage.AddSettingControl(CustomModuleSetting s, Panel groupPanel)
2011-04-19 15:19:11,710 ERROR mojoPortal.Web.AdminUI.ModuleSettingsPage - ModuleSettings.aspx.cs error getting resource for s.SettingName BackgroundColor
System.NullReferenceException: Object reference not set to an instance of an object.
   at mojoPortal.Web.AdminUI.ModuleSettingsPage.AddSettingControl(CustomModuleSetting s, Panel groupPanel)
2011-04-19 15:19:11,710 ERROR mojoPortal.Web.AdminUI.ModuleSettingsPage - ModuleSettings.aspx.cs error getting resource for s.SettingName ImagePath
System.NullReferenceException: Object reference not set to an instance of an object.
   at mojoPortal.Web.AdminUI.ModuleSettingsPage.AddSettingControl(CustomModuleSetting s, Panel groupPanel)
2011-04-19 15:19:11,725 ERROR mojoPortal.Web.mojoBasePage - 24.209.184.31-en-US - /Admin/ModuleSettings.aspx?mid=44&pageid=0
System.Resources.MissingManifestResourceException: Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure "Resources..resources" was correctly embedded or linked into assembly "App_GlobalResources.c_8gkf6v" at compile time, or that all the satellite assemblies required are loadable and fully signed.
   at System.Resources.ManifestBasedResourceGroveler.HandleResourceStreamMissing(String fileName)
   at System.Resources.ManifestBasedResourceGroveler.GrovelForResourceSet(CultureInfo culture, Dictionary`2 localResourceSets, Boolean tryParents, Boolean createIfNotExists, StackCrawlMark& stackMark)
   at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo requestedCulture, Boolean createIfNotExists, Boolean tryParents, StackCrawlMark& stackMark)
   at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents)
   at System.Resources.ResourceManager.GetObject(String name, CultureInfo culture, Boolean wrapUnmanagedMemStream)
   at System.Web.Compilation.ResourceExpressionBuilder.GetResourceObject(IResourceProvider resourceProvider, String resourceKey, CultureInfo culture, Type objType, String propName)
   at System.Web.UI.TemplateControl.GetGlobalResourceObject(String className, String resourceKey)
   at mojoPortal.Web.AdminUI.ModuleSettingsPage.btnSave_Click(Object sender, EventArgs e)
   at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
2011-04-19 15:19:11,741 ERROR mojoPortal.Web.Global - 24.209.184.31-en-US - /Admin/ModuleSettings.aspx?mid=44&pageid=0
System.Resources.MissingManifestResourceException: Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure "Resources..resources" was correctly embedded or linked into assembly "App_GlobalResources.c_8gkf6v" at compile time, or that all the satellite assemblies required are loadable and fully signed.
   at System.Resources.ManifestBasedResourceGroveler.HandleResourceStreamMissing(String fileName)
   at System.Resources.ManifestBasedResourceGroveler.GrovelForResourceSet(CultureInfo culture, Dictionary`2 localResourceSets, Boolean tryParents, Boolean createIfNotExists, StackCrawlMark& stackMark)
   at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo requestedCulture, Boolean createIfNotExists, Boolean tryParents, StackCrawlMark& stackMark)
   at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents)
   at System.Resources.ResourceManager.GetObject(String name, CultureInfo culture, Boolean wrapUnmanagedMemStream)
   at System.Web.Compilation.ResourceExpressionBuilder.GetResourceObject(IResourceProvider resourceProvider, String resourceKey, CultureInfo culture, Type objType, String propName)
   at System.Web.UI.TemplateControl.GetGlobalResourceObject(String className, String resourceKey)
   at mojoPortal.Web.AdminUI.ModuleSettingsPage.btnSave_Click(Object sender, EventArgs e)
   at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
 

4/19/2011 3:29:51 PM
Gravatar
Total Posts 18439

Re: Custom module error after upgrade

Hi Eric,

Sorry about that, this came up recently on another thread. There is an easy workaround fix with no side effects. Just add this on any <featureDefinition or <featureSetting entries in your config file(s) that do not already have this attribute:

resourceFile="Resource"

This will get rid of the error.

Best,

Joe

4/19/2011 4:14:51 PM
Gravatar
Total Posts 221

Re: Custom module error after upgrade

Ah, perfect that did the trick. A couple beers coming your way for your prompt support! Sorry I didn't see the other post, I searched around for a while but didn't find anything.

 

I know this is easier said than done, but what we need is some kind of a detailed upgrade changes/release notes/skins type of tool on mojoportal.com that has a common layout (maybe a tree breakdown) that shows each version of mojoportal and then what changed from one version to the next. There could be categories of changes (maybe tabs) such as skins, css, components (brettle, tinymce, fck, etc), functionality, bug fixes, new features, programming logic, etc.

If there was some way to drill down and list what was all changed from one version to the next that would be so helpful and probably eliminate a lot of questions on the forums. There could be a place to list notes and workarounds, even user comments, etc.

Another related idea would be a detailed overview of the web.config/user.config that lists all the possible feature keys you have made available along with a short description of each. I'm constantly finding amazing little features and functions buried in the forums that had I not stumbled upon the random post I never would have known about.

I know these are blue sky ideas, but worth sharing I think. You have the blog area and of course the best help/documentation I have ever seen for an open source product (or any product), but there still seems to be an issue with upgrades (all the changes and little gotchas) and then also with the sheer amount of features. It's hard to find out what is all available unless you scour through the forums.

 

I have dozens of web sites running Mojo and if there's anything I could do to help with something like this please let me know. I'm sure with the ideas above would come countless hours of busywork loading data into a system or layout, even just designing a structure like I mention about would be a UI undertaking to make it really user friendly. Always glad to help, just put the word out if you are looking for volunteers for tasks.

Thanks Joe,

4/20/2011 7:50:21 AM
Gravatar
Total Posts 18439

Re: Custom module error after upgrade

Hi Eric,

Thanks for the beers as always!

Actually this error was reported on April 5 and mojoPortal 2.3.6.5 was released on April 15 so this should be fixed already in 2.3.6.5

Are you sure this error happened for you using 2.3.6.5?

Regarding information about changes, I do my best to share as much information about changes as possible in release notes, one can also subscribe to email notification for the forums on this site and one can subscribe to the RSS feed for code changes and comments associated with them in the repository. So there is a lot of information available but even having all of that information is not going to prevent there from ever being little problems.

I'm not perfect and I'm not going to become perfect (I strive only for excellence) but I don't think our releases often have un-announced gotchas. Fast response when problems do occur is going to have to be good enough. It isn't like you would never have any problems using some other software or software you wrote yourself, nobody else is perfect either. You could always setup a staging site to test upgrades before you apply them to production sites.

If you really want to help, subscribing to the forums and answering questions to help others would be very helpful, and/or if there is anything you think is not documented well enough and you would be willing to write documentation for it, that would also be welcome help.

Best,

Joe

4/20/2011 11:54:35 AM
Gravatar
Total Posts 221

Re: Custom module error after upgrade

Hi Joe, I think it occurred on the version right before 2.3.6.5 because I did an upgrade yesterday just to make sure the problem wasn't already fixed in the latest version. But maybe I'm mistaken, I can't be 100% sure on this.

And sorry, I didn't mean to sound like you were not doing a good job or anything (I feel VERY much the opposite, I love Mojo and all that you do). I was just thinking of a pie-in-the-sky change/release management type of feature of some sort. It's not a biggie at all, I was probably drinking heavily and thought we could have elves do the work.

4/20/2011 1:06:20 PM
Gravatar
Total Posts 18439

Re: Custom module error after upgrade

I could use some elves!

I'm pretty sure this particular bug was introduced in version 2.3.6.4 and is fixed in version 2.3.6.5.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.