How to change Radcaptcha audio files in Dotnetnuke

I use 6.0.0 feedback on my DNN website that use RadCaptcha with sound code. when i use it in localhost it works fine and i can replace other .wav files with default audio files. But when I install this module on the server, the module reads audio files from WebResource, and not from the address that I installed, and I can not replace this sound files.

even I delete these audio files from the RadCaptcha folder, this module reads audio files from webResource.

I use this code to use RadCaptcha:

<dnn:dnnCaptcha ID="ctlCaptcha" runat="server" EnableRefreshImage="True" Width="300px" CaptchaImage-AudioFilesPath="~/DesktopModules/Feedback/App_Data/RadCaptcha" /> 

My question is how can I replace my custom audio files in RadCapcha on a server other than localhost

+4
source share
1 answer

Atabrizi, did you configure the handler in the web.config file correctly?

 <httphandlers> <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" /> </httphandlers> <handlers> <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" /> </handlers> 

In addition, I found the following information in my documentation:

In order for Captcha to output an audio file, the website application must work in a complete trust environment. Basically, the application should work as a user account that has permission to call the SpeechSynthesizer.Speak (textToSpeak) method on the server. As a rule, the user account does not have the necessary permissions, and the administrator must provide them. For example, in IIS 6+, the Pools application runs as the built-in ApplicationPoolIdentity account (this is the default), which does not have sufficient permissions to call SpeechSynthesizer.Speak (textToSpeak). To be able to generate code, application pools must have permissions as the LocalSystem built-in account.

However, there is another alternative:

If the web application does not have sufficient permissions to "Speak" text code or it uses .NET2.x (earlier than version 3.0 of the .NET Framework), a sound file will be created by concatenating .wav files corresponding to a specific character from the text code . By default, RadCaptcha will search for files in App_Data \ RadCaptcha, so you need to provide the folder and files. You can copy the App_Data \ RadCaptcha directory located in the App_Data folder of your RadControls to install ASP.NET AJAX. Please note that to generate the sound code correctly, there must be a ".wav" file for each possible character that can be displayed on the image, and the file must be named character - "[Char]". wav (i.e. A.wav, B.wav, C.wav, 1.wav, 2.wav, etc.).

http://www.telerik.com/help/aspnet-ajax/captcha_audio.html

+1
source

Source: https://habr.com/ru/post/1403646/


All Articles