Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Images not displaying in IIS7 [modified]

Images not displaying in IIS7 [modified]

Scheduled Pinned Locked Moved ASP.NET
sysadminhelpquestionannouncement
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Member 3426936
    wrote on last edited by
    #1

    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

    C N C 3 Replies Last reply
    0
    • M Member 3426936

      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

      C Offline
      C Offline
      Curtis Schlak
      wrote on last edited by
      #2

      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

      M 1 Reply Last reply
      0
      • C Curtis Schlak

        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

        M Offline
        M Offline
        Member 3426936
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • M Member 3426936

          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

          N Offline
          N Offline
          N a v a n e e t h
          wrote on last edited by
          #4

          IIS7 requires more configuration to get HttpHandlers working. In your case, Web.DatabaseImageHttpHandler will not be configured correctly. Try to follow the below steps, 1 - Type inetmgr 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

          M 1 Reply Last reply
          0
          • N N a v a n e e t h

            IIS7 requires more configuration to get HttpHandlers working. In your case, Web.DatabaseImageHttpHandler will not be configured correctly. Try to follow the below steps, 1 - Type inetmgr 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

            M Offline
            M Offline
            Member 3426936
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            0
            • M Member 3426936

              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

              C Offline
              C Offline
              Cybernate
              wrote on last edited by
              #6

              First try browsing the image directly using the URL below: http:///facility.imgx?pictureId= This will display if there is any error in the processing and you can start your debugging from there.

              Regards, Cybernate

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups