5

Starting with the default ASP.Net Web Forms template provided by Microsoft, I added a couple of CSS files, bundled it and added it to Site.Master. Things work locally, but not when published on Azure.

Based on these links - link 1 & link 2, I tried changing the bundle name, but it still does not work and I get a 404 error on Azure.

Current File Structure:

enter image description here

Bundle.config file

enter image description here

Site.master file contents

<webopt:bundlereference runat="server" path="~/Content/css" />
<webopt:bundlereference runat="server" path="~/Content/mycss" />

The 1st reference works but the 2nd one does not. Any other ideas what could be the issue?

Community
  • 1
  • 1
Nitesh
  • 2,286
  • 2
  • 43
  • 65

1 Answers1

0

At the time of posting the question, I have been trying to publish to Azure 'n' number of times because of which Azure was somehow not displaying the CSS files. Tried after few hours and all worked like charm.

The main point to consider here is mentioned here. Hope it helps other folks.

Community
  • 1
  • 1
Nitesh
  • 2,286
  • 2
  • 43
  • 65