本文介绍了'/'应用程序中的服务器错误。你调用的对象是空的。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将数据添加到我网站上的网络文件中,但我收到此错误:

I'm trying to add data into file on web in my site but I get this error:

Stack Trace: 


[NullReferenceException: Object reference not set to an instance of an object.]
   WebApplication1.addnews.Button3_Click(Object sender, EventArgs e) in C:\Users\MONZER\Desktop\Karary Web Site\WebApplication1\addnews.aspx.vb:30
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +9815014
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +204
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +12
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +15
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +35
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1639





我尝试了什么:



重新上传网站和文件!



What I have tried:

re-upload the site and the file !

推荐答案


这篇关于'/'应用程序中的服务器错误。你调用的对象是空的。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-03 02:57