mojoprofile.config

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.
9/24/2009 4:12:50 AM
Gravatar
Total Posts 122

mojoprofile.config

 

Hi Joe,

Running .17 I’ve tried to custom the mojoprofile.config as you described in documentation:

“resourceFile (optional, defaults to ProfileResource) - this is not shown above, ProfileResource corresponds to App_GlobalResources/ProfileResource.resx but you can override it and get resources from a different file.”

Ok.. I want to have a new field in user register form.. called ZZMICazienda

Then I’ve Copied the file Resource.resx as ZZMicResource.resx, deleted all custom entries and, after

  </resheader>

Inserted:

  <data name="ZZMICaziendaLabel" xml:space="preserve">

    <value>Company-Firm</value>

  </data>

In mojoprofile.config I have added this:

                        <add   name="ZZMICazienda"

                                               resourceFile=" App_GlobalResources/ZZMicResource.resx"

                                               type="System.String"

                                               allowMarkup="false"

                                               labelResourceKey="ZZMICaziendaLabel"                                     

                                               lazyLoad="false"

                                               requiredForRegistration="true"

                                               allowAnonymous="true"

                                               visibleToAnonymous="false"

                                               visibleToAuthenticated="true"

                                               visibleToUser="true"

                                               editableByUser="true"

                                               regexValidationExpression=""

                                               regexValidationErrorResourceKey=""

                                               maxLength="100"

                                               columns="45"

                                               onlyAvailableForRoles=""

                                               onlyVisibleForRoles=""

                                               includeHelpLink="false"                              

                                                                       />

I’ve done refresh of web.config and ran /setup/default.aspx… no errors

I access home page.. it’s ok

When I access the register form it gives me the following error:

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

Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure "Resources.App_GlobalResources/ZZMicResource.resx.resources" was correctly embedded or linked into assembly "App_GlobalResources.uqzcelhb" 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.App_GlobalResources/ZZMicResource.resx.resources" was correctly embedded or linked into assembly "App_GlobalResources.uqzcelhb" 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.App_GlobalResources/ZZMicResource.resx.resources" was correctly embedded or linked into assembly "App_GlobalResources.uqzcelhb" 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) +7676190

   System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents) +583

   System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents) +583

   System.Resources.ResourceManager.GetObject(String name, CultureInfo culture, Boolean wrapUnmanagedMemStream) +47

   System.Resources.ResourceManager.GetObject(String name, CultureInfo culture) +11

   System.Web.Compilation.BaseResXResourceProvider.GetObject(String resourceKey, CultureInfo culture) +80

   System.Web.Compilation.ResourceExpressionBuilder.GetResourceObject(IResourceProvider resourceProvider, String resourceKey, CultureInfo culture, Type objType, String propName) +21

   System.Web.Compilation.ResourceExpressionBuilder.GetGlobalResourceObject(String classKey, String resourceKey, Type objType, String propName, CultureInfo culture) +28

   System.Web.HttpContext.GetGlobalResourceObject(String classKey, String resourceKey) +10

   mojoPortal.Web.Controls.SiteLabel.RenderLabelElement(HtmlTextWriter writer) +188

   mojoPortal.Web.Controls.SiteLabel.Render(HtmlTextWriter writer) +106

   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25

   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134

   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19

   System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) +10

   System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +32

   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25

   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134

   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19

   System.Web.UI.WebControls.TableCell.RenderContents(HtmlTextWriter writer) +57

   System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +32

   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25

   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134

   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19

   System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) +10

   System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +32

   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25

   System.Web.UI.WebControls.Table.RenderContents(HtmlTextWriter writer) +206

   System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +32

   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25

   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134

   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19

   System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) +10

   System.Web.UI.WebControls.BlockControl.Render(HtmlTextWriter writer) +10

   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25

   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134

   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19

   System.Web.UI.WebControls.WizardStepBase.RenderChildren(HtmlTextWriter writer) +42

   System.Web.UI.Control.Render(HtmlTextWriter writer) +10

   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25

   System.Web.UI.WebControls.MultiView.Render(HtmlTextWriter writer) +26

   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25

   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134

   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19

   System.Web.UI.WebControls.TableCell.RenderContents(HtmlTextWriter writer) +57

   System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +32

   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25

   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134

   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19

   System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) +10

   System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +32

   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25

   System.Web.UI.WebControls.Table.RenderContents(HtmlTextWriter writer) +206

   System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +32

   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25

   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134

   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19

   System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) +10

   System.Web.UI.WebControls.Wizard.Render(HtmlTextWriter writer) +117

   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25

   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134

   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19

   System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) +10

   System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +32

   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25

   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134

   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19

   System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) +10

   System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +32

   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25

   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134

   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19

   System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) +10

   System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +32

   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25

   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134

   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19

   System.Web.UI.Control.Render(HtmlTextWriter writer) +10

   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25

   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134

   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19

   System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) +10

   System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +32

   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25

   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134

   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19

   System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +163

   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +32

   System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +51

   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99

   System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +40

   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134

   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19

   System.Web.UI.Control.Render(HtmlTextWriter writer) +10

   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25

   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134

   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19

   System.Web.UI.Page.Render(HtmlTextWriter writer) +29

   mojoPortal.Web.mojoBasePage.Render(HtmlTextWriter writer) +36

   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25

   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1266

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

What is wrong ??

Thank you in advance

michele

 

9/24/2009 9:05:31 AM
Gravatar
Total Posts 2253

Re: mojoprofile.config

In your Resx file, do you have all of the following <resheader> tags?

<resheader name="resmimetype">
  <value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
  <value>2.0</value>
</resheader>
<resheader name="reader">
  <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
  <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> 

-Joe D.

9/24/2009 9:08:01 AM
Gravatar
Total Posts 18439

Re: mojoprofile.config

Hi,

Change this:

resourceFile=" App_GlobalResources/ZZMicResource.resx"

to this:

resourceFile="ZZMicResource"

Hope it helps,

Joe

9/25/2009 12:55:19 AM
Gravatar
Total Posts 122

Re: mojoprofile.config

Hi Joe...

now it works great !!

it was only to specify:

resourceFile="nameOfResourcefile"   without resx extension

may be the documentation topic could be updated (only to avoid that other users will annoyies you with the same question !!)

====================================================

“resourceFile (optional, defaults to ProfileResource) - this is not shown above, ProfileResource corresponds to App_GlobalResources/ProfileResource.resx but you can override it and get resources from a different file.”

===================================================

thank you very much

Michele

9/25/2009 6:46:31 AM
Gravatar
Total Posts 18439

Re: mojoprofile.config

Ok, I added a little more note to specify the file without the extension.

Best,

Joe

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