We need to map the ActionResult to string to add pages to our internal search engine index. We settled on this solution to display the string .
I am having a problem with an ExecuteResult call used to process a view.
Code snippet:
var oldController = controllerContext.RouteData.Values["controller"]; controllerContext.RouteData.Values["controller"] = typeof(TController).Name.Replace("Controller", ""); viewResult.ExecuteResult(controllerContext);
I get the following error:
"Object reference not set to instance of object" error.
I have confirmed that viewResult not null, so an exception must be ExecuteResult inside ExecuteResult .
What can we lose?
Franc rosario
source share