Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4.5.1 > ASP.NET 4.5.1 General Discussion
|
ASP.NET 4.5.1 General Discussion For ASP.NET 4.5.1 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 4.5.1 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 27th, 2014, 07:52 PM
Registered User
 
Join Date: Apr 2014
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default An unhandled exception of type 'System.StackOverflowException' occurred

Hi,
We have lot of text boxes in our .ascx file. Earlier our framework was 2.0. Now we opened the solution in Visual Studio 2013 & it changed the framework to 4.5. On top portion of .ascx file we have defined few javascript functions. Few javascript functions have large number of lines. These javascript functions are defined for certain calculation like to calculate totals, opening stock, balances etc. Having lot of text boxes is need of the page. We can not reduce number of text boxes and javascript. Also javascript functions are referring these text boxes using code as = document.getElementById('<%=txtOpeningStockProd1.C lientID%>').value;
Earlier on 2.0 it was running smoothly. But today we changed the framework to 4.5 and it has started to show error as follows,

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

I emptied all the javascript functions definitions (removed function body) and kept their names as it is like following

eg.
function valInputs()
{
return true;
}

function showProductShortName()
{
total();
}


When I am running the program with javascript function definitions as above, then its showing the entire page. But when I started to include javascript function definitions one by one, after certain capacity, it started to raise exception as "An unhandled exception of type 'System.StackOverflowException' occurred in App_Web_l5hbm3c4.dll"

We googled a lot and tried all answers found but still could not succeed. Please help me to resolve this issue.

Kiran More
kmore1981@gmail.com
 
Old April 27th, 2014, 09:38 PM
Friend of Wrox
 
Join Date: Feb 2014
Posts: 136
Thanks: 1
Thanked 10 Times in 10 Posts
Default

On what Java script definition does it start throwing the exception.
The Following User Says Thank You to mmorgan30 For This Useful Post:
kmore1981 (April 27th, 2014)
 
Old April 27th, 2014, 09:58 PM
Registered User
 
Join Date: Apr 2014
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default

hi mmorgan30:
This big javascript has lot of statements similar to the following,
document.getElementById('<%=txtOSProd1.ClientID%>' ).value;

When I replaced all <control>.ClientID statements with their actual ID's it executed. It was not giving error on any specific code line.
 
Old April 27th, 2014, 10:25 PM
Friend of Wrox
 
Join Date: Feb 2014
Posts: 136
Thanks: 1
Thanked 10 Times in 10 Posts
Default

Can you post the script
 
Old December 27th, 2014, 03:27 AM
Registered User
 
Join Date: Dec 2014
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks kmore1981,,,I found your reply very informative


Our excellent online 74-325 dumps training programs will lead you to success in the Testking We also offer latest passguide and hsbc with 100% success guarantee. Our www.principiacollege.edu is rare in IT world University of New Haven and best of luck.

Last edited by reeja; January 9th, 2015 at 04:26 AM..





Similar Threads
Thread Thread Starter Forum Replies Last Post
An unhandled exception of type 'System.StackOverflowException' occurred kmore1981 BOOK: Beginning ASP.NET 4.5.1 : in C# and VB 1 April 27th, 2014 08:32 AM
An unhandled exception of type 'System.Data.SqlCli BB VB.NET 2002/2003 Basics 5 February 21st, 2014 10:22 AM
An unhandled exception of type 'System.Configuration.ConfigurationException' occurred rascaal BOOK: Beginning VB.NET Databases 0 January 1st, 2010 03:09 PM
An unhandled exception of type 'System.Data.OleDb. Harvey_swift VB Databases Basics 1 May 30th, 2006 12:57 PM
unhandled exception of type 'System.Net.WebExcepti booksnore2 C# 0 June 26th, 2004 07:26 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.