#1
Hello everyone, good evening! I'm installing YAF v2.2.4.12 to a project I'm developing as a university assignment and I'm having problems to get the CAPTCHA images working. I think I'm not configuring the httpHandler at my web.config right, but I'm not sure. I get this:

Capturar.PNG

I think it should have a tilde before the URL there, but I can't fix it here, what should I do?

I'm sorry for not being clear enough, I'm not that good at communicating myself in English and I'd like to thank you for developing such a useful project.
Topic Starter
  • MilitanteDoPT
  • Rank: YAF Forumling
  • Reputation:
    Neutral
    54.8%
  • Joined: 23/07/2018
  • Posts: 8
  •  Brazil
  • Location: São Vicente - SP
#2
Check your app.config

<add key="YAF.FileRoot" value="~/Forum"/>

test
  • tha_watcha
  • Rank: YAF.NET Project Lead
  • Reputation:
    Exalted
    100%
  • Medals:
    Medal of Honor: Portal Puzzle Master: Portal Puzzle Master for DNNMedal of Honor Key: Given to pillars of the community who are key players in the YAF community and project.DNN Master: DNN Module ManBug Killer Medal of Honor: Medal for being a kick-ass bug killer!Medal of Honor for the Support King: Support King! Amazing asset to the YAF.NET Community.
  • Joined: 06/03/2010
  • Posts: 3,983
  •  Germany
  • Thanks: 73 times
  • Was thanked: 1202 time(s) in 1029 post(s)
#3
Hello, my appSettings are this way:

appSettings.PNG

I'm already using "~/Forum" in YAF.FileRoot. Could this be happening for another reason?
Topic Starter
  • MilitanteDoPT
  • Rank: YAF Forumling
  • Reputation:
    Neutral
    54.8%
  • Joined: 23/07/2018
  • Posts: 8
  •  Brazil
  • Location: São Vicente - SP
#4
Did you use the recommend.web.config?
test
  • tha_watcha
  • Rank: YAF.NET Project Lead
  • Reputation:
    Exalted
    100%
  • Medals:
    Medal of Honor: Portal Puzzle Master: Portal Puzzle Master for DNNMedal of Honor Key: Given to pillars of the community who are key players in the YAF community and project.DNN Master: DNN Module ManBug Killer Medal of Honor: Medal for being a kick-ass bug killer!Medal of Honor for the Support King: Support King! Amazing asset to the YAF.NET Community.
  • Joined: 06/03/2010
  • Posts: 3,983
  •  Germany
  • Thanks: 73 times
  • Was thanked: 1202 time(s) in 1029 post(s)
#5
Yes, I have merged it to the web.config I was already using in the project.
Topic Starter
  • MilitanteDoPT
  • Rank: YAF Forumling
  • Reputation:
    Neutral
    54.8%
  • Joined: 23/07/2018
  • Posts: 8
  •  Brazil
  • Location: São Vicente - SP
#6
Originally Posted by: MilitanteDoPT

Yes, I have merged it to the web.config I was already using in the project.



Okay if you are sure that the http handler is added to the web.config then the web.config and app.config is correct.

What happens when you copy the url of the captcha image and try to access the file directly in the browser?

Are you using any extra url rewriters?


test
  • tha_watcha
  • Rank: YAF.NET Project Lead
  • Reputation:
    Exalted
    100%
  • Medals:
    Medal of Honor: Portal Puzzle Master: Portal Puzzle Master for DNNMedal of Honor Key: Given to pillars of the community who are key players in the YAF community and project.DNN Master: DNN Module ManBug Killer Medal of Honor: Medal for being a kick-ass bug killer!Medal of Honor for the Support King: Support King! Amazing asset to the YAF.NET Community.
  • Joined: 06/03/2010
  • Posts: 3,983
  •  Germany
  • Thanks: 73 times
  • Was thanked: 1202 time(s) in 1029 post(s)
#7
Hello, I'm sorry for the lateness in my answer, I get the following error when copying the captcha's message into my browser:
Tela.PNG

My handler is like this:

handler.PNG

And I'm using the standard rewritter. I've only pasted the UrlRewriter.config at the project's root.
Topic Starter
  • MilitanteDoPT
  • Rank: YAF Forumling
  • Reputation:
    Neutral
    54.8%
  • Joined: 23/07/2018
  • Posts: 8
  •  Brazil
  • Location: São Vicente - SP
#8
Sorry i made a mistake you also need to add the httphandler as shown in my commit here...

https://github.com/YAFNE...914ad5f81ca17fb2545ba868

then id should work
test
  • tha_watcha
  • Rank: YAF.NET Project Lead
  • Reputation:
    Exalted
    100%
  • Medals:
    Medal of Honor: Portal Puzzle Master: Portal Puzzle Master for DNNMedal of Honor Key: Given to pillars of the community who are key players in the YAF community and project.DNN Master: DNN Module ManBug Killer Medal of Honor: Medal for being a kick-ass bug killer!Medal of Honor for the Support King: Support King! Amazing asset to the YAF.NET Community.
  • Joined: 06/03/2010
  • Posts: 3,983
  •  Germany
  • Thanks: 73 times
  • Was thanked: 1202 time(s) in 1029 post(s)
#9
Thank you very much! Now it's working nicely!
Topic Starter
  • MilitanteDoPT
  • Rank: YAF Forumling
  • Reputation:
    Neutral
    54.8%
  • Joined: 23/07/2018
  • Posts: 8
  •  Brazil
  • Location: São Vicente - SP
Forum Jump  
  • You cannot post new topics in this forum.
  • You cannot reply to topics in this forum.
  • You cannot delete your posts in this forum.
  • You cannot edit your posts in this forum.
  • You cannot create polls in this forum.
  • You cannot vote in polls in this forum.

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved