0

I am using NuGet package Backload (in MVC5 project). All works properly in local IIS (Visual Studio 2015). But in production server I have error:

/loading.gif Failed to load resource: the server responded with a status of 404 (Not Found)

I watched Resurces tab in Chrome DevTools and what i see:

Production:

http://xxxxx.xx/backload/blueimp/bootstrap/img/loading.gif

Local:

http://localhost:2643/Backload/Client/blueimp/fileupload/img/loading.gif

I find a file (jquery.fileupload-ui.css) containing:

background: url("../img/loading.gif")

Yes, i can override style, but what works not correctly?

Local Production

UPDATE after set

<compilation targetFramework="4.5.2" debug="true" />

All works, without error 404

Why it can't work on release?

Minification?

Yuriy
  • 131
  • 11
  • try to check physically if file exists in prod server, if you have access? – Mithun Pattankar Nov 06 '15 at 08:00
  • Yes, exists in the same folder – Yuriy Nov 06 '15 at 08:02
  • So... the image exist in production server in this path `/blueimp/bootstrap/img/` or in this path: `/blueimp/fileupload/img/`? – frikinside Nov 06 '15 at 08:08
  • No, Image is in folder `/Backload/Client/blueimp/fileupload/img/` – Yuriy Nov 06 '15 at 08:44
  • jquery.fileupload-ui.css in `/Backload/Client/blueimp/fileupload/css/` – Yuriy Nov 06 '15 at 08:54
  • "backload/blueimp/bootstrap" is part of the name of the bundle you use. You can find it in ~/Backload/Bundles/BackloadBundles.cs. This bundle name will be resolved to the real path at runtime. But this should affect all client files, not only the loading image. – helgans Nov 06 '15 at 09:15
  • @helgans, I agree with you. I have BackloadBundles.cs, all works except not right path of loading.gif as if BackloadBundles not work. The second question is why everything works locally. – Yuriy Nov 06 '15 at 09:34
  • Is "jquery.fileupload-ui.css" really loaded from this path "~/Backload/Client/blueimp/fileupload/css/"? Because, if the css is loaded from the correct path the bundle system works. The loading image is requested from the browser (client side) and bundling (server side) has nothing to do with it. – helgans Nov 06 '15 at 09:41
  • @helgans Yes, loaded from this path. – Yuriy Nov 06 '15 at 10:10
  • Now, on production server i set and all works – Yuriy Nov 06 '15 at 10:19
  • A little bit strange. Maybe you used an older version before and this thing was kind of a remains. Can you tell me what backload version you use, because I want to check if this can be a problem in our products. – helgans Nov 06 '15 at 10:44
  • 1
    @helgans Today I updated the version up 2.1.0.0 – Yuriy Nov 06 '15 at 10:48
  • Thanks. I'll check this in our products too. – helgans Nov 06 '15 at 10:51
  • something works not so in minification process, because debug="true" turn off minification – Yuriy Nov 06 '15 at 11:12
  • 1
    That's true. Instead of using the bundle feature you can manually reference the files. Here are the files backload references for the individual bundles: https://github.com/blackcity/backload/wiki/Script-and-style-bundles#basic-plus-ui-theme – helgans Nov 06 '15 at 11:30

0 Answers0