Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WebResource reporting 404 file not found

I'm working on a system that embeds various JS and CSS resources in the project dll, and access them using WebResource.axd. This all works fine locally, but if I download and install the app from our nightly build server, all our WebResources report a 404 error.

We initially though it was because the downloaded zip file was blocked, and for a while, unblocking the downloaded zip before extracting did work, however, now, nothing seems to work.

Swapping the downloaded dll with the one created locally makes the WebResources work, so it sounds like something is going on with the dll (either on the download server, or during the download process).

Anybody got any ideas what it might be?

like image 387
Matt Brailsford Avatar asked Feb 13 '26 20:02

Matt Brailsford


1 Answers

So I managed to find the culprit myself, which was that the Modified Date timestamp on the DLL's was set to the future (our build server is in a timezone one hour ahead of ours), so for some reason WebResource wasn't picking them up.

Hope this helps someone in the future.

like image 126
Matt Brailsford Avatar answered Feb 16 '26 14:02

Matt Brailsford



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!