C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Exception Handling


Posted Date: 01 Aug 2008      Total Responses: 2

Posted By: Varshan       Member Level: Bronze     Points: 1



An unhandled exception of type 'System.StackOverflowException' occurred in mscorlib.dll


I got this error, while trying to redirect to another page.
I was able to redirect yesterday evening but am getting this error now.
Can anyone help why this has occured and how to resolve it??


Thank
Varshan





Responses

Author: ANIL PANDEY    01 Aug 2008Member Level: DiamondRating:     Points: 5

hi,

I think while redirecting the page to some where else it is caught in a loop thats why it is giving the System.stack overflow error because while redirecting to some other page or in a loop the Current page values are stores in stack so that after returning it can resume executing from where it has been called....

SO in other page load check for a condition where might be a looping condition.


Thanks
Anil Kumar

Thanks & Regards
Anil Kumar Pandey



Author: Varshan    01 Aug 2008Member Level: BronzeRating:     Points: 3

Hi Anil,

Thanks fo your suggestion, it worked.
In this case, I was calling a function to fill a GridView in the page load.... which was the cause for the exception.
Now how do i fill the DG during the page Load?

Thanks
Varshan



Post Reply
You must Sign In to post a response.
Next : baloon tooltip
Previous : asp.net
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use