出现各种各样的未知错误,为啥在本地上没事呢?
解决方案 »
- cs文件获取Session报错
- 服务器访问不到ashx页面,提示404
- 框架页面跳转
- .net 30kb以上的图片为什么显示不出来
- 100 分 送分王子 --- ASP.NET 中的 全局变量问题,超级弱
- 服务器端从数据库中得到数据,通过什么手段才能把得到的数据传递到客户端,这样客户端得到该数据后,可以对该数据进行解析、处理等操作?
- 很急,在线等,解决就给分
- allowDefinition='MachineToApplication' 的节是错误的
- ASP.NET中怎样利用脚本技术来给一个Web控件Textbox来赋值
- IIS Admin 服务无法启动
- vs2005 web应用
- 让 TextBox 控件得到焦点
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.Data.OleDb.OleDbException: 未指定的错误 源错误:
行 16: DataView dv = pi.SelectPro_commend(1).Tables[0].DefaultView;
行 17: PagedDataSource ps = new PagedDataSource();
行 18: dv.Sort = "pro_addtime desc";
行 19: ps.DataSource = dv;
行 20: ps.AllowPaging = true;
行 21: ps.PageSize =5;
行 22: dlProTJ.DataSource = ps;
行 23: dlProTJ.DataBind(); 源文件: D:\Hosting\WwwRoot\hsm168_com\htdocs\activity_view.aspx 行: 18 堆栈跟踪:
[OleDbException (0x80004005): 未指定的错误]
System.Data.OleDb.OleDbConnection.ProcessResults(Int32 hr) +20
System.Data.OleDb.OleDbConnection.InitializeProvider() +57
System.Data.OleDb.OleDbConnection.Open() +203
System.Data.Common.DbDataAdapter.QuietOpen(IDbConnection connection, ConnectionState& originalState) +44
System.Data.Common.DbDataAdapter.FillFromCommand(Object data, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +304
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +77
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) +36
ASP.activity_view_aspx.Binding() in D:\Hosting\WwwRoot\hsm168_com\htdocs\activity_view.aspx:18
ASP.activity_view_aspx.Page_Load(Object sender, EventArgs e) in D:\Hosting\WwwRoot\hsm168_com\htdocs\activity_view.aspx:7
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +750
刚打开没事 刷新几次后出问题,,,上面是我绑定6个产品的代码,,,
用的是access数据库 public static readonly string ConnectionStringLocalTransaction = "Provider=microsoft.jet.OleDb.4.0;Data Source=" + System.Web.HttpContext.Current.Server.MapPath(@"~\App_Data\db.mdb");数据库链接没问题在网上搜了下类似的问题 但都是没解决 比如: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 36: private void BindNews()
Line 37: {
Line 38: DataView dv =new DataView( ni.SelectNew().Tables[0]);
Line 39: PagedDataSource ps = new PagedDataSource();
Line 40: dv.Sort = "new_addtime desc";
Source File: e:\user\host201\hnjdjs\web\index.aspx.cs Line: 38 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
System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +121
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +137
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet) +86
AccessDB.OleDbHelp.ExecuteDataSet(String connectionString, CommandType cmdType, String cmdText) in F:\jdjs\AccessDB\OleDbHelp.cs:318
AccessDB.NewInfo.SelectNew() in F:\jdjs\AccessDB\NewInfo.cs:18
index.BindNews() in e:\user\host201\hnjdjs\web\index.aspx.cs:38
index.Page_Load(Object sender, EventArgs e) in e:\user\host201\hnjdjs\web\index.aspx.cs:28
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 这是问题源 看不太懂
用的是access数据库 public static readonly string ConnectionStringLocalTransaction = "Provider=microsoft.jet.OleDb.4.0;Data Source=" + System.Web.HttpContext.Current.Server.MapPath(@"~\App_Data\db.mdb");数据库链接没问题 在网上搜了下类似的问题 但都是没解决 比如:Server Error in '/' Application. 未指定错误
------------------
如果这样的话,有可能是浏览器的问题