I'm using AsyncUpload in a RadGrid
When the User makes the changes to the record I want to Change the filename when it uploads it. The below works for the first row in the radgrid. When I try to update the second row I get object reference not set to an instance of an object.
Am i missing something?
11 Answers, 1 is accepted
You code looks correct. On which line do you receive the exception. Can you paste here the stack-trace so that we can take a look at it?
the Telerik team
The attached is all I get, I can't view the stacktrace. I have an email function that sends emails when the
void Application_Error(object sender, EventArgs e)
is hit, and nothing is fired. This works on everthing else
Is this there anything else I can do to get this to work?
You can obtain a full stack-trace if you temporarily disable the AJAX updates on the page.
If you're using RadAjaxManager set EnableAJAX to "false".
In case you're using update panels set EnablePartialRendering on the ScriptManager to "false":
We should be able to help with the full stack trace at hand.
You should also be aware that there's a known issue with the RadAsyncUpload in the official Q2 release. Our recommendation is to update to internal build 2010.2.722 before continuing.
I hope this helps.
the Telerik team
Server Error in '/AppTest' Application.
Object reference not set to an instance of an object.Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
I tried the way you suggested but it comes up with e.File does not exist which makes sense as e.File exists on the _FileUploaded Event.
used this sample and post for ref :