|
請問一下,小弟用vwd2005在執行範例時發生下列問題: 例外詳細資訊: System.NullReferenceException: 並未將物件參考設定為物件的執行個體
原始程式錯誤:
行 12: Dim user As MembershipUser 行 13: user = Membership.GetUser(Context.User.Identity.Name) 行 14: Dim email As String = user.Email 行 15: Dim ads As New AccessDataSource("~/App_data/member.mdb", "") 行 16: ads.InsertCommand = "Insert into memberData (m_username, m_sex, m_email, m_birthday, m_real) VALUES ('" & Context.User.Identity.Name & "', 'm', '" & email & "', '1980/1/1', false)" 如果是開啟範例資料夾執行雖然沒問題,但是小弟自行照做一遍卻出現上述問題,請指教。
|