How to make my ASP.Net MVC project see folders with images? [closed]

0

I have a question, I have a folder with images included in my ASP.NET MVC project, but when my project is running it does not map this folder so it can not include images to my site.

I have the following path Content/NewTheme/img/ :

Thatafterrunningmyprojectdoesnotmapthedirectoryshownabove.

Could anyone help me?

    
asked by anonymous 05.10.2016 / 14:15

1 answer

2

There is something wrong with your code and not with "mapping."

If you notice the path he is trying to fetch the image is:

http://localhost:1739/assets/img/user.png

However, in your image it clearly shows that the path is:

http://localhost:1739/Content/NewTheme/img/user.png

Change the path to the correct directory where the image will normally appear.

    
05.10.2016 / 14:42