问题描述
[OleDbException(0x80004005):操作必须使用一个可更新的查询。]System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMSdbParams,Object&executeResult)+267System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object&executeResult)+192System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehaviorbehavior,Object&executeResult)+48System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehaviorbehavior,Stringmethod)+106System.Data.OleDb.OleDbCommand.ExecuteNonQuery()+108log.XML.AddElement(Stringmotif,Stringconnect,Stringcontent)inD:程序DevelopmentToolsLogtoolWeblogXML.cs:155log.WebForm11.broad_btSubmit_Click(Objectsender,EventArgse)inD:程序DevelopmentToolsLogtoolWeblogSiteToolAccountmanage.aspx.cs:391System.Web.UI.WebControls.Button.OnClick(EventArgse)+105System.Web.UI.WebControls.Button.RaisePostBackEvent(StringeventArgument)+107System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(StringeventArgument)+7System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandlersourceControl,StringeventArgument)+11System.Web.UI.Page.RaisePostBackEvent(NameValueCollectionpostData)+33System.Web.UI.Page.ProcessRequestMain(BooleanincludeStagesBeforeAsyncPoint,BooleanincludeStagesAfterAsyncPoint)+5087这个错误怎么解决我查了网上说没写入权限可是我都改了还是不行代码是Globalpbal=newGlobal();stringaddrcon=pbal.getadderconfig();stringstrSq="INSERTINTO[广播$]([motif],[connect],[content])VALUES('"+motif+"','"+connect+"','"+content+"')";stringstrconn="Provider=Microsoft.Jet.OLEDB.4.0;"+"DataSource="+addrcon+";ExtendedProperties="Excel8.0;HDR=YES;IMEX=1"";OleDbConnectioncon=newOleDbConnection(strconn);OleDbCommandcmd=newOleDbCommand(strSq,con);cmd.Connection.Open();cmd.ExecuteNonQuery();cmd.Connection.Close();
解决方案
解决方案二:
[img=C:DocumentsandSettingsAdministrator桌面][/img]
解决方案三:
没人回答吗
解决方案四:
我也遇到这个问题了,求解
解决方案五:
我的问题一样。本地IIS能通过,放到FTP服务器上,就报这个错误,修改限权都不行,现在还苦恼这问题。求指教