Rubia Gardini
Rubia Gardini

Reputation: 815

MVC3 and Windows Azure: none of the images of my app appear

I did all tests in my local machine, my project was all ok to run Windows Azure app locally, but when I published that it seems that the images folder didn't upload. I can't see any of the images in my application, and my app is full of images.

Anyone knows how to solve that?

Upvotes: 2

Views: 1018

Answers (2)

BritishDeveloper
BritishDeveloper

Reputation: 13349

It sounds like you have the images in the correct location and are referencing them fine but they are just not included in your solution.

I bet you cannot see them because you have "Show All Files" switched off. To toggle this setting, click the project that houses your images (the web project) once to select it. Then go to the top of the Solution Explorer pane and click the Show All Files button.

enter image description here

This should now display your images and/or their containing folder. Right click the folder and select "Include in project". When you package up your website now they will be included in the deployment.

Upvotes: 4

Dima Pasko
Dima Pasko

Reputation: 1170

Check images properties in Visual Studio solution.

Images should be marked as "Content" and "Copy always" or "Cope if newer"

Upvotes: 1

Related Questions