Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected override void ConfigureApplicationContainer(TinyIoCContainer container)
- {
- base.ConfigureApplicationContainer(container);
- ResourceViewLocationProvider.RootNamespaces.Add(GetType().Assembly, "ConsoleApplication1.Views"); // (1)
- ResourceViewLocationProvider.RootNamespaces.Add(typeof(Class1).Assembly, "ClassLibrary1.Views");
- }
- protected override NancyInternalConfiguration InternalConfiguration
- {
- get { return NancyInternalConfiguration.WithOverrides(OnConfigurationBuilder); }
- }
- private void OnConfigurationBuilder(NancyInternalConfiguration x)
- {
- x.ViewLocationProvider = typeof(ResourceViewLocationProvider);
- }
- Unable to resolve type: Nancy.ViewEngines.ViewEngineApplicationStartup
- Only one view was found in assembly ConsoleApplication1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null, but no rootnamespace had been registered.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement