lozanotek/mvcturbine — Issue #18: where to set the ModelMetadataProviders?
Author: maranganator
Created: 2012-02-09 19:34:45+00:00
State: open

where do i set the ModelMetadataProviders.Current = new CustomModelMetadataProvider();
I cannot do this "locator.Register();" 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.