悬赏分:30 浏览:250 次
我的网页在本机调试浏览完全没问题
发到服务器之后一段时间后就报这种错误
一般按常理应该是读取器对象使用后没有关闭,但我在这个小网站中没有使用过读取器对象,就是一个command和Dataset
至今也没搞明白,是什么原因,请求各位帮忙分析一下,都研究大半天也没打出原因!
下面这是在网页所报的错误!
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: 未指定的错误
--------------------------------------------------------------------
这是我使用的OleDb的操作类
using System;
using System.Web;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.Data;
using System.Data.OleDb;
using System.Configuration;
using System.ComponentModel;
namespace OleDbHelper
{
public class OleDbHelper
{
/// 连接数据源
private OleDbConnection MyConn = null;
//private readonly string RETURNVALUE = "RETURNVALUE";
/// <summary>
/// 打开数据库连接.
/// </summary>
private void Open()
{
// 打开数据库连接
if (MyConn == null)
{
MyConn = new OleDbConnection(ConfigurationManager.AppSettings["oledbConnectionString"].ToString());
}
if (MyConn.State == ConnectionState.Closed)
{
try
{
///打开数据库连接
|
搞个dump用windbg分析分析~~~ 把所有的错误信息都贴出来吧 把异常的堆栈贴出来,好分析。 你把IIS重新启动后还有这种现象吗? 如果当时没有,而过了一段时间又出现,则有可能是连接池的设置问题。 东西给的太少,看不出来。用的是access数据库吧,路径有没有问题吗? 你要不在代码里用一下Try {}catch(){} 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: 未指定的错误 这种错误出现的情况多的去了,,,,信息给的太少,看不出来 |
|
4个月前 .NET的春天 : 我问过我的一些同仁,他们说是我的读取器没关闭,可我仔细了,也没那有错 沙加 -说"搞个dump用windbg分析分析~~~" 看字面好像很深奥哦,说了真不怕笑,我才进入.net的世界里一年,不会这种分析,请指点一下可以吗? |