1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Compiled and artificial at the same time

Compiled and artificial at the same time

8 posts, 0 answered
  1. Carl Anderson
    Carl Anderson avatar
    27 posts
    Registered:
    26 Jun 2012
    28 Jan 2011
    Link to this post
    Help!

    I'm running Sitefinity 4.0, created several pages and all, and then I decided to try out the multi-language feature.
    I went to Administration > Settings, and added an extra language and saved.
    I clicked on Pages and then got the following exception:
    Telerik.OpenAccess.Exceptions.MetadataException: Field 'UrlName_' of class 'Telerik.Sitefinity.GenericContent.Model.Content' is described as compiled and artificial at the same time. --> Telerik.Sitefinity.Model, Version=4.0.1098.0, Culture=neutral, PublicKeyToken=b28c218413bdf563/namespace[Telerik.Sitefinity.GenericContent.Model]/class[Telerik.Sitefinity.GenericContent.Model.Content]/field[UrlName_]

    Since then I can't log back in the administration site (You were automatically navigated form "/Sitefinity/" because you are not authorized to access that page!), nor view the front-end.

    In the ResourcesConfig.config file, I removed the extra-language I added through the UI, and no changes.
    Sitefinity probably stored a setting somewhere in the DB as well but I don't know where to look at.

    Any ideas?

    Thanks,
    Carl
  2. Carl Anderson
    Carl Anderson avatar
    27 posts
    Registered:
    26 Jun 2012
    28 Jan 2011
    Link to this post
    By the way, here's the complete stack trace:
    [MetadataException: Field 'UrlName_' of class 'Telerik.Sitefinity.GenericContent.Model.Content' is described as compiled and artificial at the same time. --> Telerik.Sitefinity.Model, Version=4.0.1098.0, Culture=neutral, PublicKeyToken=b28c218413bdf563/namespace[Telerik.Sitefinity.GenericContent.Model]/class[Telerik.Sitefinity.GenericContent.Model.Content]/field[UrlName_]]
       DynamicModule.ns.Wrapped_OpenAccessMembershipProvider_064d100aae80487ba77f9219533b5925.Initialize(String providerName, NameValueCollection config, Type managerType) +405
       Telerik.Sitefinity.Data.ManagerBase`1.InstantiateProvider(IDataProviderSettings providerSettings, Type providerType, ExceptionPolicyName policy, ManagerBase`1 manager) +2216
       Telerik.Sitefinity.Data.ManagerBase`1.InstantiateProvider(IDataProviderSettings providerSettings, ExceptionPolicyName policy, ManagerBase`1 manager) +74
       Telerik.Sitefinity.Data.ManagerBase`1.SetProvider(String providerName, String transactionName) +214
       BuildUp_Telerik.Sitefinity.Security.UserManager(IBuilderContext ) +306
       Telerik.Microsoft.Practices.ObjectBuilder2.BuildPlanStrategy.PreBuildUp(IBuilderContext context) +304
       Telerik.Microsoft.Practices.ObjectBuilder2.StrategyChain.ExecuteBuildUp(IBuilderContext context) +434
       Telerik.Microsoft.Practices.Unity.UnityContainer.DoBuildUp(Type t, Object existing, String name, IEnumerable`1 resolverOverrides) +440
     
    [ResolutionFailedException: Resolution of the dependency failed, type = "Telerik.Sitefinity.Security.UserManager", name = "Default".
    Exception occurred while: Calling constructor Telerik.Sitefinity.Security.UserManager(System.String providerName).
    Exception is: MetadataException - Field 'UrlName_' of class 'Telerik.Sitefinity.GenericContent.Model.Content' is described as compiled and artificial at the same time. --> Telerik.Sitefinity.Model, Version=4.0.1098.0, Culture=neutral, PublicKeyToken=b28c218413bdf563/namespace[Telerik.Sitefinity.GenericContent.Model]/class[Telerik.Sitefinity.GenericContent.Model.Content]/field[UrlName_]

    It fails in the OpenAccessMembershipProvider.
    I actually have a specefic configuration on that part since I've got two sites (SiteA and SiteB), SiteB using SiteA's users and roles.
    To set this up I followed the steps described in this post and it worked great.
    I'm not sure it's linked but if ever this helps...
  3. Ivan
    Ivan avatar
    478 posts
    Registered:
    16 Jun 2015
    31 Jan 2011
    Link to this post
    Hi Carl Anderson,

    can you confirm that the account of your application pool (generally NETWORK SERVICE) has the permissions to modify the database? The implementation of multilingual support in Sitefinity requires the running account to have such permissions (since it is adding additional columns for the new languages).

    Kind regards,
    Ivan Osmak
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  4. Carl Anderson
    Carl Anderson avatar
    27 posts
    Registered:
    26 Jun 2012
    01 Feb 2011
    Link to this post

    can you confirm that the account of your application pool (generally NETWORK SERVICE) has the permissions to modify the database?

    Yes, the Network Service account is db_owner of the site's database, and in fact, if I take a look at the tables, I do see extra-columns such as url_name_[culture] and so on.

    So it looks like the modification succeeded, well partially at least.

    If you need to, I can provide you with a backup of my database as well as the ASP.NET sources so you can easily reproduce my issue.

    Regards,

    Carl

  5. Carl Anderson
    Carl Anderson avatar
    27 posts
    Registered:
    26 Jun 2012
    02 Feb 2011
    Link to this post
    Hi,

    I haven't found and couldn't fix what happened last Friday, so I started over; but this time I added localization since the very beginning (before any data is added to the database) and it seems to be going just fine.

    Cheers,
    Carl
  6. Ivan
    Ivan avatar
    478 posts
    Registered:
    16 Jun 2015
    03 Feb 2011
    Link to this post
    Hi Carl Anderson,

    glad to hear that you've managed to get the issue resolved. We'll try to reproduce the issue you were having before and fix it if we manage to reproduce it.

    Kind regards,
    Ivan
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  7. Felipe
    Felipe avatar
    1 posts
    Registered:
    28 Jul 2010
    07 Feb 2011
    Link to this post
    Hi,

    I'm having a similar problem after installing version 4.0.1141.0 this happening the following error:

    Field 'UrlName_' of class 'Telerik.Sitefinity.GenericContent.Model.Content' is described as compiled and artificial at the same time. --> Telerik.Sitefinity.Model, Version=4.0.1141.0, Culture=neutral, PublicKeyToken=b28c218413bdf563/namespace[Telerik.Sitefinity.GenericContent.Model]/class[Telerik.Sitefinity.GenericContent.Model.Content]/field[UrlName_] 

    I can not put the same user pool to the database for security issues, how to proceed in this scenario?

    Thks.
  8. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    08 Feb 2011
    Link to this post
    Hello Felipe,

    Please try creating an SQL user for your database which has permissions to read, write data, as well as create and alter tables.

    All the best,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
8 posts, 0 answered