Mono Support DBResourceManager not working on  

Viewed 45704 time(s), 6 post(s), 2/10/2016 8:04:07 AM - by bord1986
2/10/2016 8:04:07 AM
30 Reputation 4 Total posts

Hello, I switched the default resource provider to DBResourceManager MonoX_5_1_40_5152

Here the web.config:
 <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>

Here the error log:
The prefetch path element at index 0 in the passed in prefetch path for root entity type 36 is meant for root entity type 39 which isn't a subtype of 36. This means that you've added a prefetch path node to a Path of an unrelated entity, for example adding OrderDetailsEntity.PrefetchPathProduct to a prefetch path for CustomerEntity.

Steps to reproduce:
Download & install MonoX 5.1, launch to check it works, switch the default ResourceProvider, get the error

1
2/11/2016 1:23:54 PM
30 Reputation 4 Total posts

Any news? I'm considering to use MonoX (probably I'll buy the source code too) but this problem, that seems easy to reproduce, is blocking my evaluation

2
2/11/2016 2:14:22 PM
15993 Reputation 2214 Total posts

Hi,

we are investigating the issue related to DBResourceProvider, in the meanwhile we just want to point out that this provider is best suitable for non-so-technical users as they can change resources using the UI. If you are building a commercial Web application then we would suggest you use open sourced Localization project from the GitHub.

Please let us know if we may be of further assistance.

Regards

3
2/11/2016 2:19:15 PM
30 Reputation 4 Total posts

Thanks for your suggestion, much appreciated.
Anyway I do want to give my admin users to edit the localization messages by their own.

I'll wait for your feedback about the issue on DBResourceProvider.

Regards.

4
2/22/2016 6:38:08 PM
30 Reputation 4 Total posts

Hello khorvat, do you have any news about this issue?

5
2/23/2016 2:29:38 PM
15993 Reputation 2214 Total posts

Hi,

we have upgraded DB resource manager library so please try and use the following assemblies. Just copy those to bin folder.

Regards

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