Mono Support Localization problem. Error when try to save localization. (Closed)

Viewed 22233 time(s), 9 post(s), 12/12/2011 6:03:59 PM - by Maxim
12/12/2011 6:03:59 PM
319 Reputation 30 Total posts

Hi!

After enabling DBResource manager, when I try to change some text from translation at page "Administration/Portal Localization". After clicking "(S)ave" button I've got error:

2011-12-12 19:53:58,445 [7] ERROR MonoX [BaseHttpApplication] - Application Error
System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at System.Resources.ResourceManager.ReleaseAllResources()
at MonoSoftware.Web.ResourceProviderModel.Providers.DBResourceManager.ReleaseAllResources()
at MonoSoftware.Web.ResourceProviderModel.BaseResourceManager.ClearLocalizationCache()
at MonoSoftware.Web.ResourceProviderModel.ResourceManagerProvider.ClearResourceCache()
at MonoSoftware.Web.ResourceProviderModel.Providers.ResourceDAL.SetResourceByCultureAndResourceKey(CultureInfo culture, String resourceKey, Object resourceValue)
at MonoSoftware.Web.ResourceProviderModel.Providers.DBResourceManager.Save(String source, CultureInfo culture, String resourceKey, Object resourceValue)
at MonoSoftware.MonoX.Admin.PortalLocalization.btnSave_Click(Object sender, EventArgs e)
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.monox_admin_portallocalization_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\d0c5615c\57f04171\App_Web_gvrpe1lt.6.cs:line 0
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Can you help me with this problem?

1
12/13/2011 1:35:58 PM
15993 Reputation 2214 Total posts

Hi,

this is known issue with DBResourceProvider and .NET 4.0 and it will be fixed in next MonoX version. In a mean while you can try changing the following in the web.config and try if that works for you:

from:
<compilation ....... targetFramework="4.0">
to
<compilation ....... >

Regards

2
12/13/2011 3:06:20 PM
319 Reputation 30 Total posts

Unfortunately that's not helped me. :(

3
12/14/2011 6:26:20 PM
7207 Reputation 956 Total posts

We will try to publish the new version with the fix for the DB resource provider ASAP (the standard resource infrastructure works without problems).

4
4/7/2012 4:23:35 AM
130 Reputation 16 Total posts

This error seems to still be a problem with the latest release. Any progress on a fix for this?

5
4/7/2012 4:16:41 PM
15993 Reputation 2214 Total posts

Hi,

this is fixed but MonoX version that includes that fix isn't published yet. We can provide you with unofficial version around the Wednesday. Let me know if that suites you ?

Regards

6
4/13/2012 3:35:03 PM
15993 Reputation 2214 Total posts

Hi,

sorry for a delay, please find the URL to a new unofficial MonoX version in your InMail.

Regards

7
2/28/2014 10:28:35 AM
390 Reputation 35 Total posts

Hello,

when changing the web.config from ResourceManager tyo DBResourceManager then the site crashes:

This event has been logged and will be addressed by the maintenance department. We appreciate your patience.
 
Object reference not set to an instance of an object.
at ASP.default_aspx.__BuildControlctlSlideShow() at ASP.default_aspx.__BuildControl__control6(Control __ctrl) at System.Web.UI.CompiledTemplateBuilder.InstantiateIn(Control container) at System.Web.UI.WebControls.WebParts.WebPartZone.GetInitialWebParts() at System.Web.UI.WebControls.WebParts.WebPartManager.RegisterZone(WebZone zone) at System.Web.UI.WebControls.WebParts.WebZone.OnInit(EventArgs e) at MonoSoftware.MonoX.TemplatedWebPartZone.OnInit(EventArgs e) at MonoSoftware.MonoX.PortalWebPartZone.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
we are using MonoX v4.9.40.4845 [12/25/2013], DB v4.7.3842

8
2/28/2014 1:14:27 PM
15993 Reputation 2214 Total posts

Please open a new thread so we can help you.

9
This is a demo site for MonoX. Please visit Mono Software for more info.