NancyFx/Nancy — Issue #504: If using embeded view and some other assembly has resource with 1 symbol name - exception OutOfRange is raised
Author: ioleksiy
Created: 2012-02-09 17:30:24+00:00
State: open

Related to #379 and #375, NancyFX is scanning all loaded assemblies for embedded views, and there is a logic at Nancy.ViewEngines.DefaultResourceReader.GetResourceStreamMatches where check is looking for extension, starting with symbol 1. With one-symbol resources, there is an exception.

Also, maybe will be better not to scan all resources, and read all streams, but only those, which are indicated inside some separate list of ResourceViewLocationProvider.RootNamespaces.