MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Portal Localization Problem  (Mono Support )

Viewed 37299 time(s), 4 post(s) 9/16/2011 8:41:45 AMby Maxim

Related topics

Maxim

Maxim

9/16/2011 8:41:45 AM
After I changed the settings in web.config(article), I got the following error:

Object reference not set to an instance of an object.

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.NullReferenceException: Object reference not set to an instance of an object.

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
System.Object.GetType() +0
MonoSoftware.Core.ActivatorExtension.CreateInstance(Type type, Object[] args) +106
MonoSoftware.Web.ResourceProviderModel.ResourceManagerProvider.CreateResourceManager(Type type, Object[] ctorParams) +267
MonoSoftware.MonoX.Admin.PortalLocalization.#jn() +129
MonoSoftware.MonoX.Admin.PortalLocalization.ddlReourceSet_SelectedIndexChanged(Object sender, EventArgs e) +9
MonoSoftware.MonoX.Admin.PortalLocalization.Page_Load(Object sender, EventArgs e) +172
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
System.Web.UI.Control.LoadRecursive() +95
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2760

Please help!
This content has not been rated yet. 
319 Reputation 30 Total posts
khorvat

khorvat

9/16/2011 10:30:56 AM
Hi,

sorry for the confusion and thanks for pointing out the obsolete article (we have marked the article as obsolete). The right article to read on that subject is ASP.NET localization settings in MonoX.

I hope this will fix the issue you have, let us know if you need anything else.

Regards
This content has not been rated yet. 
15993 Reputation 2214 Total posts
Maxim

Maxim

9/16/2011 11:58:49 AM
Sorry, I haven't found how to resolve this problem in your article.
It's not only one problem. For example, when I set on DBResourceManager and try to open Portal Language, I've an error(see screenshot). When i try to switch to some languages(like russian or from italian back to english!!!!) I got error:

Line 210: <asp:Panel runat="server" ID="pnlGroups" CssClass="box_groups">
Line 211: <h1>
Line 212: <asp:HyperLink ID="lnkGroups" runat="server" NavigateUrl='<%# MonoSoftware.MonoX.Utilities.LocalizationUtility.RewriteLink("/MonoX/Admin/SnGroupManager.aspx") %>' ><%= AdminResources.AdminHeader_lnkGroups.ToUpper() %></asp:HyperLink>
Line 213: </h1>
Line 214: <p>

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
ASP.monox_admin_default_aspx.__RenderlnkGroups(HtmlTextWriter __w, Control parameterContainer) in c:\inetpub\wwwroot\MonoX\MonoX\Admin\Default.aspx:212
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +130
System.Web.UI.WebControls.HyperLink.RenderContents(HtmlTextWriter writer) +390
System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +51
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +50
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +268
System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) +14
System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +51
ASP.monox_admin_default_aspx.__Renderform1(HtmlTextWriter __w, Control parameterContainer) in c:\inetpub\wwwroot\MonoX\MonoX\Admin\Default.aspx:78
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +130
System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +466
System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +47
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +50
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +268
MonoSoftware.MonoX.BasePage.#Ib() +142
MonoSoftware.MonoX.BasePage.Render(HtmlTextWriter writer) +81
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4959
This content has not been rated yet. 
319 Reputation 30 Total posts
khorvat

khorvat

9/16/2011 12:32:24 PM
Hi,

can you please check the following

1. Did you change the ResourceProviderModel DefaultProvider ?

From:
<ResourceProviderModel defaultProvider="ResourceManager">
    <providers>
        <clear/>
        <add name="ResourceManager" type="System.Resources.ResourceManager, Mscorlib" customProperties=""/>
        <add name="DBResourceManager" type="MonoSoftware.Web.ResourceProviderModel.Providers.DBResourceManager, MonoSoftware.Web.ResourceProviderModel" customProperties=""/>
    </providers>
</ResourceProviderModel>
To:
<ResourceProviderModel defaultProvider="DBResourceManager">
    <providers>
        <clear/>
        <add name="ResourceManager" type="System.Resources.ResourceManager, Mscorlib" customProperties=""/>
        <add name="DBResourceManager" type="MonoSoftware.Web.ResourceProviderModel.Providers.DBResourceManager, MonoSoftware.Web.ResourceProviderModel" customProperties=""/>
    </providers>
</ResourceProviderModel>

2. Do you have the following database tables filled with appropriate data: LocalizationSource and LocalizationString ?
If you do have a data can you please check if there are data for selected language ?

In a meanwhile I'll try to get someone from the QA team to reproduce this issue on our side.

Regards
This content has not been rated yet. 
15993 Reputation 2214 Total posts