搜索报错,大家帮忙看下

xiangyalan321 2010-07-19 04:07:45
Server Error in '/' Application.
--------------------------------------------------------------------------------

System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> DAOException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not respondin


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.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> DAOException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.

declare @AllCount int
declare @pageCount int
declare @indextable table(id int identity(1,1),nid int)
declare @tmptable table(id int identity(1,1),nid int)
declare @PageLowerBound int
declare @PageUpperBound int
declare @Actual int
insert into @indextable(nid) select id from view_UsersBuessiness where status <>99
select @AllCount= count(id) from @indextable c

set @pageCount=(@AllCount+5-1)/5

set @PageLowerBound=(1-1)*5
set @PageUpperBound=@PageLowerBound+5
set rowcount @PageUpperBound --确定返回的数量
select @Actual=count(nid) from @indextable t where t.id<=@PageUpperbound and T.id>@PageLowerBound
select us.*, (select modelFileName from model where id=us.modelid) as ModelFileName,
@Actual as Actual,@PageCount as PageCount, @AllCount as
DataCount
from view_UsersBuessiness us ,@indextable t
where us.status <>99 and us.id=t.nid and t.id<=@PageUpperbound and T.id>@PageLowerBound
at App_Code.BusinessObj.UsersSelPageIndexBO.BusinessActionRtnDS(IDataObj dataObj)
at Service.UsersSelPageIndex(UsersDO Users)
--- End of inner exception stack trace ---

Source Error:


Line 15774: [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/UsersSelPageIndex", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
Line 15775: public System.Data.DataSet UsersSelPageIndex(UsersDO Users) {
Line 15776: object[] results = this.Invoke("UsersSelPageIndex", new object[] {
Line 15777: Users});
Line 15778: return ((System.Data.DataSet)(results[0]));

在我本地是没错误的,传到服务器上了有时搜索报这个错
...全文
65 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
LQ_651119244 2010-07-19
  • 打赏
  • 举报
回复
q107770540 2010-07-19
  • 打赏
  • 举报
回复
这貌似和 它是网站还是虚拟目录 没关系
查看日志 查看系统占用资源情况

对应用程序池设置自动回收
dengNeeo 2010-07-19
  • 打赏
  • 举报
回复
解决办法:设置程序目录为虚拟目录

在IIS中为该虚拟目录创建应用程序。
该虚拟目录--> 右键--> 属性--> 应用程序名--> 创建

62,046

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧