怎么会出现 System.NullReferenceException 我用的vb
try
dim filename,filepath as string
filename=path.getfilename(uploadfile.postedfile.filename)
filepath=server.mappath("file")& "\" & filename
uploadfile.postedfile.saveas(filepath)
response.redirect("../isOk.htm")
catch exc
message.text ="保存文件时出错<br>" & exc.tostring()
end try
保存文件时出错
System.NullReferenceException: 未将对象引用设置到对象的实例。 at ASP.manioadd_aspx.enter_click(Object sender, EventArgs e) in D:\My Documents\ibm_gongda\ig_web\fnc\manioadd.aspx:line 7