Popular Posts
android.intent.action.SCREEN_ON & android.intent.action.SCREEN_OFF First, I've tried create a receiver to receive screen on/off and register receiver on AndroidManifest.xml like below, but unfortunately ... IDES 4.7 Installation 電腦名稱不能使用特殊名稱(bin/etc/var ...) 網路卡-> File and Printer Sharing for Microsoft Networks ->網路應用程式的資料輸送量最大化 安裝jdk1.4 (不升級) 設置JAVA_HOME ... Capture response output stream using HttpModule using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Web; namespace TestWebA...
Stats
Error on RenderAction - No route in the route table matches the supplied values
Application works fine on develop machine and staging server. When deploy to production, there was some route error occurs on RenderAction.
Here is the Rounte config:
routes.MapRoute(
    name: "Default",
    url: "{controller}/{action}/{id}/{*filePath}",
    defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);
Although the id parameter is not required in this rounting. I've tried use code bellow and error occurs
@{Html.RenderAction("ListPart", "Store");}

@{Html.RenderAction("ListPart", "Store", new { id = UrlParameter.Optional });}
Finally, I add a really value to solve it.
@{Html.RenderAction("ListPart", "Store", new { id = 0 });}