MilitanteDoPT
2018-07-22T23:35:09Z
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
2018-07-23T13:05:06Z
Check your app.config

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

UserPostedImage
MilitanteDoPT
2018-07-24T00:18:24Z
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
2018-07-24T09:35:46Z
Did you use the recommend.web.config?
UserPostedImage
MilitanteDoPT
2018-07-25T03:10:44Z
Yes, I have merged it to the web.config I was already using in the project.
tha_watcha
2018-07-26T08:40:42Z
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
2018-07-30T00:45:05Z
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
2018-07-30T06:32:18Z
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
2018-07-31T02:25:24Z
Thank you very much! Now it's working nicely!

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