我用VS2008+Access做了一个网站,网站放在服务器上之前在我本地运行的一点问题也没有。可是当我把它放在服务器上之后,刚打开网站的时候 也没有什么问题。可以正常的浏览、点击。可是,当浏览、点击几下之后 就报错了:
“/”应用程序中的服务器错误。
未指定的错误
异常详细信息: System.Data.OleDb.OleDbException: 未指定的错误
源错误:
执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。 |
[OleDbException (0x80004005): 未指定的错误]
System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection) +968297
System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject) +86
System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup) +29
System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +4861516
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +117
System.Data.OleDb.OleDbConnection.Open() +40
School.XP_DBUNITY.AccessHelper.PrepareCommand(OleDbCommand cmd, OleDbConnection conn, OleDbTransaction trans, CommandType cmdType, String cmdText, OleDbParameter[] cmdParms) in F:\xinpengdiannao\XP_DBUNITY\AccessHelper.cs:445
School.XP_DBUNITY.AccessHelper.ExecuteAdapter(String connectionString, CommandType cmdType, String cmdText, OleDbParameter[] commandParameters) in F:\xinpengdiannao\XP_DBUNITY\AccessHelper.cs:398
School.XP_DAL.NotifyAfficheSql.GetAll() in F:\xinpengdiannao\XP_DAL\NotifyAfficheSql.cs:165
School.XP_BLL.NotifyAfficheMethod.getall() in F:\xinpengdiannao\XP_BLL\NotifyAfficheMethod.cs:20
Index.binder1() +26
Index.Page_Load(Object sender, EventArgs e) +24
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
截屏如下: