I would like to use two browsing mechanisms in my asp.net mvc web application. The first is the Brail viewer from the MVCContrib project, and the other is my custom viewer for generating JavaScript code. However, I cannot configure the application to use both engines. I would like to use the view file extension to determine which engine should handle the -.brail request for the Brail engine -.json - for my custom engine
When I add two engines to the ViewEngines collection in the global.asax.cs file, the system always searches for * .brail views and throws an exception if it does not find it. He never looks for my * .json views ... Is this a problem with the ASP.Net mvc infrastructure, with the Brail view engine, or with my code? How should this be handled?
source
share