Advertisement
Guest User

Untitled

a guest
Apr 18th, 2014
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. protected override void ConfigureApplicationContainer(TinyIoCContainer container)
  2. {
  3. base.ConfigureApplicationContainer(container);
  4. ResourceViewLocationProvider.RootNamespaces.Add(GetType().Assembly, "ConsoleApplication1.Views"); // (1)
  5. ResourceViewLocationProvider.RootNamespaces.Add(typeof(Class1).Assembly, "ClassLibrary1.Views");
  6. }
  7.  
  8. protected override NancyInternalConfiguration InternalConfiguration
  9. {
  10. get { return NancyInternalConfiguration.WithOverrides(OnConfigurationBuilder); }
  11. }
  12.  
  13. private void OnConfigurationBuilder(NancyInternalConfiguration x)
  14. {
  15. x.ViewLocationProvider = typeof(ResourceViewLocationProvider);
  16. }
  17.  
  18. Unable to resolve type: Nancy.ViewEngines.ViewEngineApplicationStartup
  19. 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