.net错误提示
来源:百度知道 编辑:UC知道 时间:2024/07/06 20:06:56
这是什么错误
Server Error in '/qq' Application.
--------------------------------------------------------------------------------
操作必须使用一个可更新的查询。
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.OleDb.OleDbException: 操作必须使用一个可更新的查询。
Source Error:
Line 70: OleDbCommand Comm=new OleDbCommand(sql1,Conn);
Line 71: Response.Write(sql1);
Line 72: Comm.ExecuteNonQuery();
Line 73: OleDbCommand Comm1=new OleDbCommand("select * from grade",Conn);
Line 74: OleDbDataReader dr=Comm1.ExecuteReader();
Source File: D:\as\注.aspx Line: 72
Stack Trace:
[OleDbException (0x80004005): 操作必须使用一个可更新的查询。]
System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(
Server Error in '/qq' Application.
--------------------------------------------------------------------------------
操作必须使用一个可更新的查询。
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.OleDb.OleDbException: 操作必须使用一个可更新的查询。
Source Error:
Line 70: OleDbCommand Comm=new OleDbCommand(sql1,Conn);
Line 71: Response.Write(sql1);
Line 72: Comm.ExecuteNonQuery();
Line 73: OleDbCommand Comm1=new OleDbCommand("select * from grade",Conn);
Line 74: OleDbDataReader dr=Comm1.ExecuteReader();
Source File: D:\as\注.aspx Line: 72
Stack Trace:
[OleDbException (0x80004005): 操作必须使用一个可更新的查询。]
System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(
有几个主要的错误原因:
这个错误发生在当你的程序试图执行更新数据库或其它类似操作时。这是因为
ADO由于以下的几个原因而不能够写数据库造成的。
1。最普遍的原因是匿名用户帐号(IUSR_MACHINE)对该数据库文件没有写权限。
要解决这个问题,在管理器中调整数据库文件的属性,让匿名用户有正确的权限。
当使用ACCESS数据库时,不仅要给文件写的权限,还要给该目录写 的权限,因为
Jet需要在该目录建立一个.ldb文件。
2。第二个原因是数据库没有使用正确的模式打开。应该使用下面的方法打开。
SQL = "UPDATE Products Set UnitPrice = 2;"
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Mode = 3 '3 = adModeReadWrite
Conn.Open "myDSN"
Conn.Execute(SQL)
Conn.Close
注意默认的Mode是设置0(adModeUnknown),它是允许更新的。
3。还有可能是在ODBC管理器中将该DSN的只读选项选中。
4。你是在同时更新两个表中的字段,也会出现这个错误信息,解决办法是分开来更新这两个表中各自字段。
5。当你使用了一个从低版本中(如ACCESS2.0,ACCESS7.0)载入到高版本(ACCESS 2000)
中的查询时,在执行这个查询是会出现该错误。
全英文...看不懂..
安装VS.NET提示错误1911。
asp.net运行提示脚本错误
无法新建ASP.NET,而且没有任何错误提示
我开机后出现提示,然后就是没有桌面。。提示为:NET DDE32.EXE 应用程序错误。。。
我的 .net 怎么装不了,装的时候总是提示光盘错误。
求教Dreamweaver8的ASP.NET下拉列表项设置中出现的一个错误提示
asp.net调试出错,急求大侠解决!错误提示如下!
请问这段asp.net代码错误如何修改?提示treeview无法加载为何?
.net网站下的asp页面打不开,提示404错误 急!!!
在运行asp.net应用程序时,总提示“/asp”应用程序中的服务器错误。