我有一些代码,当它执行时,它抛出一个NullReferenceException,说:
NullReferenceException
你调用的对象是空的.
这是什么意思,我该怎么做才能解决这个错误?
.net c# vb.net null nullreferenceexception
在我的ASP.NET应用程序的启动代码(即没有请求)中,我需要获取应用程序根目录的路径.我需要这个打开我在根目录下的文件夹中的文件.
我怎么能得到这个?
asp.net
.net ×1
asp.net ×1
c# ×1
null ×1
nullreferenceexception ×1
vb.net ×1