Bug reports Found a bug? Post it here please.
Version 6.x > Bug reports > URLScan 3.1 error View modes: 
User avatar
Member
Member
webmaster-czs - 2/13/2013 3:03:29 PM
   
URLScan 3.1 error
We recently enabled Content Redirection in URLScan 3.1 on our IIS 6 server. I have filtered out (whitelisted) all of the pages that have Insert, Select, etc in the URL/file name.

That said, I am getting a .NET error when trying to add a YouTube video to an editable text box:

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS1501: No overload for method 'IsClientScriptBlockRegistered' takes '2' arguments

Source Error:


Line 247: this.ltlYouTube.Text = MediaHelper.GetYouTubeVideo(ytParams);
Line 248:
Line 249: if (!ScriptHelper.IsClientScriptBlockRegistered(Page, "YouTubeUnload"))
Line 250: {
Line 251: string script = ScriptHelper.GetScript("window.onbeforeunload = function(){\n var ytEmbeds = document.getElementsByTagName('embed'); if (ytEmbeds.length > 0) {\n for (var i = 0; i < ytEmbeds.length; i++){\n ytEmbeds.parentNode.removeChild(ytEmbeds);}}}");


Source File: e:\BZWEB\mywaterfootprint.org\Staged\CMSInlineControls\YouTubeControl.ascx.cs Line: 249

User avatar
Kentico Consulting
Kentico Consulting
kentico_josefd - 2/19/2013 3:44:41 AM
   
RE:URLScan 3.1 error
Hello,

Should anyone else be reading this thread. We have tried to resolve this issue via email. I was unable to find the code from the error message in the default ~\CMSInlineControls\YouTubeControl.ascx.cs control, it seems to be a custom code.

The error message does not seem related to URLScan, it says there are too many parameters for ScriptHelper.IsClientScriptBlockRegistered(). Try removing one of the parameters (Page) and see if the issue persists.

Regards,
Josef Dvorak