i get error of "add...
 
Notifications
Clear all

i get error of "add website"

6 Posts
3 Users
0 Reactions
1,249 Views
Posts: 10
Topic starter
(@wonjeonghwan)
Active Member
Joined: 8 years ago

<div style="height:300px;overflow:auto;">Control '~/DesktopModules/SolidCP/WebSitesAddSite.ascx' could not be loaded: System.Web.HttpException (0x80004005): ^([0-9a-z念袍?-Z팻唜?)*[0-9a-z念袍?-Z팻唜?+$ is not a valid regular expression. ---> System.ArgumentException: parsing "^([0-9a-z念袍?-Z팻唜?)*[0-9a-z念袍?-Z팻唜?+$" - Unterminated [] set. <br> at System.Text.RegularExpressions.RegexParser.ScanCharClass(Boolean caseInsensitive, Boolean scanOnly) <br> at System.Text.RegularExpressions.RegexParser.CountCaptures() <br> at System.Text.RegularExpressions.RegexParser.Parse(String re, RegexOptions op) <br> at System.Text.RegularExpressions.Regex..ctor(String pattern, RegexOptions options, TimeSpan matchTimeout, Boolean useCache) <br> at System.Text.RegularExpressions.Regex.IsMatch(String input, String pattern) <br> at System.Web.UI.WebControls.RegularExpressionValidator.set_ValidationExpression(String value) <br> at System.Web.UI.WebControls.RegularExpressionValidator.set_ValidationExpression(String value) <br> at ASP.desktopmodules_solidcp_websitesaddsite_ascx.__BuildControlvalRequireCorrectHostName() <br> at ASP.desktopmodules_solidcp_websitesaddsite_ascx.__BuildControlTree(desktopmodules_solidcp_websitesaddsite_ascx __ctrl) <br> at System.Web.UI.TemplateControl.LoadControl(IWebObjectFactory objectFactory, VirtualPath virtualPath, Type t, Object[] parameters) <br> at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) <br> at SolidCP.WebPortal.DefaultPage.AddModuleToContentPane(Control pane, PageModule module, String ctrlKey, Boolean editMode)</div>

5 Replies
Posts: 10
Topic starter
(@wonjeonghwan)
Active Member
Joined: 8 years ago

SolidCP version 1.2.0

my server's file >> WebsitesAddSite.ascx

<asp:RegularExpressionValidatorID="valRequireCorrectHostName"runat="server"
     ErrorMessage="Enter valid hostname" ControlToValidate="txtHostName" Display="Dynamic"
     meta:resourcekey="valRequireCorrectHostName" ValidationExpression="^([0-9a-z�����A-Z�����])*[0-9a-z�����A-Z�����]+$" SetFocusOnError="True"></asp:RegularExpressionValidator>
</div>

modified ValidationExpression
^([0-9a-zA-Z])*[0-9a-zA-Z]+$

Reply
Posts: 10
Topic starter
(@wonjeonghwan)
Active Member
Joined: 8 years ago

The same WebsitesAddPointer.ascx

Reply
Posts: 10
Topic starter
(@wonjeonghwan)
Active Member
Joined: 8 years ago

I don't know why the "ValidationExpression" was broken.

Reply
Posts: 1995
Admin
(@m-tiggelaar)
Noble Member
Joined: 9 years ago

Basically the validationexpression doesn't have special international chars by default.

You might be able to adjust it to:

http://stackoverflow.com/questions/11983656/how-can-we-use-asp-net-regularexpressionvalidator-for-multilanguage-support

If you can test that answer out and let me know i can change it in the source so you no longer need to manually adjust it.

Reply
Page 1 / 2
Share: