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 6114425
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:58:23+00:00 2026-05-23T14:58:23+00:00

Possible Duplicate: Images in CSS not showing in ASP.NET MVC I have already asked

  • 0

Possible Duplicate:
Images in CSS not showing in ASP.NET MVC

I have already asked this but didn’t receive an answer that fixed it. I’m asking again because I have tried everything I can think of and am absolutely stuck. My previous question was here: CSS images not showing in ASP.NET MVC

I have an ASP.NET MVC application with images in an ~/image/ directory. When I run it in development, the images show fine. When published, they do not show at all. I don’t think it is a reference path issue because I’ve tried every combination of ../, ./, ~/, etc. I can think of. Neither css references, <img> or <asp:Image> tags work and all have the same problem. I’ve tried editing windows security on the image and all parent folders to no avail.

When I mouse over the image path in firebug, the image preview box just spins as though the image is found but can’t load.

The very strange thing is that when I try to go to the image directly (www.web.com/images/image.png), I am redirected to the default log in page. The default account controller that ASP.NET MVC puts in projects is in my app, but I have not implemented any log in controls yet. So I think it’s an issue with authentication. Or perhaps it is an IIS issue?

I appreciate any help you can give. I have been stuck on this for almost a week and may have to abandon images all together I can’t get this sorted.

  • 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-05-23T14:58:24+00:00Added an answer on May 23, 2026 at 2:58 pm

    I FINALLY figured it out. The image file in question was encrypted. Right click the image file -> properties -> advanced button on general tab -> uncheck “Encrypt contents to secure data” -> OK -> OK.

    The tip off finally came when I noticed the file name was green in windows explorer. I see green file names all the time with no problems so I didn’t think anything of it. Then I noticed it was the only green file in the entire web app folder. Put 2 and 2 together and it worked instantly. Thanks everyone for your help.

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

Sidebar

Related Questions

Possible Duplicate: Best Way to Sprite Images? Hi i have been using this http://spritegen.website-performance.org
Possible Duplicate: Merging two images in C#/.NET I have two png format images and
Possible Duplicate: Place watermark image on other images (C#, ASP.Net) how to add water
Possible Duplicate: Can I have multiple background images using CSS? Is it possible to
Possible Duplicate: Can I have multiple background images using CSS? I am making a
Possible Duplicate: Is there a CSS parent selector? I have this code : <div
Possible Duplicate: Asp.net MVC page is giving Mime type warnings for image files I
Possible Duplicate: Css z-index problem I have an issue where one image is infront
Possible Duplicate: CSS - Equal Height Columns? I'm not the greatest with css, so
Possible Duplicate: Css and javascript Not Loading in rewrite rule After using only rewrite

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.