Daniel15/RouteJs — pull request #22 by jni- (2013-08-28 16:53:59+00:00)
Title: Error handling while loading types from assembly

Some assemblies on our project gives us a headache while it comes to loading types from assemblies in the appdomain. Actually only one does, PdfSharp. You may list PdfSharp's assembly from the appdomain, but once you call assembly.GetTypes() on it, it throws a `ReflectionTypeLoadException`. We're trying to see why it is like that, but in the mean time I think it simply makes RouteJs a tiny bit more robust anyways, so I'm submitting this fix.

I am not including a test for this fix, since I have no idea how to reproduce it without adding a dependency to a faulty assembly (and I'm not sure how to reproduce that).

Here is the complete error we had, I tried to translate the relevant parts :

```
RouteJs.TinyIoc.TinyIoCResolutionException: Unable to resolve type: RouteJs.Mvc.MvcRouteFilter ---> System.Reflection.TargetInvocationException: An exception was throw by the target. ---> System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the required types. See the LoaderExceptions property for more information.
à System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
à System.Reflection.RuntimeModule.GetTypes()
à System.Reflection.Assembly.GetTypes()
à RouteJs.Mvc.MvcRouteFilter.b__0(Assembly assembly)
à System.Linq.Enumerable.d__14`2.MoveNext()
à System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
à System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
à System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
à RouteJs.Mvc.MvcRouteFilter.BuildLists()
```