2014年7月13日 星期日

[RESOLVED] An unhandled exception occurred during the execution of the current web request


Hi,

When the project is being called, I get this





Server Error in '/App9' Application.

--------------------------------------------------------------------------------





Buffer cannot be null.

Parameter name: buffer

  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.ArgumentNullException: Buffer cannot be null.

Parameter name: buffer



Source Error:





 An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  



Stack Trace:







[ArgumentNullException: Buffer cannot be null.

Parameter name: buffer]

   System.IO.MemoryStream..ctor(Byte[] buffer, Boolean writable) +14187065

   App9.Detail.Page_Load(Object sender, EventArgs e) +3136

   System.Web.UI.Control.LoadRecursive() +71

   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3178



 





--------------------------------------------------------------------------------

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18044 




Why?



Any help?



Any help?



Hi,


Please try to put a breakpoint and debug your code line by line.


Because you do not provide your code here, please try to refer to these similar threads:


http://social.msdn.microsoft.com/Forums/vstudio/en-US/b0f809ee-e673-4b23-9189-48bca44e45e3/buffer-cannot-be-null.


http://stackoverflow.com/questions/1892591/buffer-cannot-be-null-parameterbuffer.


http://www.dreamincode.net/forums/topic/308658-buffer-cannot-be-null/ .


Hope it can help you.


Best Regards,

Amy Peng 


 


沒有留言:

張貼留言