asp.net网站的问题 [英] problem in asp.net site

查看:69
本文介绍了asp.net网站的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我点击我的主页中引用sql查询的超链接时抛出以下异常







'/'应用程序中的服务器错误。



抛出类型'System.OutOfMemoryException'的异常。



描述:执行当前Web请求期间发生了未处理的异常。请查看堆栈跟踪以获取有关错误及其源自代码的位置的更多信息。



异常详细信息:System.OutOfMemoryException:抛出类型'System.OutOfMemoryException'的异常。



来源错误:





第142行:@if(ViewBag.Type == 1)

第143行:{

第144行:list = obj.TowerDetails(@ ViewBag.SSA,@ item.BTS_CODE,@ ViewBag.StartDate,1);

第145行:字符串网址=TowerDetails?SSA =+ @ ViewBag.SSA +&BTS_CODE =+ @ item.BTS_CODE +&SD =+ @ ViewBag.StartDate +&Flag = 1;

第146行: TotalSectorUp = TotalSectorUp + @ item.UP_COUNT.Value;



源文件:.... Details.cshtml行:144







任何人都可以指出我犯下的错误。



















提前感谢

An exception as below is thrown while i am clicking a hyperlink in my homepage which refer to a sql query



Server Error in '/' Application.

Exception of type 'System.OutOfMemoryException' was thrown.

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.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.

Source Error:


Line 142: @if (ViewBag.Type == 1)
Line 143: {
Line 144: list = obj.TowerDetails(@ViewBag.SSA, @item.BTS_CODE, @ViewBag.StartDate, 1);
Line 145: string url = "TowerDetails?SSA=" + @ViewBag.SSA + "&BTS_CODE=" + @item.BTS_CODE + "&SD=" + @ViewBag.StartDate + "&Flag=1";
Line 146: TotalSectorUp = TotalSectorUp + @item.UP_COUNT.Value;

Source File: ....Details.cshtml Line: 144



can anyone point out the mistake I am committing.









thanks in advance

推荐答案

需要更多细节,但似乎你需要在第144行调用一个新的列表对象。我仍然不确定,因为我需要更多的细节。

还有一件事,你的数据源产生了更多的结果然后列表对象的限制。

更正它。
Need more details, but seems like you need to invoke a new list object at line 144. still i am not sure because i need more details.
One more thing, your data source is producing more result then limit of list object.
do correct it.


这篇关于asp.net网站的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆