Server Error in '/' Application.

Security Exception

Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: An invalid SQL query was used.

Source Error:


Line 255:        get
Line 256:        {
Line 257:            return ValidationHelper.GetString(GetValue("WhereCondition"), "");
Line 258:        }
Line 259:        set

Source File: C:\inetpub\wwwroot\KenticoTrees\CMS\CMSWebParts\DataSources\DocumentsDataSource.ascx.cs    Line: 257

Stack Trace:


[SecurityException: An invalid SQL query was used.]
   CMS.PortalEngine.Web.UI.CMSAbstractWebPart.GetValueInternal(String propertyName, Boolean resolveMacros) +1419
   CMS.PortalEngine.Web.UI.CMSAbstractWebPart.GetValue(String propertyName) +7
   CMSWebParts_DataSources_DocumentsDataSource.get_WhereCondition() in C:\inetpub\wwwroot\KenticoTrees\CMS\CMSWebParts\DataSources\DocumentsDataSource.ascx.cs:257
   CMSWebParts_DataSources_DocumentsDataSource.SetupControl() in C:\inetpub\wwwroot\KenticoTrees\CMS\CMSWebParts\DataSources\DocumentsDataSource.ascx.cs:391
   CMSWebParts_DataSources_DocumentsDataSource.OnContentLoaded() in C:\inetpub\wwwroot\KenticoTrees\CMS\CMSWebParts\DataSources\DocumentsDataSource.ascx.cs:360
   CMS.PortalEngine.Web.UI.CMSWebPartZone.OnContentLoaded() +122
   CMS.PortalEngine.Web.UI.CMSAbstractLayout.OnContentLoaded() +118
   CMS.PortalEngine.Web.UI.CMSAbstractLayout.LoadWebPartsContent(Boolean reloadData) +247
   CMS.PortalEngine.Web.UI.CMSAbstractLayout.LoadContent(PageInfo pageInfo, Boolean reloadData, Boolean allowOrphanedZones) +780
   CMS.PortalEngine.Web.UI.CMSPagePlaceholder.LoadContent(PageInfo pageInfo, Boolean reloadData) +1610
   CMS.PortalEngine.Web.UI.CMSPagePlaceholder.LoadContent(PageInfo pageInfo, Boolean reloadData) +2260
   CMS.PortalEngine.Web.UI.CMSPortalManager.LoadPage(Boolean reloadData) +221
   CMS.PortalEngine.Web.UI.CMSPortalManager.PageHelper_InitComplete(Object sender, EventArgs e) +26
   CMS.Base.Web.UI.PageContext.CurrentPage_InitComplete(Object sender, EventArgs e) +238
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Page.OnInitComplete(EventArgs e) +9853374
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6796
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +250
   System.Web.UI.Page.ProcessRequest() +76
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +24
   System.Web.UI.Page.ProcessRequest(HttpContext context) +62
   ASP.cmspages_portaltemplate_aspx.ProcessRequest(HttpContext context) +37
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +195
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +50
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +73


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