4

VS2012 asp.net MVC4 c#, Internet Application with KendoUI Implementation.

The easiest way to say it is that My website looks like this

  • localy on the Development machine:

enter image description here

  • And like this deployed:

enter image description here

I have checked sever KendoUI forums, all of them pointing to Images missing... I checked and even copied over my deployment files, Files and Images are there, KendoUI Scripts are there.

Any ideas what I could be missing?

Don Thomas Boyle
  • 3,055
  • 3
  • 32
  • 54

2 Answers2

3

This means that for some reason the Kendo JavaScript or CSS files are missing on your deployment server. You can verify this by checking your browser's developer console (the "Network" tab) for any failing HTTP requests (404 status code). In a word make sure the Kendo JS and CSS files are being deployed successfully.

Atanas Korchev
  • 30,562
  • 8
  • 59
  • 93
  • `?v=pzyG6PIK9SK-SBYrjx_9W4M2LE67QlprY627wUj4x9M1 /Content/kendo` is what I'm seeing in the name path and `http://cls-og.com/Content/kendo?v=pzyG6PIK9SK-SBYrjx_9W4M2LE67QlprY627wUj4x9M1 Redirect` for the initiator... Found out there attached to the Bundle part of my Layout view calling both `kendo.common.min.css` and `kendo.default.min.css` , they both have full permissions but still show a `403 no perm`. However i do remember reading something about `Json`, wich i cannot find in the files anywhere is there a trick to `Json` and why it would only work on the Dev machine? – Don Thomas Boyle Aug 21 '13 at 12:49
  • 1
    This isn't related with Json. Check online for problems related with ASP.NET Bundle permissions. – Atanas Korchev Aug 21 '13 at 13:08
  • The fix was: Updating `WebOptimization`, adding `bundles.DirectoryFilter.Clear();` and the `.Ignore` for it. This allowed the `.min` `kendoUI` files to be read correctly. – Don Thomas Boyle Aug 21 '13 at 18:15
  • 2
    http://www.mvccentral.net/Story/Details/articles/kahanu/stylebundle-403-error-solved - this is very good documentation on the matter – Don Thomas Boyle Aug 27 '13 at 19:21
0

You need to add kendo scripts directly in the header of your layout.

<head>
   <script src="~/Scripts/kendo/jquery.min.js"></script>
   <script src="~/Scripts/kendo/kendo.web.min.js"></script>
</head>        
Yini
  • 691
  • 8
  • 9