Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Script Ressource exception View modes: 
User avatar
Member
Member
francis.harvey-irisco - 12/6/2010 2:52:26 PM
   
Script Ressource exception
I'm getting error like this, can someone tell me what happen and how to resolve it ?

Thanks a lot.



EventID: 167134

EventType: E

EventTime: 11/27/2010 9:11:41 PM

Source: Application_Error

EventCode: EXCEPTION

UserID: 65

UserName: public

IPAddress: 999.999.999.999
EventDescription: Message: This is an invalid script resource request.
Stack Trace:
at System.Web.Handlers.ScriptResourceHandler.ProcessRequest(HttpContext context)
at System.Web.Handlers.ScriptResourceHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)


Site: dfgdfgdf sdfgd

EventUrl: /ScriptResource.axd?d=GTEkt5s_iwKB-mReTUTH6lVnzvjGfKLIpDzay1qedTj84p-zG1erck9VHYJviQt0VfJAq3X9SEBpBCaHQrgu2wEib4E2HZ7%20class=

EventMachineName: SBS2008

EventUserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.6; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; InfoPath.2)

EventUrlReferrer: http://www.dsfgsdfg.com/Home.aspx


User avatar
Member
Member
francis.harvey-irisco - 12/6/2010 3:52:37 PM
   
RE:Script Ressource exception
Sometimes, a web resource exception happen instead of script resource exception

Thanks

User avatar
Kentico Support
Kentico Support
kentico_radekm - 12/7/2010 1:33:23 AM
   
RE:Script Ressource exception
Hello.

What build number do you have - I mean what is the last hotfix you applied? Could you please apply the latest one?

When this exception is logged? What are the steps leading to it? What was the last action before this issue appeared for the first time?

Are you using any custom (or third-party) javascripts / AJAX ? Thank you.

Best Regards,
Radek Macalik

User avatar
Member
Member
francis.harvey-irisco - 6/23/2011 10:39:17 AM
   
RE:Script Ressource exception
Hi Radek,

This happen only on client / external user machine,

I'm unable to reproduce the problem but now it seem to happen very often,

I Upgraded to 5.5 R2 some time ago, here's the build number v5.5.4027 R2.

Now I get 'Invalid web resource request', 'Invalid ViewState',

'An existing connection was forcibly closed by the remote host'
Stack Trace:
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)

'The script tag registered for type 'System.String' and key 'CMSTags' has invalid characters outside of the script tags: <div><input type="hidden" name="lng" id="lng" value="fr-CA" />
</div>. Only properly formatted script tags can be registered.'
Stack Trace:
at System.Web.UI.ScriptRegistrationManager.WriteScriptWithTags(HtmlTextWriter writer, String token, RegisteredScript activeRegistration)
at System.Web.UI.ScriptRegistrationManager.RenderActiveScriptBlocks(List`1 updatePanels, HtmlTextWriter writer, String token, List`1 scriptRegistrations)
at System.Web.UI.PageRequestManager.ProcessScriptRegistration(HtmlTextWriter writer)
at System.Web.UI.PageRequestManager.RenderPageCallback(HtmlTextWriter writer, Control pageControl)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.Page.Render(HtmlTextWriter writer)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Can you help me on this ?

User avatar
Kentico Support
Kentico Support
kentico_radekm - 7/2/2011 6:08:11 PM
   
RE:Script Ressource exception
Hello.

According to stack-trace and errors you are receiving, I would focus on ASP.NET public articles, as these errors seems to be .NET/environment related.

As for “An existing connection was forcibly closed by the remote host” error, I found many articles and forum thread and also official Microsoft knowledge-base articles, for example:

http://www.sqlservercurry.com/2009/07/resolving-error-existing-connection-was.html
http://social.msdn.microsoft.com/Forums/hu-HU/netfxnetcom/thread/81690f44-70be-4f09-b8fb-2017f29b592b
http://forums.iis.net/t/1146096.aspx
(Can be found more on Google.com.)

As for “Invalid viewstate” error, please see one of these:

http://support.microsoft.com/kb/555353 (official MS KB article).
http://community.discountasp.net/showthread.php?t=2719
http://www.west-wind.com/weblog/posts/2005/Jul/16/Invalid-ViewState

As for “This is an invalid script resource request” error message, I am not sure this is being caused by Kentico, it looks like the exception is from an external source. Unfortunately, it is pretty hard to say what could be causing this issue. There are lots of discussions on the internet regarding this issue and many of them have completely different solutions.

Could you please try to read following article for a possible explanation?
http://stackoverflow.com/questions/626301/webresource-axd-requested-without-parameters-this-is-an-invalid-webresource-req

Are you using some 3rd party control for example like Telerik which could cause this issue?
http://www.telerik.com/community/forums/aspnet-ajax/ajax/quot-this-is-an-invalid-webresource-request-quot-exception.aspx
http://stackoverflow.com/questions/2184197/this-is-an-invalid-webresource-request-javascript-datetimepicker

This does not look like a big issue and you could stop logging such a harmless exception in the ~\App_Code\Global.asax.cs file in LogLastApplicationError method, similar as it is described in following article:
www.telerik.com/community/forums/aspnet/spell/this-is-an-invalid-webresource-request.aspx


Best Regards,
Radek Macalik