need help in getting images to work

Last post 11-24-2005 6:34 AM by BillKrat. 4 replies.

Sort Posts:

  • need help in getting images to work

    03-23-2004, 12:21 PM
    • Member
      20 point Member
    • swein
    • Member since 10-23-2002, 9:58 PM
    • Posts 4
    uploaded images to version 1.1 do not get displayed.

    I've been trying to get this to work for the past few days, without any luck.

    Here are some details...
    if an image file is placed on the filesystem then it shows up fine.
    but if I go to the Admin, edit images, I am able to upload images, but they do not display.
    more specifically, if I upload file say a.gif, the upload works correctly but the thumbnail image is that red X.
    if I click on the thumbnail the site requests the following URL http://prague-spring.org/a.gif, and I get a 404 response.

    I tried to do some debugging on my local web server by setting breakpoints in ImageHandler.cs and DisplayImage.cs but the breakpoints were never activated.

    my Web.config looks like this
    <configuration>
    <configSections>
    <sectionGroup name="communityStarterKit">
    <section name="Isp" type="ASPNET.StarterKit.Communities.CommunitiesSectionHandler,ASPNET.StarterKit.Communities" />
    <section name="pagePaths" type="ASPNET.StarterKit.Communities.CommunitiesSectionHandler,ASPNET.StarterKit.Communities" />
    <section name="database" type="ASPNET.StarterKit.Communities.CommunitiesSectionHandler,ASPNET.StarterKit.Communities" />
    <section name="services" type="ASPNET.StarterKit.Communities.CommunitiesSectionHandler,ASPNET.StarterKit.Communities" />
    </sectionGroup>
    </configSections>
    <communityStarterKit>
    <Isp>
    <add key="IspUsername" value="xxxxxx" />
    <add key="IspPassword" value="xxxxxxxx" />
    <add key="TimeZoneAbbreviation" value="EST" />
    <add key="GmtTimeOffset" value="-5" />
    </Isp>
    <pagePaths>
    <add key="basePage" value="/communityDefault.aspx" />
    <add key="baseService" value="/communityService.asmx" />
    </pagePaths>
    <database>
    <add key="connectionString" value="xxxxxxxxxxxxxxxxxxxxxx" />
    </database>
    <services>
    <add key="enableServiceTimer" value="true" />
    </services>
    </communityStarterKit>
    <system.web>
    <customErrors mode="Off"/>
    <httpModules>
    <add name="CommunitiesModule" type="ASPNET.StarterKit.Communities.CommunitiesModule,ASPNET.StarterKit.Communities" />
    </httpModules>
    <authentication mode="Forms">
    <forms loginUrl="Users_Login.aspx"/>
    </authentication>
    <pages validateRequest="false" />
    <httpRuntime maxRequestLength="1000" />
    <httpHandlers>
    <add verb="*" path="*.jpg" type="ASPNET.StarterKit.Communities.ImageHandler, ASPNET.StarterKit.Communities" />
    <add verb="*" path="*.jpeg" type="ASPNET.StarterKit.Communities.ImageHandler, ASPNET.StarterKit.Communities" />
    <add verb="*" path="*.gif" type="ASPNET.StarterKit.Communities.ImageHandler, ASPNET.StarterKit.Communities" />
    </httpHandlers>
    <webServices>
    <protocols>
    <add name="HttpGet"/>
    </protocols>
    </webServices>
    </system.web>
    </configuration>
  • Re: need help in getting images to work

    03-23-2004, 2:16 PM
    • Contributor
      5,268 point Contributor
    • Redd
    • Member since 06-21-2002, 3:50 PM
    • Greenville SC
    • Posts 1,057
    It sounds like you are missing the image mappings from IIS. There are a bizillion posts in the CSK forum on this topic. There is also information in the documentation that ships with the GCN.

    Or you can look at the CSK FAQ entry here:

    http://www.colin-munford.me.uk/community/Programming/CSK+FAQ/380.aspx
    Stephen M. Redd
    http://www.reddnet.net
  • Re: need help in getting images to work

    10-08-2004, 3:53 PM
    • Member
      135 point Member
    • h_a_l
    • Member since 01-13-2004, 12:01 AM
    • Posts 27
    1) In IIS, go to the properties of your website.

    2) Go to the "Home Directory" tab and click the configuration button

    3) On the Application Configuration form, you will see on the Mappings tab a list of all the extensions used within the site. You will probably find that .jpg & .gif are not in the list.

    4) If the extensions are not there, add them. To do this, click Add, enter C:\Windows\Microsoft.net\framework\v1.1.4322\aspnet_isapi.dll for the executable and GET,POST,HEAD,DEBUG for the verbs. Select the Script Engine checkbox.


    I had the exact same problem and this soved it for me.'

    HAL
  • Re: need help in getting images to work

    02-08-2005, 9:01 PM
    • Member
      15 point Member
    • tswells
    • Member since 02-03-2005, 10:42 PM
    • Posts 3
    Had the same problem. Image files wound up being corrupted somehow. Downloaded another set of code and uploaded images. Problem solved.
  • Re: need help in getting images to work

    11-24-2005, 6:34 AM
    • Participant
      868 point Participant
    • BillKrat
    • Member since 08-19-2003, 3:30 PM
    • Amarillo, tx
    • Posts 176

    The following link explains the issue:
    http://forums.asp.net/1118595/ShowPost.aspx#1118595


    At the bottom of this post (in red) is the solution should your ISP be unwilling/unable to configure IIS:
    http://forums.asp.net/891513/ShowPost.aspx

Page 1 of 1 (5 items)