操作必须使用可更新的查询

时间:2013-04-03 09:48:00

标签: asp.net sql-server vb.net iis-7

我正在使用IIS7并且正在运行一个网站。将所有文件夹从旧服务器复制到新服务器后,我无法再登录该网站。我收到了这个错误

`[OleDbException (0x80004005): Operation must use an updateable query.]
System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(OleDbHResult hr) +992124
System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams,
Object& executeResult) +255
System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult) +188
System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object&  
executeResult) +58
System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String  
method) +161
System.Data.OleDb.OleDbCommand.ExecuteNonQuery() +113
TimeSheet___IRL.General_DB.SaveToDB(NameValueCollection Values, String TableName,  
String RecordIdentifierFieldName, Page PageRef) in C:\inetpub\wwwroot\TimeSheet - 
IRL\TimeSheet - IRL\App_GlobalResources\General_DB.vb:349
TimeSheet___IRL.General_Log.AddLog(String Category, String Description, Page PageRef,
Int32 DBIDProject, Int32 DBIDActivity, Int32 DBIDTSOwner, Double TSDate, Double
TSTime, Double TSDuration) in C:\inetpub\wwwroot\TimeSheet - IRL\TimeSheet -
IRL\App_GlobalResources\General_Log.vb:32
TimeSheet___IRL.TS_Login.btnLogin_Click(Object sender, EventArgs e) in C:\inetpub
\wwwroot\TimeSheet - IRL\TimeSheet - IRL\TS_Login.aspx.vb:74
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent
(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String 
eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean
includeStagesAfterAsyncPoint) +1565`

有人可以告诉我调试中的问题是什么吗?这是一个数据库问题,因为我使用SQL 2005进行登录。当我复制一切时,也许我错过了一些东西? 在此先感谢

0 个答案:

没有答案
相关问题