Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8427893
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T04:54:13+00:00 2026-06-10T04:54:13+00:00

I have an using ASP.NET MVC 4.5 that uses some css files. The css

  • 0

I have an using ASP.NET MVC 4.5 that uses some css files.
The css refers to some images.

The css file Is located in this path:

WebSiteRoot\Content\css\services\File.CSS

The image is located in this path:

\WebSiteRoot\Content\img\servicesbubble\image.png

The css has this calling:

background:transparent url('../../img/servicesbubble/image.png') no-repeat 0px 0px;

When I run the app in the localhost it works. But when I upload to the hosting (Appharbor) It doesn’t work.
Why? What is the best way to reffer to the root of an app?

In the server the http get is tried to this wrong URL

WebSite.com/img/servicesbubble/desktop.png

Update: I am using the .NET framework 4.5 feature called bundling for merge these CSS with another CSS.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T04:54:14+00:00Added an answer on June 10, 2026 at 4:54 am

    Your problem is actually coming from the fact you’re minifying the css to a different directory than the CSS originally existed in.

    More specifically: http://tulpepwebsite.apphb.com/Content/css/servicescss?v=sdm08D5sRu2I00dA0phyVTYZ_QU8Nfp27wHtmmE0Gzk1

    So ../../ puts you at http://tulpepwebsite.apphb.com/Content

    Urls in CSS files are always relative to location of the CSS file itself.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a web that was build using ASP.NET MVC 1.0. It uses Structuremap
I have an asp.net mvc project that uses some search methods in a seperate
I'm using ASP.NET MVC 2 and have a login page that is secured via
Using ASP.NET MVC 2.0, I have an actionlink that is used for comments on
I'm using ASP.NET MVC RC2. I have a set of classes that were auto-generated
I wrote an application using ASP.NET MVC, in this application I have an Index
I have an existing asp.net mvc website that uses basic forms authentication. The site
I have an ASP.NET MVC application that uses jQuery 1.3.2. On several of the
We have a ASP.NET MVC 3 application that uses unobtrusive jQuery validation. The page
Hello is it possible to have an ASP.NET MVC form that uses the routes

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.