asp.net+access做的网站,使用了伪静态。在vs中调试是没问题的。但是发布在iis(5.1)后,首页能显示出来(首页是.aspx),跳转到别的模块页面(静态页面)就显示找不到网页也不报错。随便对网页操作四次(刷新,点击,跳转等)就报错了:ExecuteReader 要求已打开且可用的连接。连接的当前状态为已关闭。
附报错内容:“/UI”应用程序中的服务器错误。
--------------------------------------------------------------------------------ExecuteReader 要求已打开且可用的连接。连接的当前状态为已关闭。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.InvalidOperationException: ExecuteReader 要求已打开且可用的连接。连接的当前状态为已关闭。源错误: 执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。 堆栈跟踪:
[InvalidOperationException: ExecuteReader 要求已打开且可用的连接。连接的当前状态为已关闭。]
System.Data.OleDb.OleDbConnection.CheckStateOpen(String method) +995987
System.Data.OleDb.OleDbCommand.ValidateConnection(String method) +25
System.Data.OleDb.OleDbCommand.ValidateConnectionAndTransaction(String method) +18
System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) +56
System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior behavior) +116
System.Data.OleDb.OleDbCommand.ExecuteReader() +6
XmxCms.AccessDAL.Helper.ExecuteOdr(String SqlStr, OleDbConnection Conn) in C:\Documents and Settings\Administrator\桌面\工作内容\UDS\AccessDAL\Helper.cs:60
XmxCms.AccessDAL.CompanyInfo.GetModel(Int32 id) in C:\Documents and Settings\Administrator\桌面\工作内容\UDS\AccessDAL\CompanyInfo.cs:55
XmxCms.BLL.CompanyInfo.GetModel(Int32 id) in C:\Documents and Settings\Administrator\桌面\工作内容\UDS\BLL\CompanyInfo.cs:24
_Default.SetNotice() +37
_Default.Page_Load(Object sender, EventArgs e) +78
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
--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:2.0.50727.3603; ASP.NET 版本:2.0.50727.3082 我该怎么解决,还有使用了伪静态后iis该怎么配置。。在线等,大家帮帮忙
附报错内容:“/UI”应用程序中的服务器错误。
--------------------------------------------------------------------------------ExecuteReader 要求已打开且可用的连接。连接的当前状态为已关闭。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.InvalidOperationException: ExecuteReader 要求已打开且可用的连接。连接的当前状态为已关闭。源错误: 执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。 堆栈跟踪:
[InvalidOperationException: ExecuteReader 要求已打开且可用的连接。连接的当前状态为已关闭。]
System.Data.OleDb.OleDbConnection.CheckStateOpen(String method) +995987
System.Data.OleDb.OleDbCommand.ValidateConnection(String method) +25
System.Data.OleDb.OleDbCommand.ValidateConnectionAndTransaction(String method) +18
System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) +56
System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior behavior) +116
System.Data.OleDb.OleDbCommand.ExecuteReader() +6
XmxCms.AccessDAL.Helper.ExecuteOdr(String SqlStr, OleDbConnection Conn) in C:\Documents and Settings\Administrator\桌面\工作内容\UDS\AccessDAL\Helper.cs:60
XmxCms.AccessDAL.CompanyInfo.GetModel(Int32 id) in C:\Documents and Settings\Administrator\桌面\工作内容\UDS\AccessDAL\CompanyInfo.cs:55
XmxCms.BLL.CompanyInfo.GetModel(Int32 id) in C:\Documents and Settings\Administrator\桌面\工作内容\UDS\BLL\CompanyInfo.cs:24
_Default.SetNotice() +37
_Default.Page_Load(Object sender, EventArgs e) +78
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
--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:2.0.50727.3603; ASP.NET 版本:2.0.50727.3082 我该怎么解决,还有使用了伪静态后iis该怎么配置。。在线等,大家帮帮忙
不是,我的是动网,是使用了urlrewriter对路径重写了
<rewrite url="~/index.html" to="~/default.aspx" />
<rewrite url="~/news.html" to="~/news.aspx?NewsClassID=0" />
<rewrite url="~/news-(.+).html" to="~/news.aspx?NewsClassID=$1"/>
<rewrite url="~/ShowNews-(.+).html" to="~/ShowNews.aspx?NewsID=$1"/> <!--<rewrite url="~/products/(.+).aspx" to="~/products.aspx?category=$1" />-->
<rewrite url="~/products.html" to="~/products.aspx?From=navigator&ProductClassID=0" />
<rewrite url="~/products-(.+).html" to="~/products.aspx?From=left&ProductClassID=$1" />
<rewrite url="~/Introduction.html" to="~/Introduction.aspx" />
<rewrite url="~/Introduction-(.+).html" to="~/Introduction.aspx?InfoID=$1" />
<rewrite url="~/ShowProduct-(.+).html" to="~/ShowProduct.aspx?ProductID=$1" />
<rewrite url="~/message.html" to="~/message.aspx" />
<rewrite url="~/Employ.html" to="~/Employ.aspx" />
<rewrite url="~/vip.html" to="~/vip.aspx" />
<rewrite url="~/Talents.html" to="~/Talents.aspx" />
<rewrite url="~/admin/Login.html" to="~/admin/Login.aspx" /> </rewriter>
找不到网页
正在查找的网页可能已被删除、重命名或暂时不可用。 --------------------------------------------------------------------------------请尝试执行下列操作:如果是在“地址”栏中键入了网页地址,请检查其拼写是否正确。打开 localhost 主页,然后查找与所需信息相关的链接。
单击后退按钮尝试其他链接。
HTTP 错误 404 - 找不到文件
Internet 信息服务
--------------------------------------------------------------------------------技术信息(用于支持人员)详细信息:
Microsoft 支持