2016-12-19 1 views
0

Ich habe ein Captcha (BotDetect CAPTCHA) zu meinem asp.net MVC-Formular hinzugefügt. Aber es funktioniert korrekt in der http-Site, funktioniert aber nicht in https.BotDetect CAPTCHA funktioniert nicht in https

Ich folgte die untenstehende Dokumentation.

https://captcha.com/doc/aspnet/asp.net-mvc-captcha-quickstart.html

Dies ist meine http-Website. enter image description here

Aber in https;

enter image description here

Dies sind die Fehler, die ich in Browser-Konsole erhalten.

/BotDetectCaptcha.ashx?get=script-include 404 (Not Found) 
/BotDetectCaptcha.ashx?get=layout-stylesheet 404 (Not Found) 
Uncaught ReferenceError: BotDetect is not defined 
/BotDetectCaptcha.ashx?get=image&c=ExampleCaptcha&t=be41dfc9b19b449f98fdd794a00e1cfa 404 (Not Found) 
/BotDetectCaptcha.ashx?get=reload-icon 404 (Not Found) 
/BotDetectCaptcha.ashx?get=sound-icon 404 (Not Found) 

Antwort

0

Ich habe das Problem gefunden. Ich habe unten in web.config (in Live) verpasst.

<remove name="BotDetectCaptchaHandler" /> 
<add name="BotDetectCaptchaHandler" preCondition="integratedMode" verb="GET" path="BotDetectCaptcha.ashx" type="BotDetect.Web.CaptchaHandler, BotDetect" /> 
0

Ich hatte ähnliche Probleme, die viel zu lange dauerte, um zu lösen. Das Hinzufügen des folgenden zu den Handlern behob das Problem für mich.

resourceType="Unspecified" 

wie:

<add name="BotDetectCaptchaHandler" preCondition="integratedMode" verb="GET" path="BotDetectCaptcha.ashx" type="BotDetect.Web.CaptchaHandler, BotDetect" resourceType="Unspecified" /> 

ich fand diese bei Problem mapping HttpHandler --> HTTP Error 404 Not Found

Verwandte Themen