Skip to main content

"Report scripts were found in the application while the script execution is denied"

  • February 15, 2021
  • 4 replies
  • 978 views

Forum|alt.badge.img+15

Suddenly we had the following error (displayed as information?) in our webgui (2020.2.22) hosted on Azure:

Error Report scripts were found in the application while the script execution is denied

I have absolutely no clue by what this error is caused. We haven't done any application or webgui updates. I’ve restarted the app service and the error disappeared.

We have a DevExpress report with a before print event which is probably causing this error.

Anyone familiar with this? I want to know what is causing this error.

 

Did this topic help you find an answer to your question?
This topic has been closed for comments

4 replies

Mark Jongeling
Administrator
Forum|alt.badge.img+23

Hi René,

This is an error that more DevExpress users have experienced. According to https://supportcenter.devexpress.com/ticket/details/t453946/report-scripts-were-found-in-the-application-while-the-script-execution-is-denied# there might be a solution for it.

You can try adding the following to the global.asax file:

ScriptPermissionManager.GlobalInstance = new CustomScriptPermissionManager(ExecutionMode.Unrestricted);

Be sure to keep a backup so in case it doesn’t work, you can return to the original global.asax.


Forum|alt.badge.img+15
  • Author
  • Superhero
  • 196 replies
  • February 15, 2021
Mark Jongeling wrote:

Hi René,

This is an error that more DevExpress users have experienced. According to https://supportcenter.devexpress.com/ticket/details/t453946/report-scripts-were-found-in-the-application-while-the-script-execution-is-denied# there might be a solution for it.

You can try adding the following to the global.asax file:

ScriptPermissionManager.GlobalInstance = new CustomScriptPermissionManager(ExecutionMode.Unrestricted);

Be sure to keep a backup so in case it doesn’t work, you can return to the original global.asax.

Hi Mark,

I think it's a bit tricky to change files which we don't own / developed. I cannot foresee the consequences of such changes so I don't prefer to do that.

Br, René


Mark Jongeling
Administrator
Forum|alt.badge.img+23

TCP issue reported for this issue


Mark Jongeling
Administrator
Forum|alt.badge.img+23

Issue has been closed as it couldn't be replicated anymore.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings