.net 网站时常出现这个问题 高手们帮帮忙吧!!怎么解决啊!
ServerErrorin'/'Application.---------------------------------------------------------...
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 40: DataSet ds;
Line 41: OleDbConnection odbc = Conn();
Line 42: odbc.Open();
Line 43: OleDbDataAdapter oda = new OleDbDataAdapter(sql, odbc);
Line 44: ds = new DataSet();
Source File: e:\xh\App_Code\dataOperate.cs Line: 42
Stack Trace:
[OleDbException (0x80004005): 未指定的错误]
System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection) +1054785
System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject) +53
System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup) +27
System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +47
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105
System.Data.OleDb.OleDbConnection.Open() +37
dataOperate.rows(String sql, String table) in e:\xh\App_Code\dataOperate.cs:42
MasterPage.Page_Load(Object sender, EventArgs e) in e:\xh\MasterPage.master.cs:24
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.Control.LoadRecursive() +131
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
各位高手这是什么问题啊!!帮帮忙看看吧! 这好像不是程雪的问题因为我刚换了个服务器,在原先的服务器里是没有这个问题的,换了以后就有这个问题了帮帮忙吧!!如果能解决再多加分!!!!!!
着急啊!!!拜托各位了
权限已经给过了,各位高手这是不是服务器上.net框架的问题啊!!!!! 展开
--------------------------------------------------------------------------------
未指定的错误
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 40: DataSet ds;
Line 41: OleDbConnection odbc = Conn();
Line 42: odbc.Open();
Line 43: OleDbDataAdapter oda = new OleDbDataAdapter(sql, odbc);
Line 44: ds = new DataSet();
Source File: e:\xh\App_Code\dataOperate.cs Line: 42
Stack Trace:
[OleDbException (0x80004005): 未指定的错误]
System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection) +1054785
System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject) +53
System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup) +27
System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +47
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105
System.Data.OleDb.OleDbConnection.Open() +37
dataOperate.rows(String sql, String table) in e:\xh\App_Code\dataOperate.cs:42
MasterPage.Page_Load(Object sender, EventArgs e) in e:\xh\MasterPage.master.cs:24
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.Control.LoadRecursive() +131
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
各位高手这是什么问题啊!!帮帮忙看看吧! 这好像不是程雪的问题因为我刚换了个服务器,在原先的服务器里是没有这个问题的,换了以后就有这个问题了帮帮忙吧!!如果能解决再多加分!!!!!!
着急啊!!!拜托各位了
权限已经给过了,各位高手这是不是服务器上.net框架的问题啊!!!!! 展开
4个回答
展开全部
数据库连接的参数有错吧 你看看你的数据库连接字符串 你要是换服务器了应该把数据库地址也改了的
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询