Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

有關上傳

0 views
Skip to first unread message

嫁個有錢人

unread,
Oct 27, 2002, 1:41:47 AM10/27/02
to
我在.net寫了二行上傳程式,一直有錯…
是需要做什麼其他設定嗎?

原始碼:
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

0 new messages