NancyFx/Nancy — Issue #520: Upgraded to 0.10.0 - failed unit tests, applicaction does not start
Author: alexanderbeletsky
Created: 2012-02-24 07:48:16+00:00
State: open

Just upgraded to Nancy 0.10.0 for IdeaStrike on @Code_52 project.

The port were smooth, just 2 corrections:

1. RequestStartup now taking 3 parameters.
2. Request.Headers.AcceptLanguage is now returning IEnumberable>, not IEnumerable

After changes applied build went fine, but 3 unit tests are failing (same exception):

System.Exception: System.Exception : ConfigurableBootstrapper Exception
---- Nancy.RequestExecutionException : Oh noes!
-------- Nancy.ViewEngines.ViewNotFoundException : Unable to locate view '404'. Currently available view engine extensions: sshtml,html,htm,cshtml,vbhtml
at Nancy.Testing.PassThroughErrorHandler.Handle(HttpStatusCode statusCode, NancyContext context)
at Nancy.NancyEngine.CheckErrorHandler(NancyContext context)
at Nancy.NancyEngine.HandleRequest(Request request)
at Nancy.Testing.Browser.HandleRequest(String method, String path, Action`1 browserContext)
at Nancy.Testing.Browser.Get(String path, Action`1 browserContext)
at IdeaStrike.Tests.IdeaStrikeSpecBase`1.Get(String path, Action`1 browserContext) in D:\Development\Projects\Ideastrike\tests\IdeaStrike.Tests\IdeaStrikeSpecBase.cs:line 85

If I try to run the application:

Error Compiling Template: (51, 18) The name 'Url' does not exist in the current context)
Error Compiling Template: (61, 33) The name 'Model' does not exist in the current context)
Error Compiling Template: (68, 26) The name 'Model' does not exist in the current context)
Error Compiling Template: (78, 7) The name 'Model' does not exist in the current context)
Error Compiling Template: (83, 31) The name 'Model' does not exist in the current context)
Error Compiling Template: (88, 14) The name 'Model' does not exist in the current context)
Error Compiling Template: (103, 14) The name 'Model' does not exist in the current context)
Error Compiling Template: (118, 14) The name 'Model' does not exist in the current context)
Error Compiling Template: (132, 25) The name 'Model' does not exist in the current context)
Error Compiling Template: (234, 19) The name 'Url' does not exist in the current context)

My fork is located here:

https://github.com/alexanderbeletsky/Ideastrike/tree/nancy010

It will be very easy to pickup and re-produce all those issues;