MilitanteDoPT
  • Posts: 8
  • Joined: 23/07/2018
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.
Sponsor
tha_watcha
  • Posts: 4080
  • Joined: 06/03/2010
Check your app.config

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

UserPostedImage
MilitanteDoPT
  • Posts: 8
  • Joined: 23/07/2018
Hello, my appSettings are this way:

appSettings.PNG

I'm already using "~/Forum" in YAF.FileRoot. Could this be happening for another reason?
tha_watcha
  • Posts: 4080
  • Joined: 06/03/2010
Did you use the recommend.web.config?
UserPostedImage
MilitanteDoPT
  • Posts: 8
  • Joined: 23/07/2018
Yes, I have merged it to the web.config I was already using in the project.
tha_watcha
  • Posts: 4080
  • Joined: 06/03/2010
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?


UserPostedImage
MilitanteDoPT
  • Posts: 8
  • Joined: 23/07/2018
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.
tha_watcha
  • Posts: 4080
  • Joined: 06/03/2010
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
UserPostedImage
MilitanteDoPT
  • Posts: 8
  • Joined: 23/07/2018
Thank you very much! Now it's working nicely!
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