CrystalImageHandler.aspx not found

后端 未结 4 1918
星月不相逢
星月不相逢 2021-01-05 06:32

I am using Crystal reports viewer on a normal ASP.NET aspx page in an MVC3 application. In a controller action I am simply redirecting to the aspx page and the report shows

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-05 06:53

    In my case I only had to ignore MVC's routing.To add onto @Hovhannes solution.You should add this rule to Routeconfig.cs

    routes.IgnoreRoute("{*allaspx}", new { allaspx = @".*(CrystalImageHandler).*" });
    

提交回复
热议问题