You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
where do i set the ModelMetadataProviders.Current = new CustomModelMetadataProvider();
I cannot do this "locator.Register<ModelMetadataProvider, CustomModelMetadataProvider>();" as it gives me this execption "An instance of ModelMetadataProvider was found in the resolver as well as a custom registered provider in ModelMetadataProviders.Current. Please set only one or the other.". I try overrieding the StartUp() method but nothing happen also.
The text was updated successfully, but these errors were encountered:
I try registering it in ServiceRegistration but locator.Register<- IMovieService, MovieService-> (); but this exception is thrown "An instance of ModelMetadataProvider was found in the resolver as well as a custom registered provider in ModelMetadataProviders.Current. Please set only one or the other." But i have not set the ModelMetadataProviders.Current anywhere in my project.
where do i set the ModelMetadataProviders.Current = new CustomModelMetadataProvider();
I cannot do this "locator.Register<ModelMetadataProvider, CustomModelMetadataProvider>();" as it gives me this execption "An instance of ModelMetadataProvider was found in the resolver as well as a custom registered provider in ModelMetadataProviders.Current. Please set only one or the other.". I try overrieding the StartUp() method but nothing happen also.
The text was updated successfully, but these errors were encountered: