ASP.NET和IIS高手都进来看看!已经N天没有解决问题了!急啊!!!!
自己在家用asp.net开发了一个web网站在自己的IIS5.0上架设可以正常两台局域网机器互相连互相访问并使用里面增删改的功能,但是换到单位的机器上不知道为什么同样我装的是IIS5.0 和.NET2.0框架为什么只可以从数据库里读取显示我的数据库内容但是使用增删改功能就不可以 总是报我的程序语句错误,以下是在单位服务器上的显示
--------------------------------------------------------------------------------------------------------------Server Error in '/' 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 74: conn.Open();
Line 75: OleDbCommand cmd = new OleDbCommand(sSql, conn);
Line 76: iRet = cmd.ExecuteNonQuery();
Line 77: }
Line 78: return iRet;
Source File: d:\Chinaunicom\App_Code\DbServer.cs Line: 76
Stack Trace:
[OleDbException (0x80004005): 无法从指定的数据表中删除。]
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
DbServer.Access_ExecSql(String sSql) in d:\Chinaunicom\App_Code\DbServer.cs:76
DbServer.ExecSql(String sSql) in d:\Chinaunicom\App_Code\DbServer.cs:58
KnowledgeDelete.delData(String U_id) in d:\Chinaunicom\KnowledgeDelete.aspx.cs:35
KnowledgeDelete.Page_Load(Object sender, EventArgs e) in d:\Chinaunicom\KnowledgeDelete.aspx.cs:26
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061
________________________________________
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
我就纳闷了为什么会这样请高手帮忙必有高分相送!难道是IIS做了限制?还是哪里做了写入的限制,总之我程序的增删改功能就是在单位服务器上不能实现,在自己家里两台电脑就没问题。。。郁闷了