Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4.5.1 > BOOK: Beginning ASP.NET 4.5.1 : in C# and VB
|
BOOK: Beginning ASP.NET 4.5.1 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4.5.1: in C# and VB by Imar Spaanjaars; ISBN: 978-1-118-84677-3
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4.5.1 : in C# and VB 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 26th, 2014, 10:22 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
[email protected]
 
Old April 27th, 2014, 08:32 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Since this is not related to my book, you're better off posting this in a general ASP.NET 4.5 forum from this list: http://p2p.wrox.com/asp-net-4-5-1-752/ This way, you'll attract more viewers.

That said, looks like you have some recursive call somewhere. Try debugging the app and see if you see some code firing multiple times in a recursive way.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
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
system.stackoverflowexception in system.windows.fo scheidel21 Pro VB.NET 2002/2003 2 May 18th, 2007 12:40 AM
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.