Server Error in '/' Application.

Invalid SQL query in property "wherecondition".

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: Invalid SQL query in property "wherecondition".

Source Error:


Line 33:         get
Line 34:         {
Line 35:             return ValidationHelper.GetString(GetValue("WhereCondition"), srcUsers.WhereCondition);
Line 36:         }
Line 37:         set

Source File: D:\inetpub\wwwroot\TRSv12\CMS\CMSWebParts\Membership\Users\UsersViewer.ascx.cs    Line: 35

Stack Trace:


[InvalidOperationException: Invalid SQL query in property "wherecondition".]
   CMS.PortalEngine.Web.UI.CMSAbstractWebPart.GetValueInternal(String propertyName, Boolean resolveMacros) +1636
   CMSWebParts_Membership_Users_UsersViewer.get_WhereCondition() in D:\inetpub\wwwroot\TRSv12\CMS\CMSWebParts\Membership\Users\UsersViewer.ascx.cs:35
   CMSWebParts_Membership_Users_UsersViewer.SetupControl() in D:\inetpub\wwwroot\TRSv12\CMS\CMSWebParts\Membership\Users\UsersViewer.ascx.cs:721
   CMSWebParts_Membership_Users_UsersViewer.OnContentLoaded() in D:\inetpub\wwwroot\TRSv12\CMS\CMSWebParts\Membership\Users\UsersViewer.ascx.cs:671
   CMS.PortalEngine.Web.UI.CMSWebPartZone.OnContentLoaded() +158
   CMS.PortalEngine.Web.UI.CMSAbstractLayout.OnContentLoaded() +165
   CMS.PortalEngine.Web.UI.CMSAbstractLayout.LoadWebPartsContent(Boolean reloadData) +305
   CMS.PortalEngine.Web.UI.CMSAbstractLayout.LoadContent(PageInfo pageInfo, Boolean reloadData, Boolean allowOrphanedZones) +875
   CMS.PortalEngine.Web.UI.CMSPagePlaceholder.LoadContent(PageInfo pageInfo, Boolean reloadData) +1938
   CMS.PortalEngine.Web.UI.CMSPagePlaceholder.LoadContent(PageInfo pageInfo, Boolean reloadData) +2751
   CMS.PortalEngine.Web.UI.CMSPortalManager.LoadPage(Boolean reloadData) +233
   CMS.PortalEngine.Web.UI.CMSPortalManager.PageHelper_InitComplete(Object sender, EventArgs e) +29
   CMS.Base.Web.UI.PageContext.CurrentPage_InitComplete(Object sender, EventArgs e) +280
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Page.OnInitComplete(EventArgs e) +141
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2203


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