原始碼:
Dim filename As String = Server.MapPath("./test/" + "a.txt")
File1.PostedFile.SaveAs(filename)//錯在這一行
己確定路徑存在,但找找不到,這是為什麼呢?
錯誤訊息:
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error a
nd where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
--
人 變得不純粹
於是心 也就因無法單純而寂寞
--
※ Origin: 楓橋驛站<bbs.cs.nthu.edu.tw> ◆ From: u13-197.u61-70.giga.net.tw