0

I have images sitting within my project root at Data\Images\articles. I am trying to render the image using the code below in MVC:

<img src="@Url.Content(Model.Image)" alt="Image" />

It's not displaying the image, however the rendered html code is correct.

<img src="/Data/Images/Articles/16fd7bc5-3bac-474a-a806-b8d72b974960.PNG" alt="Image">

I am running the project from Visual studio server, not through IIS. Any idea what I am doing wrong here?

ndsmyter
  • 6,535
  • 3
  • 22
  • 37
User
  • 79
  • 1
  • 11

1 Answers1

0

Different file name was generating as compare to what was expecting in logic causing 404 error when validating the image file name

User
  • 79
  • 1
  • 11