Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4.5.1 > ASP.NET 4.5.1 General Discussion
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 27th, 2014, 07:52 PM
Registered User
Points: 13, Level: 1
Points: 13, Level: 1 Points: 13, Level: 1 Points: 13, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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
Reply With Quote
  #2 (permalink)  
Old April 27th, 2014, 09:38 PM
Friend of Wrox
Points: 528, Level: 8
Points: 528, Level: 8 Points: 528, Level: 8 Points: 528, Level: 8
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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.
Reply With Quote
The Following User Says Thank You to mmorgan30 For This Useful Post:
kmore1981 (April 27th, 2014)
  #3 (permalink)  
Old April 27th, 2014, 09:58 PM
Registered User
Points: 13, Level: 1
Points: 13, Level: 1 Points: 13, Level: 1 Points: 13, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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.
Reply With Quote
  #4 (permalink)  
Old April 27th, 2014, 10:25 PM
Friend of Wrox
Points: 528, Level: 8
Points: 528, Level: 8 Points: 528, Level: 8 Points: 528, Level: 8
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2014
Posts: 136
Thanks: 1
Thanked 10 Times in 10 Posts
Default

Can you post the script
Reply With Quote
  #5 (permalink)  
Old December 27th, 2014, 03:27 AM
Registered User
Points: 3, Level: 1
Points: 3, Level: 1 Points: 3, Level: 1 Points: 3, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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..
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 08:26 AM.


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