The problem was that the assembly name of my assembly didn't match the name of the namespace for my views, which caused the URL that was generated by UriFor<>() to be wrong. This seems like a bug, unfortunately not one that I know how to fix. The solution for me was to rename my assembly and now everything works fine.
↧