Access數(shù)據(jù)庫(kù)提示OleDbException (0x8000400建站知識(shí)
導(dǎo)讀:1建站知識(shí)使用Access當(dāng)數(shù)據(jù)庫(kù)時(shí),這個(gè)問(wèn)題郁悶了我好幾天啊![OleDbException (0x80004005): 操作必須使用一個(gè)可更新的查詢。] 說(shuō)明: 執(zhí)行百度seo網(wǎng)站優(yōu)化公司網(wǎng)站建設(shè)。
使用Access當(dāng)數(shù)據(jù)庫(kù)時(shí),這個(gè)問(wèn)題郁悶了我好幾天啊![OleDbException (0x80004005): 操作必須使用一個(gè)可更新的查詢。]
說(shuō)明: 執(zhí)行當(dāng)前 Web 請(qǐng)求期間,出現(xiàn)未處理的異常。請(qǐng)檢查堆棧跟蹤信息,以了解有關(guān)該錯(cuò)誤以及代碼中導(dǎo)致錯(cuò)誤的出處的詳細(xì)信息。
異常詳細(xì)信息: System.Data.OleDb.OleDbException: 無(wú)法從指定的數(shù)據(jù)表中刪除。
源錯(cuò)誤:
行 37: comm.CommandText = sqlstr;
行 38: //comm.Prepare();
行 39: cout = comm.ExecuteNonQuery();
行 40:
行 41: conn.Close();
源文件: d:\SOVO驗(yàn)收代碼\Base\App_Code\JetAccess.cs 行: 39建設(shè)網(wǎng)站
[OleDbException (0x80004005): 無(wú)法從指定的數(shù)據(jù)表中刪除。]
System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult) +267
System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult) +192
System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult) +48
System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) +106
System.Data.OleDb.OleDbCommand.ExecuteNonQuery() +108
JetAccess.Execute(OleDbParameter[] parameters, String sqlstr) in d:\SOVO驗(yàn)收代碼\Base\App_Code\JetAccess.cs:39
NewsData.DeleteNews(Int32 id) in d:\SOVO驗(yàn)收代碼\Base\App_Code\NewsData.cs:29
_Default.GridView1_RowDeleting(Object sender, GridViewDeleteEventArgs e) in d:\SOVO驗(yàn)收代碼\Base\System\Default.aspx.cs:46
System.Web.UI.WebControls.GridView.OnRowDeleting(GridViewDeleteEventArgs e) +133
System.Web.UI.WebControls.GridView.HandleDelete(GridViewRow row, Int32 rowIndex) +604
System.Web.UI.WebControls.GridView.HandleEvent(EventArgs e, Boolean causesValidation, String validationGroup) +1155
System.Web.UI.WebControls.GridView.RaisePostBackEvent(String eventArgument) +199
System.Web.UI.WebControls.GridView.Sys網(wǎng)站seo優(yōu)化課程tem.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPo建設(shè)網(wǎng)站公司stBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +174
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102
解決方法如下:
在數(shù)據(jù)文件*.mdb上右鍵打開(kāi)屬性對(duì)話框,在'安全'標(biāo)簽下需要添加IUSR_XXX(XXX為你的機(jī)器名),也就是添加Internet Guest Account帳戶,再將此帳戶的權(quán)限設(shè)為可讀,可寫(xiě).(原來(lái)這么簡(jiǎn)單就解決了的問(wèn)題,我靠:) )
聲明: 本文由我的SEOUC技術(shù)文章主頁(yè)發(fā)布于:2023-05-22 ,文章Access數(shù)據(jù)庫(kù)提示OleDbException (0x8000400建站知識(shí)主要講述提示,標(biāo)簽,Access數(shù)據(jù)庫(kù)提示OleDbExceptio網(wǎng)站建設(shè)源碼以及服務(wù)器配置搭建相關(guān)技術(shù)文章。轉(zhuǎn)載請(qǐng)保留鏈接: http://www.bifwcx.com/article/web_5249.html
為你推薦與Access數(shù)據(jù)庫(kù)提示OleDbException (0x8000400建站知識(shí)相關(guān)的文章
-
通王TWCMS 2.0.3網(wǎng)站模板程序下載
(126)人喜歡 2024-01-15 -
Windows官方原版在哪里下載
(175)人喜歡 2024-01-15 -
WordPress網(wǎng)站模板發(fā)帖標(biāo)題顏色設(shè)置
(131)人喜歡 2024-01-07 -
修改discuz論壇帖子標(biāo)題80字符的長(zhǎng)度限制
(249)人喜歡 2024-01-07 -
wordpress程序調(diào)用不帶超鏈接的Tag標(biāo)簽
(234)人喜歡 2024-01-05 -
網(wǎng)站在不同時(shí)期需調(diào)整內(nèi)容更新的方向
(112)人喜歡 2023-08-12