web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

EP The referenced file is not allowed on this page

(0) ShareShare
ReportReport
Posted on by 3,155

Woke up this morning to this error out of EP:

pastedimage1601995567475v1.png

I'm not sure what the problem here is.

I have the same question (0)
  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi Bradly,

    Did you try doing an IISRESET on the SharePoint server? Can you also check the event viewer on the server for any more details?

  • b_radlyjames Profile Picture
    3,155 on at

    Gunjan,

    We tried IISRESET, but it didn't work.

    Here is a more detailed error:

    pastedimage1601997854371v1.png

    I will check the error log as well.

    Brad

  • b_radlyjames Profile Picture
    3,155 on at

    Here is the event log warning:

    Event code: 3006

    Event message: A parser error has occurred.

    Event time: 10/6/2020 8:18:51 AM

    Event time (UTC): 10/6/2020 3:18:51 PM

    Event ID: 7b002b4d3214482e96854985810d02d2

    Event sequence: 34

    Event occurrence: 5

    Event detail code: 0

    Application information:

       Application domain: /LM/W3SVC/85053772/ROOT-1-132464707881381399

       Trust level: Full

       Application Virtual Path: /

       Application Path: C:\inetpub\wwwroot\wss\VirtualDirectories\80\

       Machine name: VR00SP201406A59

    Process information:

       Process ID: 3700

       Process name: w3wp.exe

       Account name: myDomain\businessconnectoraccount

    Exception information:

       Exception type: HttpParseException

       Exception message: The referenced file '/_layouts/ep/EPSecurityControl.ascx' is not allowed on this page.

      at System.Web.UI.TemplateParser.ProcessException(Exception ex)

      at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding)

      at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding)

      at System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath)

      at System.Web.UI.TemplateParser.ParseInternal()

      at System.Web.UI.TemplateParser.Parse()

      at System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType()

      at System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider)

      at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders()

      at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()

      at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)

      at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)

      at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)

      at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound)

      at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp)

      at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)

      at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

      at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)

      at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

    The referenced file '/_layouts/ep/EPSecurityControl.ascx' is not allowed on this page.

      at System.Web.UI.TemplateParser.ProcessException(Exception ex)

      at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding)

      at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding)

    The referenced file '/_layouts/ep/EPSecurityControl.ascx' is not allowed on this page.

      at System.Web.UI.TemplateParser.ProcessError(String message)

      at System.Web.UI.BaseTemplateParser.GetReferencedType(VirtualPath virtualPath, Boolean allowNoCompile)

      at System.Web.UI.BaseTemplateParser.GetUserControlType(VirtualPath virtualPath)

      at System.Web.UI.MainTagNameToTypeMapper.ProcessUserControlRegistration(UserControlRegisterEntry ucRegisterEntry)

      at System.Web.UI.BaseTemplateParser.ProcessDirective(String directiveName, IDictionary directive)

      at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding)

    Request information:

       Request URL: myEP.com:443/.../default.aspx

       Request path: /sites/DynamicsAx/default.aspx

       User host address: 10.0.0.163

       User: 0#.w|mydomain\myaccount

       Is authenticated: True

       Authentication Type: Federation

       Thread account name: myDomain\businessconnectoraccount

    Thread information:

       Thread ID: 26

       Thread account name: myDomain\businessconnectoraccount

       Is impersonating: False

       Stack trace:    at System.Web.UI.TemplateParser.ProcessException(Exception ex)

      at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding)

      at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding)

      at System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath)

      at System.Web.UI.TemplateParser.ParseInternal()

      at System.Web.UI.TemplateParser.Parse()

      at System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType()

      at System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider)

      at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders()

      at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()

      at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)

      at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)

      at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)

      at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound)

      at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp)

      at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)

      at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

      at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)

      at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

    Custom event details:

  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi Bradley,

    Will it be possible for you to restart Sharepoint services and check if that takes care of the issue?

    It's a caching issue that we have seen before. Mostly we used to restart the server hosting SharePoint.

  • Suggested answer
    Andre Ghazaleh Profile Picture
    870 on at

    Hi bRradlyJames ,

    Did you recently install any security updates for Sharepoint? If so then this might be the reason:

    In sharepoint september 2020 Cu, new security rules were added :“allowServerSideScript=false” & “allowUnsafeControls=false” ,  It affects Sharepoint 2019 , 2016 , 2013 & 2010.

    more info:  support.microsoft.com/.../security-update-for-sharepoint-foundation-2010-sept-8-2020

  • b_radlyjames Profile Picture
    3,155 on at

    Andre,

    Funny you bring that up.  I just checked a few minutes before your comment and a bunch of security updates came through yesterday. I'll have to uninstall those...?

    Brad

  • Verified answer
    Andre Ghazaleh Profile Picture
    870 on at

    Try this :

    In SharePoint web.config, find <SafeMode> tag

    Add this entry

    <PageParserPath VirtualPath="/*" CompilationMode="Always" AllowServerSideScript="true" AllowUnsafeControls="true" IncludeSubFolders="true"></PageParserPath>

    you will have something like this:

    <SafeMode ControlCompatMode="true" MaxControls="200" CallStack="false" DirectFileDependencies="10" TotalFileDependencies="250" AllowPageLevelTrace="false">
    <PageParserPaths>
    <PageParserPath VirtualPath="/*" CompilationMode="Always" AllowServerSideScript="true" AllowUnsafeControls="true" IncludeSubFolders="true"></PageParserPath>
    </PageParserPaths>
    </SafeMode>

    Hope this fixes your problem

  • b_radlyjames Profile Picture
    3,155 on at

    Andre,

    That did it!  You are a life saver!  We are back up and running!  Thank you SOOOO much!

    Brad

  • Andre Ghazaleh Profile Picture
    870 on at

    You're welcome, glad this fixed your problem.

    Regards

  • Khurshid Wali Profile Picture
    928 on at

    Hi Andre Ghazaleh,

    Is it safe and recommended method?

    pastedimage1602138846171v1.png

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 659 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 533 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 289 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans