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

Sporadic NullReferenceException with RadAsyncUpload

4 Answers 138 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
John af P
Top achievements
Rank 2
John af P asked on 28 Feb 2012, 02:19 PM
Im getting sporadic NullReferenceExceptions when RadAsyncUpload requests Telerik.Web.UI.WebResource.axd.

I have getting error reports from some users of the site that they where not able to use the upload function. They get a javascript error... I have not been able to reproduce this but i am curious if this error could have anything to do with it.

Here is the trace from event log:

Event Type: Warning
Event Source: ASP.NET 2.0.50727.0
Event Category: Web Event 
Event ID: 1309
Date: 2012-02-28
Time: 10:25:30
User: N/A
Computer: D02AR1SWB059
Description:
Event code: 3005 
Event message: An unhandled exception has occurred. 
Event time: 2012-02-28 10:25:30 
Event time (UTC): 2012-02-28 09:25:30 
Event ID: 8ab94a43ea0443cb8a32b31a53089e36 
Event sequence: 709758 
Event occurrence: 50 
Event detail code: 0 
 
Application information: 
    Application domain: /LM/W3SVC/1075933917/ROOT-1-129748762032813225 
    Trust level: Full 
    Application Virtual Path: / 
    Application Path: C:\Apps\405000\WebSites\PublicWeb\ 
    Machine name: D02AR1SWB059 
 
Process information: 
    Process ID: 3672 
    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.mysite.com/Telerik.Web.UI.WebResource.axd?type=rau 
    Request path: /Telerik.Web.UI.WebResource.axd 
    User host address: XX.XX.XXX.XXX 
    User:  
    Is authenticated: False 
    Authentication Type:  
    Thread account name: NT AUTHORITY\NETWORK SERVICE 
 
Thread information: 
    Thread ID: 13 
    Thread account name: NT AUTHORITY\NETWORK SERVICE 
    Is impersonating: False 
    Stack trace:    at Telerik.Web.UI.AsyncUploadHandler.ProcessRequest(HttpContext context)
   at Telerik.Web.UI.HandlerRouter.ProcessHandler(String handlerKey, HttpContext context)
   at Telerik.Web.UI.HandlerRouter.ProcessHandler(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)
 
 
Im using 2011.3.1115.35.

4 Answers, 1 is accepted

Sort by
0
Dimitar Terziev
Telerik team
answered on 05 Mar 2012, 10:24 AM
Hello,

I've inspected the stack trace provide, but frankly we haven't seen such problem before.The key aspect of the problem is the fact that this error is only reproduced with certain users and not all of them. Could you please elaborate a bit more on what exactly is the nature of your website and whether there is anything specific with the RadAsyncUpload. Also do you use multithreading since such error might occur if concurrent threads are trying to access the HttpContext object.

Greetings,
Dimitar Terziev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
John af P
Top achievements
Rank 2
answered on 06 Mar 2012, 01:01 AM
The user goes through a registration process in which they have the option to upload a document/file. They click a "next" button on which i save the data entered including the document to session. They then see a confirmation page and click register after which i save the stuff to DB.

I'm not running any multithreading, more then the web server itself in w3wp process.

Running on IIS 6 with radcompression if this could make any difference.  

/John
0
Bozhidar
Telerik team
answered on 09 Mar 2012, 12:03 PM
Hello John,

There doesn't seem to be an obvious problem in the scenario that you've described. Unfortunately there's nothing we can do at this point without a sample project or a live Url reproducing the issue, that we can test locally.

Please excuse us for any inconvenience caused.

Regards,
Bozhidar
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
John af P
Top achievements
Rank 2
answered on 12 Apr 2012, 10:49 AM
The users that had problems uploading had nothing to do with the "NullReferenceException".

There where two issues:
  1.  Validation failed for no apparent reason. The reason behind this was because they tried to upload a file that was open on the  desktop. It only failed  in the Silverlight module (IE).
     Solution: Disable the silverlight module.
  2. Upload "stalls", only the blinking yellow dot shows. http://www.youtube.com/watch?v=ZpkVOsTqCNU&feature
    Seems to be a problem with the flash module (IE). I have the site under Anonymous authentication:
    http://www.telerik.com/community/forums/aspnet-ajax/async-upload/solution-upload-fails-or-login-prompt-appears-when- using-forms-windows-authentication. I don't know why this happens.I would be glad to help you replicate this.
    Solution: Disable the flash module.

/John
Tags
AsyncUpload
Asked by
John af P
Top achievements
Rank 2
Answers by
Dimitar Terziev
Telerik team
John af P
Top achievements
Rank 2
Bozhidar
Telerik team
Share this question
or