System.Resources.MissingManifestResourceException exception updating settings for custom module

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
12/20/2011 6:07:32 PM
Gravatar
Total Posts 2

System.Resources.MissingManifestResourceException exception updating settings for custom module

I'm working on a very simple custom module for MojoPortal for a website I'm working on.  I've installed the module in MojoPortal, and configured it's custom settings.  However, anytime I try and update the settings for an instance of this module on a page, I get the following exception:

-----------------------

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.oxrbydn7" at compile time, or that all the satellite assemblies required are loadable and fully signed.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: 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.oxrbydn7" at compile time, or that all the satellite assemblies required are loadable and fully signed.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[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.oxrbydn7" at compile time, or that all the satellite assemblies required are loadable and fully signed.] System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents) +1698 System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents) +1731 System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents) +1731 System.Resources.ResourceManager.GetObject(String name, CultureInfo culture, Boolean wrapUnmanagedMemStream) +64 System.Web.Compilation.BaseResXResourceProvider.GetObject(String resourceKey, CultureInfo culture) +95 System.Web.Compilation.ResourceExpressionBuilder.GetResourceObject(IResourceProvider resourceProvider, String resourceKey, CultureInfo culture, Type objType, String propName) +32 System.Web.UI.TemplateControl.GetGlobalResourceObject(String className, String resourceKey) +42 mojoPortal.Web.AdminUI.ModuleSettingsPage.btnSave_Click(Object sender, EventArgs e) +2751 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +115 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +140 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +29 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981

Version Information: Microsoft .NET Framework Version:2.0.50727.5448; ASP.NET Version:2.0.50727.5420

 

Does anyone have any idea what resources MojoPortal is looking for?

Ben

12/21/2011 2:06:33 PM
Gravatar
Total Posts 18439

Re: System.Resources.MissingManifestResourceException exception updating settings for custom module

Are you using Visual Studio 2010 Pro or Express? There are some issues like this when trying to build custom features with Express. If that is the case you can probably qualify to get VS 2010 Pro free via the Website Spark program.

Other than that, are you using a custom resource file for your setting labels? Are you copying the .resx file to Web/App_GlobalResources using a post build event? Are you using a FeatureDefinition file or just manually creating settings from the UI?

I recommend use a FeatureDefinition.config file and use a custom resource file copied by a post build event and let the setup page create your settings based on the feature definition file. The Guestbook tutorial videos cover how to do this.

Hope that helps,

Joe

12/22/2011 5:03:24 PM
Gravatar
Total Posts 2

Re: System.Resources.MissingManifestResourceException exception updating settings for custom module

Thanks Joe.  I am using Visual Studio 2008 Professional for this project (with the .net Framework 3.5 version of Mojoportal) as the client's server does not have .NET framework 4 installed, and it would involve taking the system offline and retesting the system if we installed .NET 4.

I don't have any resource file created for this user control, since I didn't know that a resource file had to be created.  I was working off of the information on this page at http://www.mojoportal.com/modulesettings-adeveloperconvenience.aspx.  I do have a featuredefinition file created, and this is working.

The custom module is simply being used to add a stylesheet to the page header, as I need to add a custom stylesheet to several pages in the website to override specific styles on that page.

Do you have any information on what should be in the resource file?

Thanks,
Ben

12/24/2011 12:29:58 PM
Gravatar
Total Posts 18439

Re: System.Resources.MissingManifestResourceException exception updating settings for custom module

Hi Ben,

We have not supported VS 2008 in a long time with the mojoPortal source code. You "might" be able to open the pre-compiled 3.5 package as a Web Site in VS 2008 but I don't offer any support for that. The actual source code and solution requires VS 2010.

For new sites and projects I highly recommend going with .NET 4 it has a lot of advantages vs .NET 3.5. We won't be supporting .NET 3.5 forever so its much better for new sites to go with .NET 4.

VS 11 and .NET 4.5 will ship soon and once there is pressure to support that it will add pressure to drop support for 3.5.

Best,

Joe

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