Compiled and artificial at the same time
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_]
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_]
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,
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
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
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,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_]
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