0

I have a few sites running with ASP.Net 4.5 and Bootstrap 3.3.7, no problems.

Currently working on a site looks fine in development. Went to publish to a Test Server and something has gone wrong.

Has anyone run into this before and where can I look to try and fix. I have been looking at this for 4 hours now and I am getting ready to loose it.

Working Fine

Not Working

More digging. From the Network Tab I am getting a 404 on Content/css which is produced from:

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

That folder does contain bootstrap.css.

10
  • Looks like styles are not being loaded. Need to make sure stylesheet file is in correct location. Open inspection tool in your internet browser. Can you see any error in console. Go to Network tab and see what's missing. Commented Oct 17, 2017 at 15:01
  • 1
    What version of IE are you using in the second photo? Commented Oct 17, 2017 at 15:02
  • Both are IE 11. Commented Oct 17, 2017 at 15:05
  • Please supply some code. How do you reference the stylesheet? Commented Oct 17, 2017 at 15:06
  • Adding on to @derloopkat's comment, the "Not Working" pic suggests that your problem is with styles generally, rather than Bootstrap specifically. I'd also look to see if the same issue occurs across different browsers. Commented Oct 17, 2017 at 15:06

1 Answer 1

2

Much thanks to all who responded. I am truly appreciative.

Special thanks to peewee_RotA who clued me in enough that led me to just rip out the <webopt:bundlereference runat="server" path="~/Content/css" /> and just replace with actual references like <link href="Content/bootstrap.css" rel="stylesheet" type="text/css" />.

Do not know why the bundler did not work, do not care.

Sign up to request clarification or add additional context in comments.

1 Comment

These are super frustrating problems. I'm glad you got to a solution and I wish you luck. That being said, I hope you have a chance to revisit this and find out what is wrong with the bundler. I don't think this will make a good long term fix. Either way, I feel your pain. Been cut a thousand cuts by this problem many times in the past. Cheers!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.