Subscribe to Subscribers
Talk to Webmaster Tony John


Forums » .NET » ASP.NET »

Object reference not set to an instance of an object.


Posted Date: 22 Aug 2008      Posted By:: Arunkumar     Member Level: Silver    Member Rank: 3287     Points: 1   Responses: 2



Hi,

I coded for downloading the file in chunks using the reference article on msdn

http://support.microsoft.com/kb/812406/

..
Used Response.OutputStream.Write(buffer, 0, length);
..

After download completion, i have tracked how many bytes transferred and put it in a variable. But I could not assign it to any control like label,placeholder..etc. It gives me this error "Object reference not set to an instance of an object."

Thanks in Advance,
Arun.




Responses

#284758    Author: Kiran Kumar      Member Level: Gold      Member Rank: 1318     Date: 22/Aug/2008   Rating: 2 out of 52 out of 5     Points: 3

As per my knowledge the file is not getting read by the filestream. Is the file located at the place. Just go thru the debug method step by step and send the status what's coming.

Thanks,
Kiran Kumar T.



 
#284771    Author: Arunkumar      Member Level: Silver      Member Rank: 3287     Date: 22/Aug/2008   Rating: 2 out of 52 out of 5     Points: 3

I have downloaded avi file around 100MB. File downloaded successfully. After download, I need to display how much bytes transferred, that value is in a variable. But web controls gives error "Object-reference-not-set-an-instance-an-object".


 
Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.



Next : deletion of rows from datagrid at the time of binding(no data in the rows)
Previous : How to display image in gridview
Return to Discussion Forum
Post New Message
Category:

Related Messages



Follow us on Twitter: https://twitter.com/dotnetspider

Active Members
TodayLast 7 Daysmore...

Awards & Gifts
Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
2005 - 2012 All Rights Reserved.
.NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
Articles, tutorials and all other content offered here is for educational purpose only.
We are not associated with Microsoft or its partners.