Re: [.NET] 發行的問題

看板Visual_Basic作者 (大噓魔人)時間18年前 (2007/09/20 10:55), 編輯推噓1(101)
留言2則, 1人參與, 最新討論串2/2 (看更多)
不好意思,我的問題還是沒有解決 所以我把問題再詳細的講一便 請各位大大幫幫我阿!!! 我是用VS2005寫的ASP.NET網頁 基本上程式本身在IIS測試下是沒有問題的 可是放到網路上,卻ㄧ直出現錯誤信息 http://www.wretch.cc/album/dashmoment 裡面的相片是網頁上出現的錯誤訊息 還有我的Web.config檔的原始檔 FTP:66.197.198.204 ID:dashmoment password:jasoncpu 上面是那個網頁的上傳空間 裡面有個Website1的資料夾有網站的原始檔 拜託各位神手大大了.......<(_ _)> ===========================以下是Debug的資訊========================= '/tmp' 應用程式中發生伺服器錯誤。 -------------------------------------------------------------------------------- 運作必須使用更新查詢。 描述: 在執行目前 Web 要求的過程中發生未處理的例外情形。請檢閱堆疊追蹤以取得錯 誤的詳細資訊,以及在程式碼中產生的位置。 例外詳細資訊: System.Data.OleDb.OleDbException: 運作必須使用更新查詢。 原始程式錯誤: 行 59: ads.InsertParameters.Add("ProductName", CType(e.Item.FindControl("productnameLabel"), Label).Text) 行 60: ads.InsertParameters.Add("unitprice", CType(e.Item.FindControl("productpriceLabel"), Label).Text) 行 61: ads.Insert() 行 62: Else 行 63: ads.UpdateCommand = "update [cart] set [quantity]=[quantity]+1 where [cartcustomer]='" & Session("cartname") & "' and productid =" & DataList1.DataKeys(e.Item.ItemIndex) ==========================分隔線======================================== 可是我在VS2005裡測試是沒有錯的 只是上傳就不能用 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.223.224.84

09/20 22:09, , 1F
要不要把debug mode打開(按照錯誤訊息那頁作),這樣比較
09/20 22:09, 1F

09/20 22:10, , 2F
知道錯在哪?
09/20 22:10, 2F
※ 編輯: dashmoment 來自: 61.223.224.84 (09/21 00:53)
文章代碼(AID): #16yU44nq (Visual_Basic)
文章代碼(AID): #16yU44nq (Visual_Basic)