This is a migrated thread and some comments may be shown as answers.

NullReferenceException with Telerik.Web.UI.WebResource.axd

5 Answers 237 Views
ScriptManager and StyleSheetManager
This is a migrated thread and some comments may be shown as answers.
Mohammed Imaduddin
Top achievements
Rank 1
Mohammed Imaduddin asked on 23 Mar 2010, 04:07 PM

I have noticed that my Event Viewer is being filled up with the following warnings, complaining about NullReferenceException. Can someone tell me what could be causing this, and what can I do to fix them?

Thanks,

Event Type: Warning  
Event Source:   ASP.NET 2.0.50727.0  
Event Category: Web Event   
Event ID:   1309  
Date:       3/23/2010  
Time:       9:45:05 AM  
User:       N/A  
Computer:   WEBPC  
Description:  
Event code: 3005   
Event message: An unhandled exception has occurred.   
Event time: 3/23/2010 9:45:05 AM   
Event time (UTC): 3/23/2010 2:45:05 PM   
Event ID: ac0df0b9829a4b0796ff2693875efb70   
Event sequence: 261544   
Event occurrence: 1492   
Event detail code: 0   
   
Application information:   
    Application domain: /LM/W3SVC/2/Root-1-129137505216865130   
    Trust level: Full   
    Application Virtual Path: /   
    Application Path: C:\Inetpub\wwwroot\WEBPC\WebSite\   
    Machine name: WEBPC   
   
Process information:   
    Process ID: 7480   
    Process name: w3wp.exe   
    Account name: NT AUTHORITY\NETWORK SERVICE   
   
Exception information:   
    Exception type: NullReferenceException   
    Exception message: Object reference not set to an instance of an object.   
   
Request information:   
    Request URL: http://www.thegreensheet.com/Telerik.Web.UI.WebResource.axd?imgid=2b66498078e24ceab80cfe456aff0d17&type=rbi   
    Request path: /Telerik.Web.UI.WebResource.axd   
    User host address: 928.54.83.66   
    User: default\Anonymous   
    Is authenticated: False   
    Authentication Type:    
    Thread account name: NT AUTHORITY\NETWORK SERVICE   
   
Thread information:   
    Thread ID: 7   
    Thread account name: NT AUTHORITY\NETWORK SERVICE   
    Is impersonating: False   
    Stack trace:    at Telerik.Web.UI.RadBinaryImageHandler.ProcessRequestInternal()  
   at Telerik.Web.UI.HandlerRouter.ProcessHandler(String handlerKey, HttpContext context)  
   at Telerik.Web.UI.WebResource.ProcessRequest(HttpContext context)  
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()  
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) 

5 Answers, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 26 Mar 2010, 07:50 AM
Hello Mohammed,

The error you are getting is most probably raised when the RadBinaryImage's data is accessed after it is removed from the server's cache. Usually this happens 5 minutes after  the image is shown and the client does not have browser cache enabled. Another possible reason can be if you are in load balancing environment such as web farm or web garden.

Best wishes,
Rosen
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
OL
Top achievements
Rank 1
answered on 13 Oct 2010, 04:54 PM
Hello,
I have exactly the same problem. It's a bit annoying because it is quite common in my application log (I log errors from my Global.asax's Application_Error). What can we do to solve this problem with the RadBinaryImage?
Thank you.
0
Veli
Telerik team
answered on 19 Oct 2010, 09:13 AM
Hi OL,

I am unable to reproduce any exception from RadBinaryImage's HTTP handler. If you can provide us with a sample project we can test locally and reproduce the exception in, we can take action accordingly. If you want to upload a project, please open a regular support ticket and send your attachment, referring to this forum thread.

Alternatively, providing any further info about the exception may be of help.


Veli
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Chanan Zass
Top achievements
Rank 1
answered on 03 Jul 2011, 05:38 PM
Errors are registered upon site crawling by such search engines as Google and Yahoo (which don't like sessions and cache.
Can't think of a solution, except substituting RadBinaryImages.

0
Chanan Zass
Top achievements
Rank 1
answered on 03 Jul 2011, 06:05 PM
Should add that this can become a grave problem if you set the application pool in IIS Manager to be disabled when reaching a certain number of failures.
Not very nice as your site will become unavailable.


Tags
ScriptManager and StyleSheetManager
Asked by
Mohammed Imaduddin
Top achievements
Rank 1
Answers by
Rosen
Telerik team
OL
Top achievements
Rank 1
Veli
Telerik team
Chanan Zass
Top achievements
Rank 1
Share this question
or