Dear All,
We have a public web site which is build under sharepoint 2010 and we use the NetAdvantage Captcha as a part of our contact form.
The captcha is work fine if the form is accessed anonymously , but if someone login on the site and access the form , they get Async request failed error when they press the refresh button on the captcha control.
kind regard
Peter Tabangan
Hello Peter ,
I’m just following up to see if you’ve been able to resolve your issue. If you have any questions or concerns or if you need further assistance please let me know.
Best Regards,
Maya Kirova
Developer Support Engineer
Infragistics, Inc.
http://es.infragistics.com/support
Hi Maya,
Thank you for your response and sorry for the late reply :)
below are the information that you are looking
version : 12.1.20121.2072
assembly :Infragistics35.Web.v12.1
ERROR
[HttpException]: The Controls collection cannot be modified vevause the control contains code block (i.e. < ... %>).
at System.Web.UI.ControlCollection.Add(Control child)
at
Microsoft.SharePoint.Publishing.PublishingLayoutPage.Onload(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsuncPoint, Boolean includeStageAfterAsyncPoint)
[HttpUnhandleException]: Exception of type
'System.Web.HttpUnhandledException' was thrown.
at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStageBeforeAsyncPoint, Boolean includeStageAfterAyncPoint)...........
thanks
Hello Peter,
Do you have any code blocks in the page like: <%=… %> ?
If so you could try changing them to: <%#… %>.
Let me know if that helps.
Developer Support Engineer II
I already did that but the error is still exist , the thing is I only encounter error when the component is access by the authenticated user and not by anonymouse user
Sorry for the late response .
this is the how I define the captcha on my page
<ig:WebCaptcha ID="wcValidation" runat="server" Width="345px" Height="90px" EnableAjax="false" >
<InputValueEditor NullText="write text from image" Width="175px" ID="_editor"></InputValueEditor>
<SubmitButton Text="Submit" visible="False"></SubmitButton>
</ig:WebCaptcha>
and the error only occur when I use the refresh button of the control
Sorry for taking my response to long,
I tried the sample project and deploy it in normal sharepoint site and the error still exist ,
Please see attached file for the screen shot of the error.
I'm wondering if this could be some setting in web.config ?
kind regards
I’ve tested this on my side but I was unable to reproduce this. Could you test the attached webpart on your side?
Whether or not it works correctly may help indicate the nature of this problem.
If the project does not work correctly, this indicates a problem possibly specific to your environment.
If this sample project is not an accurate demonstration of what you're trying to do, please feel free to modify it and send it back, or send a small sample project of your own if you have one.