<Img src=“logo.png”> not working in _Layout.cshtml

Keywords: c# .net asp.net-mvc-5

Question: 

I'm making a site in mvc-5. I copied my logo.png picture to Views/Shared folder (same as _Layout.cshtml) and the only thing i see on my site is the default-non-working-photo icon.

<img src="logo.png">

Answers: 

Image paths (and other paths as well; javascript, css, etc.) need to be relative to the root of the site. So you need to set it as follows: src="~/Views/Shared/logo.png"