BundleConfig - Can not find files on the server

0

I am using Kendo UI in a MVC 4 project, I made the settings in BudleConfig:

        bundles.Add(new ScriptBundle("~/bundles/kendo")
            .Include("~/Scripts/kendo/2013.2.918/kendo.all.min.js")
            .Include("~/Scripts/kendo/2013.2.918/kendo.aspnetmvc.min.js")
        );

        bundles.Add(new StyleBundle("~/bundles/css")
              .Include("~/Content/kendo/2013.2.918/kendo.common.min.css")
              .Include("~/Content/kendo/2013.2.918/kendo..metronic.min.css")
        );

No Html:

@Styles.Render("~/bundles/css")
@Scripts.Render("~/bundles/jquery")
@Scripts.Render("~/bundles/kendo")

Running in place it works normally, but when I upload it to the server it loses the images

Failed to load resource: the server responded with a status of 404 (Not Found) http://meu.ip/bundles/Metro/loading-image.gif

Any specific reason why this is happening?

    
asked by anonymous 16.07.2014 / 15:38

1 answer

1

(if you have not found a solution yet) I've had a similar problem here at IBM. Assuming this is your case. I created a new folder for an existing site and it worked fine on ratification, but in production the folder and its contents were never found by the server. The solution was very simple, in IIS, right click on the folder and edit permissions, adding "everyone" with read permission.

Another thing I noticed (may be silly), but, one of your files is with 2 points (..) "kendo..metronic.min.css" is this?

It's good to always drag and drop the file into a view and copy the path, just to make sure there is no typo.

If this is not your case, post more information about what you need as a bottom line. There are several options of css frameworks like kendo that you can use.

Another thing, make sure that the version of JQuery is compatible with that required by Kendo (if applicable)

    
21.07.2014 / 14:18