How to Solve this IIS does't show images after publishing

Posted by Jayakumars under ASP.NET on 7/9/2013 | Points: 10 | Views : 1770 | Status : [Member] [MVP] | Replies : 4
hi

How to Solve this IIS does't show images after publishing


My Code this
==============
<asp:ImageButton ID="imgdelete" runat="server" CommandArgument='<%#Eval("ID") %>' CommandName="Delete" ImageUrl="Images/delete.PNG" />

<asp:ImageButton ID="imgedit" runat="server" CommandArgument='<%#Eval("ID") %>' CommandName="Edit" ImageUrl="~/Images/edit.png" />

here my images correct path
i try put also like this but images not showing in my WCF project

1.ImageUrl="../Images/edit.png"
2.ImageUrl="~/Images/edit.png"


error through like this
===========================
Resource interpreted as Image but transferred with MIME type text/html:

How to solve this WCF Project most urgent.

Mark as Answer if its helpful to you

Kumaraspcode2009@gmail.com



Responses

Posted by: Vuyiswamb on: 7/9/2013 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
This means in your IIS there is no Mime type for the .png extension ,

This is how to add a mime type in IIS

http://www.iis.net/configreference/system.webserver/staticcontent/mimemap

http://technet.microsoft.com/en-us/library/bb742440.aspx

Thank you for posting at Dotnetfunda
[Administrator]

Jayakumars, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 7/9/2013 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
? Image file ?

Thank you for posting at Dotnetfunda
[Administrator]

Jayakumars, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Jayakumars on: 7/9/2013 [Member] [MVP] Bronze | Points: 25

Up
0
Down
hi
Brother Vuyiswamb

png already added mime type

check this image file

i try to here attahment zip format more than time did not added here.


Mark as Answer if its helpful to you

Kumaraspcode2009@gmail.com

Jayakumars, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 7/9/2013 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
Ok , Let me help you privately , please contact me , you know how to do that

Thank you for posting at Dotnetfunda
[Administrator]

Jayakumars, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response