Server Error in '/' Application.

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: The control type 'System.Web.UI.WebControls.RegularExpressionValidator' is not allowed on this page. The type System.Web.UI.WebControls.RegularExpressionValidator, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a could not be found or it is not registered as safe.

Source Error:


Line 434:                                                    <asp:RequiredFieldValidator runat="server" ErrorMessage="Required" 
Line 435:                                                        id="RequiredFieldValidator9" ControlToValidate="txtEmail" class="style1"></asp:RequiredFieldValidator>
Line 436:                                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmail"
Line 437:                                                        ErrorMessage="Error Format" 
Line 438:                                                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Width="100%" class="style1"></asp:RegularExpressionValidator></td>

Source File: /en/petraschool/reg/reg.aspx    Line: 436


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.4087.0