Images not displaying in IIS7 [modified]
-
All I have a website that works perfect on IIS6 with Windows 2003 server, I am trying to move the website to Windows 2008 server with IIS7, everything works fine except the images does not display in the webpages, I did some search and installed static content, tried adding new handlers etc. without any success, Here is the picture control code And here is how I am calling the picture FacilityPicture.ImageUrl = "facility.imgx?pictureId=" + facility.MainPicture.ReplicationId.ToString(); I have added the imgx handler in the web.config add verb="GET" path="*.imgx" type="*****.Web.DatabaseImageHttpHandler, *****.Web, Version=1.2.0.0, Culture=neutral, PublicKeyToken=89330ffe59e80120" / I replaced the DLL name with *s. All the pictures are displaying the "alternatetext" value and not the picture itself. Appreciate any help Thanks in advance Sri
modified on Monday, March 9, 2009 6:55 PM
-
All I have a website that works perfect on IIS6 with Windows 2003 server, I am trying to move the website to Windows 2008 server with IIS7, everything works fine except the images does not display in the webpages, I did some search and installed static content, tried adding new handlers etc. without any success, Here is the picture control code And here is how I am calling the picture FacilityPicture.ImageUrl = "facility.imgx?pictureId=" + facility.MainPicture.ReplicationId.ToString(); I have added the imgx handler in the web.config add verb="GET" path="*.imgx" type="*****.Web.DatabaseImageHttpHandler, *****.Web, Version=1.2.0.0, Culture=neutral, PublicKeyToken=89330ffe59e80120" / I replaced the DLL name with *s. All the pictures are displaying the "alternatetext" value and not the picture itself. Appreciate any help Thanks in advance Sri
modified on Monday, March 9, 2009 6:55 PM
Maybe I'm being silly, but doesn't
visible="false"
not show the images?"we must lose precision to make significant statements about complex systems." -deKorvin on uncertainty
-
Maybe I'm being silly, but doesn't
visible="false"
not show the images?"we must lose precision to make significant statements about complex systems." -deKorvin on uncertainty
Thanks, But I do enable the control in code behind before I assign the image to it, Like I said it shows the Alternatetext value but not the picture. Sri
-
All I have a website that works perfect on IIS6 with Windows 2003 server, I am trying to move the website to Windows 2008 server with IIS7, everything works fine except the images does not display in the webpages, I did some search and installed static content, tried adding new handlers etc. without any success, Here is the picture control code And here is how I am calling the picture FacilityPicture.ImageUrl = "facility.imgx?pictureId=" + facility.MainPicture.ReplicationId.ToString(); I have added the imgx handler in the web.config add verb="GET" path="*.imgx" type="*****.Web.DatabaseImageHttpHandler, *****.Web, Version=1.2.0.0, Culture=neutral, PublicKeyToken=89330ffe59e80120" / I replaced the DLL name with *s. All the pictures are displaying the "alternatetext" value and not the picture itself. Appreciate any help Thanks in advance Sri
modified on Monday, March 9, 2009 6:55 PM
IIS7 requires more configuration to get
HttpHandler
s working. In your case,Web.DatabaseImageHttpHandler
will not be configured correctly. Try to follow the below steps, 1 - Typeinetmgr
to open IIS configuration 2 - Click on Handler Mappings 3 - Choose Add managed handler under Actions. Specify the required details. Now try to refresh your page. :)Navaneeth How to use google | Ask smart questions
-
IIS7 requires more configuration to get
HttpHandler
s working. In your case,Web.DatabaseImageHttpHandler
will not be configured correctly. Try to follow the below steps, 1 - Typeinetmgr
to open IIS configuration 2 - Click on Handler Mappings 3 - Choose Add managed handler under Actions. Specify the required details. Now try to refresh your page. :)Navaneeth How to use google | Ask smart questions
No luck, here is how I tried it, http://i43.tinypic.com/x6d8wn.jpg[^] Let me know if anyone has other ideas, Thanks in advance Sri
-
All I have a website that works perfect on IIS6 with Windows 2003 server, I am trying to move the website to Windows 2008 server with IIS7, everything works fine except the images does not display in the webpages, I did some search and installed static content, tried adding new handlers etc. without any success, Here is the picture control code And here is how I am calling the picture FacilityPicture.ImageUrl = "facility.imgx?pictureId=" + facility.MainPicture.ReplicationId.ToString(); I have added the imgx handler in the web.config add verb="GET" path="*.imgx" type="*****.Web.DatabaseImageHttpHandler, *****.Web, Version=1.2.0.0, Culture=neutral, PublicKeyToken=89330ffe59e80120" / I replaced the DLL name with *s. All the pictures are displaying the "alternatetext" value and not the picture itself. Appreciate any help Thanks in advance Sri
modified on Monday, March 9, 2009 6:55 PM