开发者

Images Are Not Showing After Hosting @IIS?

I have a ASP.NET MVC site and it works just fine when I run it locally. Once I host that site to IIS 7,images are not showing when i browse开发者_如何学JAVAd like this "localhost/WebTest/Start/login",but,if i add slash "/" behind of these address.it's shown.My image path is "WebTest\Start\Content\test.jpg". how i fix this problem?i already post this question.i can't get right answer till now.help me please.

Regards

Chong


May be you have added absolute path to your images.Hence they show up on your local machine and not on the server

Read this and this for an understanding on the same

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜