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. httphandler and imageproblems

httphandler and imageproblems

Scheduled Pinned Locked Moved ASP.NET
helpcsharpsysadminquestion
9 Posts 2 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.
  • L Offline
    L Offline
    livez
    wrote on last edited by
    #1

    Hello! I´ve tried using a captchacontrol from this article: [^] When I run it locally everything works fine, but when I publish it onto our webserver I only get a image generated now and then. I feel kind of lost as how I should solve this issue, does anyone have an idea of wherein the problem could lie? /regards

    E 1 Reply Last reply
    0
    • L livez

      Hello! I´ve tried using a captchacontrol from this article: [^] When I run it locally everything works fine, but when I publish it onto our webserver I only get a image generated now and then. I feel kind of lost as how I should solve this issue, does anyone have an idea of wherein the problem could lie? /regards

      E Offline
      E Offline
      eyeseetee
      wrote on last edited by
      #2

      Try putting a post on the website you provided a url for. When you say:

      livez wrote:

      I only get a image generated now and then

      Do you mean sometimes it works sometimes it doesnt

      We are not a Code Charity

      L 1 Reply Last reply
      0
      • E eyeseetee

        Try putting a post on the website you provided a url for. When you say:

        livez wrote:

        I only get a image generated now and then

        Do you mean sometimes it works sometimes it doesnt

        We are not a Code Charity

        L Offline
        L Offline
        livez
        wrote on last edited by
        #3

        "Do you mean sometimes it works sometimes it doesnt" yeah, sometimes I get no image at all. I´ve contacted the guy who made the control, but I´ve gotten no response yet. I thought maybe I did some very common mistake when working with httphandlers that could cause this, that someone immediately would know what to correkt.

        E 1 Reply Last reply
        0
        • L livez

          "Do you mean sometimes it works sometimes it doesnt" yeah, sometimes I get no image at all. I´ve contacted the guy who made the control, but I´ve gotten no response yet. I thought maybe I did some very common mistake when working with httphandlers that could cause this, that someone immediately would know what to correkt.

          E Offline
          E Offline
          eyeseetee
          wrote on last edited by
          #4

          Can you post some of your code?

          We are not a Code Charity

          L 1 Reply Last reply
          0
          • E eyeseetee

            Can you post some of your code?

            We are not a Code Charity

            L Offline
            L Offline
            livez
            wrote on last edited by
            #5

            Thanks for your response .Netman. I now know a little more about what the problem is. The webserver was set to simulate web farm, when I turned this off the captcha worked fine. The captcha uses viewstate to store stuff, and this can be a problem in a web farm environment. I thought I had already solved this by setting a machinekey element in my web.config, but apparently something is missing.

            E 1 Reply Last reply
            0
            • L livez

              Thanks for your response .Netman. I now know a little more about what the problem is. The webserver was set to simulate web farm, when I turned this off the captcha worked fine. The captcha uses viewstate to store stuff, and this can be a problem in a web farm environment. I thought I had already solved this by setting a machinekey element in my web.config, but apparently something is missing.

              E Offline
              E Offline
              eyeseetee
              wrote on last edited by
              #6

              OK, so have you got it fixed or is there still a problem? Have you left web farm as turned off?

              We are not a Code Charity

              L 1 Reply Last reply
              0
              • E eyeseetee

                OK, so have you got it fixed or is there still a problem? Have you left web farm as turned off?

                We are not a Code Charity

                L Offline
                L Offline
                livez
                wrote on last edited by
                #7

                Problem remains :( We will have a webfarm later on so I need to be able to use the captcha-control in a web farm environment. I have this (with another key)

                machinekey validationkey="20B62370E8C940949E4734429E78CDE6F81E09BD63D5DB0A581CAE0C89704296E028DD544F2A184AFE7C45CA39A1540989A0880B948BCCCF23124226B5E738FD" decryptionkey="5A34CCAAC7973E35D80030F8457B16A18B1B6C459A7972F1" validation="SHA1" /machinekey

                in our web.config, and I thought this would make viewstate work in a web farm environment, but that does not seem to be the case :(

                modified on Thursday, May 29, 2008 5:19 AM

                E 1 Reply Last reply
                0
                • L livez

                  Problem remains :( We will have a webfarm later on so I need to be able to use the captcha-control in a web farm environment. I have this (with another key)

                  machinekey validationkey="20B62370E8C940949E4734429E78CDE6F81E09BD63D5DB0A581CAE0C89704296E028DD544F2A184AFE7C45CA39A1540989A0880B948BCCCF23124226B5E738FD" decryptionkey="5A34CCAAC7973E35D80030F8457B16A18B1B6C459A7972F1" validation="SHA1" /machinekey

                  in our web.config, and I thought this would make viewstate work in a web farm environment, but that does not seem to be the case :(

                  modified on Thursday, May 29, 2008 5:19 AM

                  E Offline
                  E Offline
                  eyeseetee
                  wrote on last edited by
                  #8

                  Hi Sorry I do not know enough about this area to help you, I would try and research the web farm and see if that helps you cheers

                  We are not a Code Charity

                  L 1 Reply Last reply
                  0
                  • E eyeseetee

                    Hi Sorry I do not know enough about this area to help you, I would try and research the web farm and see if that helps you cheers

                    We are not a Code Charity

                    L Offline
                    L Offline
                    livez
                    wrote on last edited by
                    #9

                    Found the solution =). The captcha control was saving stuff in cache. Thanks for your time .netman!

                    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