ASP.NET MVC 5 and internal OData service

Dec 3, 2014 at 4:27 PM
Edited Dec 3, 2014 at 4:55 PM
My service can work and I can see returned data if I use direct link in my web browser (http://localhost:53307/odata/Customers). But I get 404 error if I try to run the following scripts.
$().ready(function() {
    OData.read("http://localhost:53307/odata/Customers");
});
and my bundle's configuration
 bundles.Add(new ScriptBundle("~/bundles/datajs").Include(
            "~/Scripts/jquery-{version}.intellisence.js",
            "~/Scripts/datajs-{version}.js",
            "~/Scripts/respond.matchmedia.addListener.js"));

 bundles.Add(new ScriptBundle("~/bundles/app/customers").Include(
            "~/Scripts/app/customers.js"));
Thanks
Dec 6, 2014 at 6:29 AM
Edited Dec 6, 2014 at 6:30 AM