Strange System.StackOverflowException error in C#, Asp.Net web app.NET MVC StackOverflow exception after returning ViewASP.NET Web Site or ASP.NET Web Application?How can I update the current line in a C# Windows Console App?WCF vs ASP.NET Web APIAccessing Session Using ASP.NET Web APIPass an array of integers to ASP.NET Web API?C#: 'System.StackOverflowException' occurred in mscorlib.dllHow to secure an ASP.NET Web APIUnhandled exception System.StackOVerflowException c#C# 'System.StackOverflowException' in InitializeComponent()System.StackOverflowException error

Something in the TV

Don't understand MOSFET as amplifier

Co-author responds to email by mistake cc'ing the EiC

What happens when I copy a legendary creature with Rite of Replication?

Why we don't have vaccination against all diseases which are caused by microbes?

Do we need to assume underlying returns are normal in BSM model, given Central Limit Theorem?

How to compare two different formulations of a problem?

How to avoid using System.String with Rfc2898DeriveBytes in C#

Does Swashbuckler's Fancy Footwork apply if the attack was made with Booming Blade?

Bug or undocumented behaviour in Intersection

Does Git delete empty folders?

Importing ES6 module in LWC project (sfdx)

Is there such a thing as too inconvenient?

Are there nouns that change meaning based on gender?

Is it appropriate for a prospective landlord to ask me for my credit report?

Vacuum collapse -- why do strong metals implode but glass doesn't?

Is it safe to remove the bottom chords of a series of garage roof trusses?

Are there any plans for handling people floating away during an EVA?

Potential new partner angry about first collaboration - how to answer email to close up this encounter in a graceful manner

Are required indicators necessary for radio buttons?

What is the improvement of the "legally binding commitment" proposed by Boris Johnson over the existing "backstop"?

What is the evidence on the danger of feeding whole blueberries and grapes to infants and toddlers?

How to organize ideas to start writing a novel?

Why were movies shot on film shot at 24 frames per second?



Strange System.StackOverflowException error in C#, Asp.Net web app


.NET MVC StackOverflow exception after returning ViewASP.NET Web Site or ASP.NET Web Application?How can I update the current line in a C# Windows Console App?WCF vs ASP.NET Web APIAccessing Session Using ASP.NET Web APIPass an array of integers to ASP.NET Web API?C#: 'System.StackOverflowException' occurred in mscorlib.dllHow to secure an ASP.NET Web APIUnhandled exception System.StackOVerflowException c#C# 'System.StackOverflowException' in InitializeComponent()System.StackOverflowException error






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








7















This is the weirdest error I have seen and I don't know what the cause is. In VS2013 I have an aspx page using datatables.net and a repeater. The page loads up fine and displays correctly then after a few seconds I get




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




The strange thing is if I do "TOP 76" in my SQL I don't get that error however if I do "TOP 77" or greater and I get that error.



I have done numerous restarts, deleted and recreated the page with different names. Tried removing the datatables.net. I tried replacing single quotes (thinking that might be messing with my mark up). But nothing seems to work.



It's weird because I have the same type/style/code on other pages with more and less data and they all work fine.



Next step is reinstall VS2013 as I can't think of anything else to try. Any help would be much appreciated as I am flummoxed.



  • Click here for the data (csv)


  • StackTrace


This shows 5,000 entries before visual studio gives up



System.Runtime.Serialization.dll!System.Runtime.Serialization.TypeHandleRefEqualityComparer.GetHashCode(System.Runtime.Serialization.TypeHandleRef obj)
mscorlib.dll!System.Collections.Generic.Dictionary<System.Runtime.Serialization.TypeHandleRef,System.Runtime.Serialization.IntRef>.FindEntry(System.Runtime.Serialization.TypeHandleRef key)
mscorlib.dll!System.Collections.Generic.Dictionary<System.Runtime.Serialization.TypeHandleRef,System.Runtime.Serialization.IntRef>.TryGetValue(System.Runtime.Serialization.TypeHandleRef key, out System.Runtime.Serialization.IntRef value)
System.Runtime.Serialization.dll!System.Runtime.Serialization.Json.JsonDataContract.JsonDataContractCriticalHelper.GetId(System.RuntimeTypeHandle typeHandle)
System.Runtime.Serialization.dll!System.Runtime.Serialization.Json.JsonDataContract.JsonDataContractCriticalHelper.GetJsonDataContract(System.Runtime.Serialization.DataContract traditionalDataContract)
System.Runtime.Serialization.dll!System.Runtime.Serialization.Json.XmlObjectSerializerWriteContextComplexJson.WriteDataContractValue(System.Runtime.Serialization.DataContract dataContract, System.Runtime.Serialization.XmlWriterDelegator xmlWriter, object obj, System.RuntimeTypeHandle declaredTypeHandle)
System.Runtime.Serialization.dll!System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeAndVerifyType(System.Runtime.Serialization.DataContract dataContract, System.Runtime.Serialization.XmlWriterDelegator xmlWriter, object obj, bool verifyKnownType, System.RuntimeTypeHandle declaredTypeHandle, System.Type declaredType)
System.Runtime.Serialization.dll!System.Runtime.Serialization.Json.XmlObjectSerializerWriteContextComplexJson.SerializeWithXsiType(System.Runtime.Serialization.XmlWriterDelegator xmlWriter, object obj, System.RuntimeTypeHandle objectTypeHandle, System.Type objectType, int declaredTypeID, System.RuntimeTypeHandle declaredTypeHandle, System.Type declaredType)
System.Runtime.Serialization.dll!System.Runtime.Serialization.XmlObjectSerializerWriteContext.InternalSerialize(System.Runtime.Serialization.XmlWriterDelegator xmlWriter, object obj, bool isDeclaredType, bool writeXsiType, int declaredTypeID, System.RuntimeTypeHandle declaredTypeHandle)
System.Runtime.Serialization.dll!System.Runtime.Serialization.XmlObjectSerializerWriteContextComplex.InternalSerialize(System.Runtime.Serialization.XmlWriterDelegator xmlWriter, object obj, bool isDeclaredType, bool writeXsiType, int declaredTypeID, System.RuntimeTypeHandle declaredTypeHandle)
[Lightweight Function]
/* lots of lines omitted */
System.Runtime.Serialization.dll!System.Runtime.Serialization.Json.JsonCollectionDataContract.WriteJsonValueCore(System.Runtime.Serialization.XmlWriterDelegator jsonWriter, object obj, System.Runtime.Serialization.Json.XmlObjectSerializerWriteContextComplexJson context, System.RuntimeTypeHandle declaredTypeHandle)
System.Runtime.Serialization.dll!System.Runtime.Serialization.Json.XmlObjectSerializerWriteContextComplexJson.WriteDataContractValue(System.Runtime.Serialization.DataContract dataContract, System.Runtime.Serialization.XmlWriterDelegator xmlWriter, object obj, System.RuntimeTypeHandle declaredTypeHandle)
System.Runtime.Serialization.dll!System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeWithoutXsiType(System.Runtime.Serialization.DataContract dataContract, System.Runtime.Serialization.XmlWriterDelegator xmlWriter, object obj, System.RuntimeTypeHandle declaredTypeHandle)
System.Runtime.Serialization.dll!System.Runtime.Serialization.XmlObjectSerializerWriteContext.InternalSerialize(System.Runtime.Serialization.XmlWriterDelegator xmlWriter, object obj, bool isDeclaredType, bool writeXsiType, int declaredTypeID, System.RuntimeTypeHandle declaredTypeHandle)
System.Runtime.Serialization.dll!System.Runtime.Serialization.XmlObjectSerializerWriteContextComplex.InternalSerialize(System.Runtime.Serialization.XmlWriterDelegator xmlWriter, object obj, bool isDeclaredType, bool writeXsiType, int declaredTypeID, System.RuntimeTypeHandle declaredTypeHandle)
[Lightweight Function]
System.Runtime.Serialization.dll!System.Runtime.Serialization.Json.JsonCollectionDataContract.WriteJsonValueCore(System.Runtime.Serialization.XmlWriterDelegator jsonWriter, object obj, System.Runtime.Serialization.Json.XmlObjectSerializerWriteContextComplexJson context, System.RuntimeTypeHandle declaredTypeHandle)
System.Runtime.Serialization.dll!System.Runtime.Serialization.Json.XmlObjectSerializerWriteContextComplexJson.WriteDataContractValue(System.Runtime.Serialization.DataContract dataContract, System.Runtime.Serialization.XmlWriterDelegator xmlWriter, object obj, System.RuntimeTypeHandle declaredTypeHandle)
System.Runtime.Serialization.dll!System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeWithoutXsiType(System.Runtime.Serialization.DataContract dataContract, System.Runtime.Serialization.XmlWriterDelegator xmlWriter, object obj, System.RuntimeTypeHandle declaredTypeHandle)
The maximum number of stack frames supported by Visual Studio has been exceeded.


Here is the aspx



<%@ Page Title="" Language="C#" MasterPageFile="~/OxintMaster.master" AutoEventWireup="true" CodeBehind="inactivereport.aspx.cs" Inherits="oxint.com._40.admin.contrib.inactivereport" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div class="grid">
<div class="row cells12">
<div class="cell colspan12">
<h3>Companies assigned to Inactive Contributors Report (<asp:Literal runat="server" ID="litCount" ></asp:Literal>)</h3>
</div>
</div>
<table id="mysearchresultstable" class="dataTable striped" data-page-length='25'>
<thead>
<tr>
<th>Contributor</th>
<th style="text-align:center;">Count</th>
<th style="text-align:center;">Action</th>
</tr>
</thead>
<tbody>
<%try
%>
<asp:Repeater runat="server" ID="rptData1">
<ItemTemplate>
<tr>
<td style="white-space:nowrap;">
<a href='/admin/contrib/cndisplay.aspx?id=<%#Eval("Items[0].Value")%>'>
<asp:Literal runat="server" ID="litName"></asp:Literal>
</a>
</td>
<td style="white-space:nowrap;text-align:center;"><%#Eval("Items[3].Value")%></td><!--count-->
<td style="white-space:nowrap;text-align:center;">
<a href='/admin/contrib/inactiveview.aspx?id=<%#Eval("Items[0].Value")%>'><span class="mif-info"></span>
</td>
</tr>
</ItemTemplate>
</asp:Repeater>
<%
catch (Exception ex) Response.Write(ex.Message); %>
</tbody>
</table>
</div>

<script>
$(document).ready(function ()
/*$.fn.dataTable.moment('dd MMM yyyy HH:mm');*/
$('#mysearchresultstable').dataTable(

/*"order": [[1, "asc"]],*/
/*responsive: true,*/
"lengthMenu": [25, 50, 100],
"pagingType": "full",
"oLanguage": "sSearch": "Filter:" ,
"aoColumns": [null, null, "bSortable": false ]

);
);
</script>

</asp:Content>


Here is the code behind



using ApplicationClasses;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace oxint.com._40.admin.contrib

public partial class inactivereport : System.Web.UI.Page

private int iCount get; set;

protected void Page_Load(object sender, EventArgs e)

if (!IsPostBack)

rptData1.ItemDataBound += rptData1_ItemDataBound;

string sData = "SELECT contributor.referenceno,contributor.firstname,contributor.lastname,COUNT(contributor.referenceno) As Count " +
"FROM ((Contribprofile inner join contributor on Contribprofile.referenceno=contributor.referenceno) " +
"inner join Profilecompany on Contribprofile.companyid=Profilecompany.companyid) " +
"where Contribprofile.iscurrent =1 and not contributor.status in ('Full','Trial') " +
"group by contributor.Referenceno,contributor.firstname,contributor.lastname ";

rptData1.DataSource = new DataAccessFunctions.DataAccess().GetData(sData, null);
rptData1.DataBind();



void rptData1_ItemDataBound(object sender, RepeaterItemEventArgs e)

GenericData oData = (GenericData)e.Item.DataItem;

iCount += ApplicationSystemFunctions.SystemFunctions.ParseInt(oData.Items[3].Value);

litCount.Text = iCount.ToString();

Literal oLiteral = (Literal)e.Item.FindControl("litName");

oLiteral.Text = string.Format("0 1", oData.Items[1].Value, oData.Items[2].Value.Replace("'", "-"));












share|improve this question


























  • Why you have a try-catch block on your html?

    – JCM
    Apr 22 '16 at 13:20






  • 2





    How about a stack trace?

    – Paul Fleming
    Apr 22 '16 at 13:21











  • Well, seems like an obvious question, but do you have more than 76 records in the database?

    – pay
    Apr 22 '16 at 13:24











  • Try/Catch was desperation, it didn't help. Stack trace "Source Not Available" When the error window pops up you get OK and Continue, pressing either ends execution. The DB query returns 246 records. They are in the attached file. (Link above)

    – djack109
    Apr 22 '16 at 13:27












  • Does it happen in IIS Express and release IIS?

    – pay
    Apr 22 '16 at 13:35

















7















This is the weirdest error I have seen and I don't know what the cause is. In VS2013 I have an aspx page using datatables.net and a repeater. The page loads up fine and displays correctly then after a few seconds I get




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




The strange thing is if I do "TOP 76" in my SQL I don't get that error however if I do "TOP 77" or greater and I get that error.



I have done numerous restarts, deleted and recreated the page with different names. Tried removing the datatables.net. I tried replacing single quotes (thinking that might be messing with my mark up). But nothing seems to work.



It's weird because I have the same type/style/code on other pages with more and less data and they all work fine.



Next step is reinstall VS2013 as I can't think of anything else to try. Any help would be much appreciated as I am flummoxed.



  • Click here for the data (csv)


  • StackTrace


This shows 5,000 entries before visual studio gives up



System.Runtime.Serialization.dll!System.Runtime.Serialization.TypeHandleRefEqualityComparer.GetHashCode(System.Runtime.Serialization.TypeHandleRef obj)
mscorlib.dll!System.Collections.Generic.Dictionary<System.Runtime.Serialization.TypeHandleRef,System.Runtime.Serialization.IntRef>.FindEntry(System.Runtime.Serialization.TypeHandleRef key)
mscorlib.dll!System.Collections.Generic.Dictionary<System.Runtime.Serialization.TypeHandleRef,System.Runtime.Serialization.IntRef>.TryGetValue(System.Runtime.Serialization.TypeHandleRef key, out System.Runtime.Serialization.IntRef value)
System.Runtime.Serialization.dll!System.Runtime.Serialization.Json.JsonDataContract.JsonDataContractCriticalHelper.GetId(System.RuntimeTypeHandle typeHandle)
System.Runtime.Serialization.dll!System.Runtime.Serialization.Json.JsonDataContract.JsonDataContractCriticalHelper.GetJsonDataContract(System.Runtime.Serialization.DataContract traditionalDataContract)
System.Runtime.Serialization.dll!System.Runtime.Serialization.Json.XmlObjectSerializerWriteContextComplexJson.WriteDataContractValue(System.Runtime.Serialization.DataContract dataContract, System.Runtime.Serialization.XmlWriterDelegator xmlWriter, object obj, System.RuntimeTypeHandle declaredTypeHandle)
System.Runtime.Serialization.dll!System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeAndVerifyType(System.Runtime.Serialization.DataContract dataContract, System.Runtime.Serialization.XmlWriterDelegator xmlWriter, object obj, bool verifyKnownType, System.RuntimeTypeHandle declaredTypeHandle, System.Type declaredType)
System.Runtime.Serialization.dll!System.Runtime.Serialization.Json.XmlObjectSerializerWriteContextComplexJson.SerializeWithXsiType(System.Runtime.Serialization.XmlWriterDelegator xmlWriter, object obj, System.RuntimeTypeHandle objectTypeHandle, System.Type objectType, int declaredTypeID, System.RuntimeTypeHandle declaredTypeHandle, System.Type declaredType)
System.Runtime.Serialization.dll!System.Runtime.Serialization.XmlObjectSerializerWriteContext.InternalSerialize(System.Runtime.Serialization.XmlWriterDelegator xmlWriter, object obj, bool isDeclaredType, bool writeXsiType, int declaredTypeID, System.RuntimeTypeHandle declaredTypeHandle)
System.Runtime.Serialization.dll!System.Runtime.Serialization.XmlObjectSerializerWriteContextComplex.InternalSerialize(System.Runtime.Serialization.XmlWriterDelegator xmlWriter, object obj, bool isDeclaredType, bool writeXsiType, int declaredTypeID, System.RuntimeTypeHandle declaredTypeHandle)
[Lightweight Function]
/* lots of lines omitted */
System.Runtime.Serialization.dll!System.Runtime.Serialization.Json.JsonCollectionDataContract.WriteJsonValueCore(System.Runtime.Serialization.XmlWriterDelegator jsonWriter, object obj, System.Runtime.Serialization.Json.XmlObjectSerializerWriteContextComplexJson context, System.RuntimeTypeHandle declaredTypeHandle)
System.Runtime.Serialization.dll!System.Runtime.Serialization.Json.XmlObjectSerializerWriteContextComplexJson.WriteDataContractValue(System.Runtime.Serialization.DataContract dataContract, System.Runtime.Serialization.XmlWriterDelegator xmlWriter, object obj, System.RuntimeTypeHandle declaredTypeHandle)
System.Runtime.Serialization.dll!System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeWithoutXsiType(System.Runtime.Serialization.DataContract dataContract, System.Runtime.Serialization.XmlWriterDelegator xmlWriter, object obj, System.RuntimeTypeHandle declaredTypeHandle)
System.Runtime.Serialization.dll!System.Runtime.Serialization.XmlObjectSerializerWriteContext.InternalSerialize(System.Runtime.Serialization.XmlWriterDelegator xmlWriter, object obj, bool isDeclaredType, bool writeXsiType, int declaredTypeID, System.RuntimeTypeHandle declaredTypeHandle)
System.Runtime.Serialization.dll!System.Runtime.Serialization.XmlObjectSerializerWriteContextComplex.InternalSerialize(System.Runtime.Serialization.XmlWriterDelegator xmlWriter, object obj, bool isDeclaredType, bool writeXsiType, int declaredTypeID, System.RuntimeTypeHandle declaredTypeHandle)
[Lightweight Function]
System.Runtime.Serialization.dll!System.Runtime.Serialization.Json.JsonCollectionDataContract.WriteJsonValueCore(System.Runtime.Serialization.XmlWriterDelegator jsonWriter, object obj, System.Runtime.Serialization.Json.XmlObjectSerializerWriteContextComplexJson context, System.RuntimeTypeHandle declaredTypeHandle)
System.Runtime.Serialization.dll!System.Runtime.Serialization.Json.XmlObjectSerializerWriteContextComplexJson.WriteDataContractValue(System.Runtime.Serialization.DataContract dataContract, System.Runtime.Serialization.XmlWriterDelegator xmlWriter, object obj, System.RuntimeTypeHandle declaredTypeHandle)
System.Runtime.Serialization.dll!System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeWithoutXsiType(System.Runtime.Serialization.DataContract dataContract, System.Runtime.Serialization.XmlWriterDelegator xmlWriter, object obj, System.RuntimeTypeHandle declaredTypeHandle)
The maximum number of stack frames supported by Visual Studio has been exceeded.


Here is the aspx



<%@ Page Title="" Language="C#" MasterPageFile="~/OxintMaster.master" AutoEventWireup="true" CodeBehind="inactivereport.aspx.cs" Inherits="oxint.com._40.admin.contrib.inactivereport" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div class="grid">
<div class="row cells12">
<div class="cell colspan12">
<h3>Companies assigned to Inactive Contributors Report (<asp:Literal runat="server" ID="litCount" ></asp:Literal>)</h3>
</div>
</div>
<table id="mysearchresultstable" class="dataTable striped" data-page-length='25'>
<thead>
<tr>
<th>Contributor</th>
<th style="text-align:center;">Count</th>
<th style="text-align:center;">Action</th>
</tr>
</thead>
<tbody>
<%try
%>
<asp:Repeater runat="server" ID="rptData1">
<ItemTemplate>
<tr>
<td style="white-space:nowrap;">
<a href='/admin/contrib/cndisplay.aspx?id=<%#Eval("Items[0].Value")%>'>
<asp:Literal runat="server" ID="litName"></asp:Literal>
</a>
</td>
<td style="white-space:nowrap;text-align:center;"><%#Eval("Items[3].Value")%></td><!--count-->
<td style="white-space:nowrap;text-align:center;">
<a href='/admin/contrib/inactiveview.aspx?id=<%#Eval("Items[0].Value")%>'><span class="mif-info"></span>
</td>
</tr>
</ItemTemplate>
</asp:Repeater>
<%
catch (Exception ex) Response.Write(ex.Message); %>
</tbody>
</table>
</div>

<script>
$(document).ready(function ()
/*$.fn.dataTable.moment('dd MMM yyyy HH:mm');*/
$('#mysearchresultstable').dataTable(

/*"order": [[1, "asc"]],*/
/*responsive: true,*/
"lengthMenu": [25, 50, 100],
"pagingType": "full",
"oLanguage": "sSearch": "Filter:" ,
"aoColumns": [null, null, "bSortable": false ]

);
);
</script>

</asp:Content>


Here is the code behind



using ApplicationClasses;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace oxint.com._40.admin.contrib

public partial class inactivereport : System.Web.UI.Page

private int iCount get; set;

protected void Page_Load(object sender, EventArgs e)

if (!IsPostBack)

rptData1.ItemDataBound += rptData1_ItemDataBound;

string sData = "SELECT contributor.referenceno,contributor.firstname,contributor.lastname,COUNT(contributor.referenceno) As Count " +
"FROM ((Contribprofile inner join contributor on Contribprofile.referenceno=contributor.referenceno) " +
"inner join Profilecompany on Contribprofile.companyid=Profilecompany.companyid) " +
"where Contribprofile.iscurrent =1 and not contributor.status in ('Full','Trial') " +
"group by contributor.Referenceno,contributor.firstname,contributor.lastname ";

rptData1.DataSource = new DataAccessFunctions.DataAccess().GetData(sData, null);
rptData1.DataBind();



void rptData1_ItemDataBound(object sender, RepeaterItemEventArgs e)

GenericData oData = (GenericData)e.Item.DataItem;

iCount += ApplicationSystemFunctions.SystemFunctions.ParseInt(oData.Items[3].Value);

litCount.Text = iCount.ToString();

Literal oLiteral = (Literal)e.Item.FindControl("litName");

oLiteral.Text = string.Format("0 1", oData.Items[1].Value, oData.Items[2].Value.Replace("'", "-"));












share|improve this question


























  • Why you have a try-catch block on your html?

    – JCM
    Apr 22 '16 at 13:20






  • 2





    How about a stack trace?

    – Paul Fleming
    Apr 22 '16 at 13:21











  • Well, seems like an obvious question, but do you have more than 76 records in the database?

    – pay
    Apr 22 '16 at 13:24











  • Try/Catch was desperation, it didn't help. Stack trace "Source Not Available" When the error window pops up you get OK and Continue, pressing either ends execution. The DB query returns 246 records. They are in the attached file. (Link above)

    – djack109
    Apr 22 '16 at 13:27












  • Does it happen in IIS Express and release IIS?

    – pay
    Apr 22 '16 at 13:35













7












7








7








This is the weirdest error I have seen and I don't know what the cause is. In VS2013 I have an aspx page using datatables.net and a repeater. The page loads up fine and displays correctly then after a few seconds I get




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




The strange thing is if I do "TOP 76" in my SQL I don't get that error however if I do "TOP 77" or greater and I get that error.



I have done numerous restarts, deleted and recreated the page with different names. Tried removing the datatables.net. I tried replacing single quotes (thinking that might be messing with my mark up). But nothing seems to work.



It's weird because I have the same type/style/code on other pages with more and less data and they all work fine.



Next step is reinstall VS2013 as I can't think of anything else to try. Any help would be much appreciated as I am flummoxed.



  • Click here for the data (csv)


  • StackTrace


This shows 5,000 entries before visual studio gives up



System.Runtime.Serialization.dll!System.Runtime.Serialization.TypeHandleRefEqualityComparer.GetHashCode(System.Runtime.Serialization.TypeHandleRef obj)
mscorlib.dll!System.Collections.Generic.Dictionary<System.Runtime.Serialization.TypeHandleRef,System.Runtime.Serialization.IntRef>.FindEntry(System.Runtime.Serialization.TypeHandleRef key)
mscorlib.dll!System.Collections.Generic.Dictionary<System.Runtime.Serialization.TypeHandleRef,System.Runtime.Serialization.IntRef>.TryGetValue(System.Runtime.Serialization.TypeHandleRef key, out System.Runtime.Serialization.IntRef value)
System.Runtime.Serialization.dll!System.Runtime.Serialization.Json.JsonDataContract.JsonDataContractCriticalHelper.GetId(System.RuntimeTypeHandle typeHandle)
System.Runtime.Serialization.dll!System.Runtime.Serialization.Json.JsonDataContract.JsonDataContractCriticalHelper.GetJsonDataContract(System.Runtime.Serialization.DataContract traditionalDataContract)
System.Runtime.Serialization.dll!System.Runtime.Serialization.Json.XmlObjectSerializerWriteContextComplexJson.WriteDataContractValue(System.Runtime.Serialization.DataContract dataContract, System.Runtime.Serialization.XmlWriterDelegator xmlWriter, object obj, System.RuntimeTypeHandle declaredTypeHandle)
System.Runtime.Serialization.dll!System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeAndVerifyType(System.Runtime.Serialization.DataContract dataContract, System.Runtime.Serialization.XmlWriterDelegator xmlWriter, object obj, bool verifyKnownType, System.RuntimeTypeHandle declaredTypeHandle, System.Type declaredType)
System.Runtime.Serialization.dll!System.Runtime.Serialization.Json.XmlObjectSerializerWriteContextComplexJson.SerializeWithXsiType(System.Runtime.Serialization.XmlWriterDelegator xmlWriter, object obj, System.RuntimeTypeHandle objectTypeHandle, System.Type objectType, int declaredTypeID, System.RuntimeTypeHandle declaredTypeHandle, System.Type declaredType)
System.Runtime.Serialization.dll!System.Runtime.Serialization.XmlObjectSerializerWriteContext.InternalSerialize(System.Runtime.Serialization.XmlWriterDelegator xmlWriter, object obj, bool isDeclaredType, bool writeXsiType, int declaredTypeID, System.RuntimeTypeHandle declaredTypeHandle)
System.Runtime.Serialization.dll!System.Runtime.Serialization.XmlObjectSerializerWriteContextComplex.InternalSerialize(System.Runtime.Serialization.XmlWriterDelegator xmlWriter, object obj, bool isDeclaredType, bool writeXsiType, int declaredTypeID, System.RuntimeTypeHandle declaredTypeHandle)
[Lightweight Function]
/* lots of lines omitted */
System.Runtime.Serialization.dll!System.Runtime.Serialization.Json.JsonCollectionDataContract.WriteJsonValueCore(System.Runtime.Serialization.XmlWriterDelegator jsonWriter, object obj, System.Runtime.Serialization.Json.XmlObjectSerializerWriteContextComplexJson context, System.RuntimeTypeHandle declaredTypeHandle)
System.Runtime.Serialization.dll!System.Runtime.Serialization.Json.XmlObjectSerializerWriteContextComplexJson.WriteDataContractValue(System.Runtime.Serialization.DataContract dataContract, System.Runtime.Serialization.XmlWriterDelegator xmlWriter, object obj, System.RuntimeTypeHandle declaredTypeHandle)
System.Runtime.Serialization.dll!System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeWithoutXsiType(System.Runtime.Serialization.DataContract dataContract, System.Runtime.Serialization.XmlWriterDelegator xmlWriter, object obj, System.RuntimeTypeHandle declaredTypeHandle)
System.Runtime.Serialization.dll!System.Runtime.Serialization.XmlObjectSerializerWriteContext.InternalSerialize(System.Runtime.Serialization.XmlWriterDelegator xmlWriter, object obj, bool isDeclaredType, bool writeXsiType, int declaredTypeID, System.RuntimeTypeHandle declaredTypeHandle)
System.Runtime.Serialization.dll!System.Runtime.Serialization.XmlObjectSerializerWriteContextComplex.InternalSerialize(System.Runtime.Serialization.XmlWriterDelegator xmlWriter, object obj, bool isDeclaredType, bool writeXsiType, int declaredTypeID, System.RuntimeTypeHandle declaredTypeHandle)
[Lightweight Function]
System.Runtime.Serialization.dll!System.Runtime.Serialization.Json.JsonCollectionDataContract.WriteJsonValueCore(System.Runtime.Serialization.XmlWriterDelegator jsonWriter, object obj, System.Runtime.Serialization.Json.XmlObjectSerializerWriteContextComplexJson context, System.RuntimeTypeHandle declaredTypeHandle)
System.Runtime.Serialization.dll!System.Runtime.Serialization.Json.XmlObjectSerializerWriteContextComplexJson.WriteDataContractValue(System.Runtime.Serialization.DataContract dataContract, System.Runtime.Serialization.XmlWriterDelegator xmlWriter, object obj, System.RuntimeTypeHandle declaredTypeHandle)
System.Runtime.Serialization.dll!System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeWithoutXsiType(System.Runtime.Serialization.DataContract dataContract, System.Runtime.Serialization.XmlWriterDelegator xmlWriter, object obj, System.RuntimeTypeHandle declaredTypeHandle)
The maximum number of stack frames supported by Visual Studio has been exceeded.


Here is the aspx



<%@ Page Title="" Language="C#" MasterPageFile="~/OxintMaster.master" AutoEventWireup="true" CodeBehind="inactivereport.aspx.cs" Inherits="oxint.com._40.admin.contrib.inactivereport" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div class="grid">
<div class="row cells12">
<div class="cell colspan12">
<h3>Companies assigned to Inactive Contributors Report (<asp:Literal runat="server" ID="litCount" ></asp:Literal>)</h3>
</div>
</div>
<table id="mysearchresultstable" class="dataTable striped" data-page-length='25'>
<thead>
<tr>
<th>Contributor</th>
<th style="text-align:center;">Count</th>
<th style="text-align:center;">Action</th>
</tr>
</thead>
<tbody>
<%try
%>
<asp:Repeater runat="server" ID="rptData1">
<ItemTemplate>
<tr>
<td style="white-space:nowrap;">
<a href='/admin/contrib/cndisplay.aspx?id=<%#Eval("Items[0].Value")%>'>
<asp:Literal runat="server" ID="litName"></asp:Literal>
</a>
</td>
<td style="white-space:nowrap;text-align:center;"><%#Eval("Items[3].Value")%></td><!--count-->
<td style="white-space:nowrap;text-align:center;">
<a href='/admin/contrib/inactiveview.aspx?id=<%#Eval("Items[0].Value")%>'><span class="mif-info"></span>
</td>
</tr>
</ItemTemplate>
</asp:Repeater>
<%
catch (Exception ex) Response.Write(ex.Message); %>
</tbody>
</table>
</div>

<script>
$(document).ready(function ()
/*$.fn.dataTable.moment('dd MMM yyyy HH:mm');*/
$('#mysearchresultstable').dataTable(

/*"order": [[1, "asc"]],*/
/*responsive: true,*/
"lengthMenu": [25, 50, 100],
"pagingType": "full",
"oLanguage": "sSearch": "Filter:" ,
"aoColumns": [null, null, "bSortable": false ]

);
);
</script>

</asp:Content>


Here is the code behind



using ApplicationClasses;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace oxint.com._40.admin.contrib

public partial class inactivereport : System.Web.UI.Page

private int iCount get; set;

protected void Page_Load(object sender, EventArgs e)

if (!IsPostBack)

rptData1.ItemDataBound += rptData1_ItemDataBound;

string sData = "SELECT contributor.referenceno,contributor.firstname,contributor.lastname,COUNT(contributor.referenceno) As Count " +
"FROM ((Contribprofile inner join contributor on Contribprofile.referenceno=contributor.referenceno) " +
"inner join Profilecompany on Contribprofile.companyid=Profilecompany.companyid) " +
"where Contribprofile.iscurrent =1 and not contributor.status in ('Full','Trial') " +
"group by contributor.Referenceno,contributor.firstname,contributor.lastname ";

rptData1.DataSource = new DataAccessFunctions.DataAccess().GetData(sData, null);
rptData1.DataBind();



void rptData1_ItemDataBound(object sender, RepeaterItemEventArgs e)

GenericData oData = (GenericData)e.Item.DataItem;

iCount += ApplicationSystemFunctions.SystemFunctions.ParseInt(oData.Items[3].Value);

litCount.Text = iCount.ToString();

Literal oLiteral = (Literal)e.Item.FindControl("litName");

oLiteral.Text = string.Format("0 1", oData.Items[1].Value, oData.Items[2].Value.Replace("'", "-"));












share|improve this question
















This is the weirdest error I have seen and I don't know what the cause is. In VS2013 I have an aspx page using datatables.net and a repeater. The page loads up fine and displays correctly then after a few seconds I get




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




The strange thing is if I do "TOP 76" in my SQL I don't get that error however if I do "TOP 77" or greater and I get that error.



I have done numerous restarts, deleted and recreated the page with different names. Tried removing the datatables.net. I tried replacing single quotes (thinking that might be messing with my mark up). But nothing seems to work.



It's weird because I have the same type/style/code on other pages with more and less data and they all work fine.



Next step is reinstall VS2013 as I can't think of anything else to try. Any help would be much appreciated as I am flummoxed.



  • Click here for the data (csv)


  • StackTrace


This shows 5,000 entries before visual studio gives up



System.Runtime.Serialization.dll!System.Runtime.Serialization.TypeHandleRefEqualityComparer.GetHashCode(System.Runtime.Serialization.TypeHandleRef obj)
mscorlib.dll!System.Collections.Generic.Dictionary<System.Runtime.Serialization.TypeHandleRef,System.Runtime.Serialization.IntRef>.FindEntry(System.Runtime.Serialization.TypeHandleRef key)
mscorlib.dll!System.Collections.Generic.Dictionary<System.Runtime.Serialization.TypeHandleRef,System.Runtime.Serialization.IntRef>.TryGetValue(System.Runtime.Serialization.TypeHandleRef key, out System.Runtime.Serialization.IntRef value)
System.Runtime.Serialization.dll!System.Runtime.Serialization.Json.JsonDataContract.JsonDataContractCriticalHelper.GetId(System.RuntimeTypeHandle typeHandle)
System.Runtime.Serialization.dll!System.Runtime.Serialization.Json.JsonDataContract.JsonDataContractCriticalHelper.GetJsonDataContract(System.Runtime.Serialization.DataContract traditionalDataContract)
System.Runtime.Serialization.dll!System.Runtime.Serialization.Json.XmlObjectSerializerWriteContextComplexJson.WriteDataContractValue(System.Runtime.Serialization.DataContract dataContract, System.Runtime.Serialization.XmlWriterDelegator xmlWriter, object obj, System.RuntimeTypeHandle declaredTypeHandle)
System.Runtime.Serialization.dll!System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeAndVerifyType(System.Runtime.Serialization.DataContract dataContract, System.Runtime.Serialization.XmlWriterDelegator xmlWriter, object obj, bool verifyKnownType, System.RuntimeTypeHandle declaredTypeHandle, System.Type declaredType)
System.Runtime.Serialization.dll!System.Runtime.Serialization.Json.XmlObjectSerializerWriteContextComplexJson.SerializeWithXsiType(System.Runtime.Serialization.XmlWriterDelegator xmlWriter, object obj, System.RuntimeTypeHandle objectTypeHandle, System.Type objectType, int declaredTypeID, System.RuntimeTypeHandle declaredTypeHandle, System.Type declaredType)
System.Runtime.Serialization.dll!System.Runtime.Serialization.XmlObjectSerializerWriteContext.InternalSerialize(System.Runtime.Serialization.XmlWriterDelegator xmlWriter, object obj, bool isDeclaredType, bool writeXsiType, int declaredTypeID, System.RuntimeTypeHandle declaredTypeHandle)
System.Runtime.Serialization.dll!System.Runtime.Serialization.XmlObjectSerializerWriteContextComplex.InternalSerialize(System.Runtime.Serialization.XmlWriterDelegator xmlWriter, object obj, bool isDeclaredType, bool writeXsiType, int declaredTypeID, System.RuntimeTypeHandle declaredTypeHandle)
[Lightweight Function]
/* lots of lines omitted */
System.Runtime.Serialization.dll!System.Runtime.Serialization.Json.JsonCollectionDataContract.WriteJsonValueCore(System.Runtime.Serialization.XmlWriterDelegator jsonWriter, object obj, System.Runtime.Serialization.Json.XmlObjectSerializerWriteContextComplexJson context, System.RuntimeTypeHandle declaredTypeHandle)
System.Runtime.Serialization.dll!System.Runtime.Serialization.Json.XmlObjectSerializerWriteContextComplexJson.WriteDataContractValue(System.Runtime.Serialization.DataContract dataContract, System.Runtime.Serialization.XmlWriterDelegator xmlWriter, object obj, System.RuntimeTypeHandle declaredTypeHandle)
System.Runtime.Serialization.dll!System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeWithoutXsiType(System.Runtime.Serialization.DataContract dataContract, System.Runtime.Serialization.XmlWriterDelegator xmlWriter, object obj, System.RuntimeTypeHandle declaredTypeHandle)
System.Runtime.Serialization.dll!System.Runtime.Serialization.XmlObjectSerializerWriteContext.InternalSerialize(System.Runtime.Serialization.XmlWriterDelegator xmlWriter, object obj, bool isDeclaredType, bool writeXsiType, int declaredTypeID, System.RuntimeTypeHandle declaredTypeHandle)
System.Runtime.Serialization.dll!System.Runtime.Serialization.XmlObjectSerializerWriteContextComplex.InternalSerialize(System.Runtime.Serialization.XmlWriterDelegator xmlWriter, object obj, bool isDeclaredType, bool writeXsiType, int declaredTypeID, System.RuntimeTypeHandle declaredTypeHandle)
[Lightweight Function]
System.Runtime.Serialization.dll!System.Runtime.Serialization.Json.JsonCollectionDataContract.WriteJsonValueCore(System.Runtime.Serialization.XmlWriterDelegator jsonWriter, object obj, System.Runtime.Serialization.Json.XmlObjectSerializerWriteContextComplexJson context, System.RuntimeTypeHandle declaredTypeHandle)
System.Runtime.Serialization.dll!System.Runtime.Serialization.Json.XmlObjectSerializerWriteContextComplexJson.WriteDataContractValue(System.Runtime.Serialization.DataContract dataContract, System.Runtime.Serialization.XmlWriterDelegator xmlWriter, object obj, System.RuntimeTypeHandle declaredTypeHandle)
System.Runtime.Serialization.dll!System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeWithoutXsiType(System.Runtime.Serialization.DataContract dataContract, System.Runtime.Serialization.XmlWriterDelegator xmlWriter, object obj, System.RuntimeTypeHandle declaredTypeHandle)
The maximum number of stack frames supported by Visual Studio has been exceeded.


Here is the aspx



<%@ Page Title="" Language="C#" MasterPageFile="~/OxintMaster.master" AutoEventWireup="true" CodeBehind="inactivereport.aspx.cs" Inherits="oxint.com._40.admin.contrib.inactivereport" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div class="grid">
<div class="row cells12">
<div class="cell colspan12">
<h3>Companies assigned to Inactive Contributors Report (<asp:Literal runat="server" ID="litCount" ></asp:Literal>)</h3>
</div>
</div>
<table id="mysearchresultstable" class="dataTable striped" data-page-length='25'>
<thead>
<tr>
<th>Contributor</th>
<th style="text-align:center;">Count</th>
<th style="text-align:center;">Action</th>
</tr>
</thead>
<tbody>
<%try
%>
<asp:Repeater runat="server" ID="rptData1">
<ItemTemplate>
<tr>
<td style="white-space:nowrap;">
<a href='/admin/contrib/cndisplay.aspx?id=<%#Eval("Items[0].Value")%>'>
<asp:Literal runat="server" ID="litName"></asp:Literal>
</a>
</td>
<td style="white-space:nowrap;text-align:center;"><%#Eval("Items[3].Value")%></td><!--count-->
<td style="white-space:nowrap;text-align:center;">
<a href='/admin/contrib/inactiveview.aspx?id=<%#Eval("Items[0].Value")%>'><span class="mif-info"></span>
</td>
</tr>
</ItemTemplate>
</asp:Repeater>
<%
catch (Exception ex) Response.Write(ex.Message); %>
</tbody>
</table>
</div>

<script>
$(document).ready(function ()
/*$.fn.dataTable.moment('dd MMM yyyy HH:mm');*/
$('#mysearchresultstable').dataTable(

/*"order": [[1, "asc"]],*/
/*responsive: true,*/
"lengthMenu": [25, 50, 100],
"pagingType": "full",
"oLanguage": "sSearch": "Filter:" ,
"aoColumns": [null, null, "bSortable": false ]

);
);
</script>

</asp:Content>


Here is the code behind



using ApplicationClasses;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace oxint.com._40.admin.contrib

public partial class inactivereport : System.Web.UI.Page

private int iCount get; set;

protected void Page_Load(object sender, EventArgs e)

if (!IsPostBack)

rptData1.ItemDataBound += rptData1_ItemDataBound;

string sData = "SELECT contributor.referenceno,contributor.firstname,contributor.lastname,COUNT(contributor.referenceno) As Count " +
"FROM ((Contribprofile inner join contributor on Contribprofile.referenceno=contributor.referenceno) " +
"inner join Profilecompany on Contribprofile.companyid=Profilecompany.companyid) " +
"where Contribprofile.iscurrent =1 and not contributor.status in ('Full','Trial') " +
"group by contributor.Referenceno,contributor.firstname,contributor.lastname ";

rptData1.DataSource = new DataAccessFunctions.DataAccess().GetData(sData, null);
rptData1.DataBind();



void rptData1_ItemDataBound(object sender, RepeaterItemEventArgs e)

GenericData oData = (GenericData)e.Item.DataItem;

iCount += ApplicationSystemFunctions.SystemFunctions.ParseInt(oData.Items[3].Value);

litCount.Text = iCount.ToString();

Literal oLiteral = (Literal)e.Item.FindControl("litName");

oLiteral.Text = string.Format("0 1", oData.Items[1].Value, oData.Items[2].Value.Replace("'", "-"));









c# asp.net sql-server datatables stack-overflow






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 22 '16 at 18:45









Martin Smith

361k61 gold badges608 silver badges714 bronze badges




361k61 gold badges608 silver badges714 bronze badges










asked Apr 22 '16 at 13:11









djack109djack109

3865 silver badges18 bronze badges




3865 silver badges18 bronze badges















  • Why you have a try-catch block on your html?

    – JCM
    Apr 22 '16 at 13:20






  • 2





    How about a stack trace?

    – Paul Fleming
    Apr 22 '16 at 13:21











  • Well, seems like an obvious question, but do you have more than 76 records in the database?

    – pay
    Apr 22 '16 at 13:24











  • Try/Catch was desperation, it didn't help. Stack trace "Source Not Available" When the error window pops up you get OK and Continue, pressing either ends execution. The DB query returns 246 records. They are in the attached file. (Link above)

    – djack109
    Apr 22 '16 at 13:27












  • Does it happen in IIS Express and release IIS?

    – pay
    Apr 22 '16 at 13:35

















  • Why you have a try-catch block on your html?

    – JCM
    Apr 22 '16 at 13:20






  • 2





    How about a stack trace?

    – Paul Fleming
    Apr 22 '16 at 13:21











  • Well, seems like an obvious question, but do you have more than 76 records in the database?

    – pay
    Apr 22 '16 at 13:24











  • Try/Catch was desperation, it didn't help. Stack trace "Source Not Available" When the error window pops up you get OK and Continue, pressing either ends execution. The DB query returns 246 records. They are in the attached file. (Link above)

    – djack109
    Apr 22 '16 at 13:27












  • Does it happen in IIS Express and release IIS?

    – pay
    Apr 22 '16 at 13:35
















Why you have a try-catch block on your html?

– JCM
Apr 22 '16 at 13:20





Why you have a try-catch block on your html?

– JCM
Apr 22 '16 at 13:20




2




2





How about a stack trace?

– Paul Fleming
Apr 22 '16 at 13:21





How about a stack trace?

– Paul Fleming
Apr 22 '16 at 13:21













Well, seems like an obvious question, but do you have more than 76 records in the database?

– pay
Apr 22 '16 at 13:24





Well, seems like an obvious question, but do you have more than 76 records in the database?

– pay
Apr 22 '16 at 13:24













Try/Catch was desperation, it didn't help. Stack trace "Source Not Available" When the error window pops up you get OK and Continue, pressing either ends execution. The DB query returns 246 records. They are in the attached file. (Link above)

– djack109
Apr 22 '16 at 13:27






Try/Catch was desperation, it didn't help. Stack trace "Source Not Available" When the error window pops up you get OK and Continue, pressing either ends execution. The DB query returns 246 records. They are in the attached file. (Link above)

– djack109
Apr 22 '16 at 13:27














Does it happen in IIS Express and release IIS?

– pay
Apr 22 '16 at 13:35





Does it happen in IIS Express and release IIS?

– pay
Apr 22 '16 at 13:35












1 Answer
1






active

oldest

votes


















7














I had this exact problem and I finally traced it down to the aspx code which laid out the template for my DataList. I had a typo in the row html tag tr" where a quote was left over from deleting previous style information. Once I removed the quote, the error went away.






share|improve this answer




















  • 1





    OMG. I can't believe that was it. there was a td missing a double-quote from an inline style. That's unbelievable, I'd actually gone crossed-eyed looked at both the aspx and html code. I am laughing such a stupid simple error

    – djack109
    Mar 24 '17 at 14:07











  • I had the same issue and I don't think I would have solved it if not for this answer. In my case, I was generating some HTML server side, and there was a missing close tag for a paragraph. It was causing the stack overflow while debugging, which occurred after the page had rendered - the page needed to be refreshed 5 times to generate the error.

    – DanIreland
    Dec 20 '18 at 17:51











  • Asp.Net MVC. Forgot to close a html <tag> inside a foreach. Two days. Two freaking days trying to find where the error was. I scrubbed every line, then every character of the SQL query, and the C# functions. I re-wrote half of them to not use SQL or just use things differently. Updated VS, used a older VS version, god knows what else I'm forgetting...

    – CyberClaw
    Jan 30 at 16:47











  • same here, I had a invalid HTML tag <foo></foo> which caused this error

    – fubo
    May 3 at 12:32










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f36794808%2fstrange-system-stackoverflowexception-error-in-c-asp-net-web-app%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









7














I had this exact problem and I finally traced it down to the aspx code which laid out the template for my DataList. I had a typo in the row html tag tr" where a quote was left over from deleting previous style information. Once I removed the quote, the error went away.






share|improve this answer




















  • 1





    OMG. I can't believe that was it. there was a td missing a double-quote from an inline style. That's unbelievable, I'd actually gone crossed-eyed looked at both the aspx and html code. I am laughing such a stupid simple error

    – djack109
    Mar 24 '17 at 14:07











  • I had the same issue and I don't think I would have solved it if not for this answer. In my case, I was generating some HTML server side, and there was a missing close tag for a paragraph. It was causing the stack overflow while debugging, which occurred after the page had rendered - the page needed to be refreshed 5 times to generate the error.

    – DanIreland
    Dec 20 '18 at 17:51











  • Asp.Net MVC. Forgot to close a html <tag> inside a foreach. Two days. Two freaking days trying to find where the error was. I scrubbed every line, then every character of the SQL query, and the C# functions. I re-wrote half of them to not use SQL or just use things differently. Updated VS, used a older VS version, god knows what else I'm forgetting...

    – CyberClaw
    Jan 30 at 16:47











  • same here, I had a invalid HTML tag <foo></foo> which caused this error

    – fubo
    May 3 at 12:32















7














I had this exact problem and I finally traced it down to the aspx code which laid out the template for my DataList. I had a typo in the row html tag tr" where a quote was left over from deleting previous style information. Once I removed the quote, the error went away.






share|improve this answer




















  • 1





    OMG. I can't believe that was it. there was a td missing a double-quote from an inline style. That's unbelievable, I'd actually gone crossed-eyed looked at both the aspx and html code. I am laughing such a stupid simple error

    – djack109
    Mar 24 '17 at 14:07











  • I had the same issue and I don't think I would have solved it if not for this answer. In my case, I was generating some HTML server side, and there was a missing close tag for a paragraph. It was causing the stack overflow while debugging, which occurred after the page had rendered - the page needed to be refreshed 5 times to generate the error.

    – DanIreland
    Dec 20 '18 at 17:51











  • Asp.Net MVC. Forgot to close a html <tag> inside a foreach. Two days. Two freaking days trying to find where the error was. I scrubbed every line, then every character of the SQL query, and the C# functions. I re-wrote half of them to not use SQL or just use things differently. Updated VS, used a older VS version, god knows what else I'm forgetting...

    – CyberClaw
    Jan 30 at 16:47











  • same here, I had a invalid HTML tag <foo></foo> which caused this error

    – fubo
    May 3 at 12:32













7












7








7







I had this exact problem and I finally traced it down to the aspx code which laid out the template for my DataList. I had a typo in the row html tag tr" where a quote was left over from deleting previous style information. Once I removed the quote, the error went away.






share|improve this answer













I had this exact problem and I finally traced it down to the aspx code which laid out the template for my DataList. I had a typo in the row html tag tr" where a quote was left over from deleting previous style information. Once I removed the quote, the error went away.







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 21 '17 at 18:47









user3494684user3494684

861 silver badge2 bronze badges




861 silver badge2 bronze badges










  • 1





    OMG. I can't believe that was it. there was a td missing a double-quote from an inline style. That's unbelievable, I'd actually gone crossed-eyed looked at both the aspx and html code. I am laughing such a stupid simple error

    – djack109
    Mar 24 '17 at 14:07











  • I had the same issue and I don't think I would have solved it if not for this answer. In my case, I was generating some HTML server side, and there was a missing close tag for a paragraph. It was causing the stack overflow while debugging, which occurred after the page had rendered - the page needed to be refreshed 5 times to generate the error.

    – DanIreland
    Dec 20 '18 at 17:51











  • Asp.Net MVC. Forgot to close a html <tag> inside a foreach. Two days. Two freaking days trying to find where the error was. I scrubbed every line, then every character of the SQL query, and the C# functions. I re-wrote half of them to not use SQL or just use things differently. Updated VS, used a older VS version, god knows what else I'm forgetting...

    – CyberClaw
    Jan 30 at 16:47











  • same here, I had a invalid HTML tag <foo></foo> which caused this error

    – fubo
    May 3 at 12:32












  • 1





    OMG. I can't believe that was it. there was a td missing a double-quote from an inline style. That's unbelievable, I'd actually gone crossed-eyed looked at both the aspx and html code. I am laughing such a stupid simple error

    – djack109
    Mar 24 '17 at 14:07











  • I had the same issue and I don't think I would have solved it if not for this answer. In my case, I was generating some HTML server side, and there was a missing close tag for a paragraph. It was causing the stack overflow while debugging, which occurred after the page had rendered - the page needed to be refreshed 5 times to generate the error.

    – DanIreland
    Dec 20 '18 at 17:51











  • Asp.Net MVC. Forgot to close a html <tag> inside a foreach. Two days. Two freaking days trying to find where the error was. I scrubbed every line, then every character of the SQL query, and the C# functions. I re-wrote half of them to not use SQL or just use things differently. Updated VS, used a older VS version, god knows what else I'm forgetting...

    – CyberClaw
    Jan 30 at 16:47











  • same here, I had a invalid HTML tag <foo></foo> which caused this error

    – fubo
    May 3 at 12:32







1




1





OMG. I can't believe that was it. there was a td missing a double-quote from an inline style. That's unbelievable, I'd actually gone crossed-eyed looked at both the aspx and html code. I am laughing such a stupid simple error

– djack109
Mar 24 '17 at 14:07





OMG. I can't believe that was it. there was a td missing a double-quote from an inline style. That's unbelievable, I'd actually gone crossed-eyed looked at both the aspx and html code. I am laughing such a stupid simple error

– djack109
Mar 24 '17 at 14:07













I had the same issue and I don't think I would have solved it if not for this answer. In my case, I was generating some HTML server side, and there was a missing close tag for a paragraph. It was causing the stack overflow while debugging, which occurred after the page had rendered - the page needed to be refreshed 5 times to generate the error.

– DanIreland
Dec 20 '18 at 17:51





I had the same issue and I don't think I would have solved it if not for this answer. In my case, I was generating some HTML server side, and there was a missing close tag for a paragraph. It was causing the stack overflow while debugging, which occurred after the page had rendered - the page needed to be refreshed 5 times to generate the error.

– DanIreland
Dec 20 '18 at 17:51













Asp.Net MVC. Forgot to close a html <tag> inside a foreach. Two days. Two freaking days trying to find where the error was. I scrubbed every line, then every character of the SQL query, and the C# functions. I re-wrote half of them to not use SQL or just use things differently. Updated VS, used a older VS version, god knows what else I'm forgetting...

– CyberClaw
Jan 30 at 16:47





Asp.Net MVC. Forgot to close a html <tag> inside a foreach. Two days. Two freaking days trying to find where the error was. I scrubbed every line, then every character of the SQL query, and the C# functions. I re-wrote half of them to not use SQL or just use things differently. Updated VS, used a older VS version, god knows what else I'm forgetting...

– CyberClaw
Jan 30 at 16:47













same here, I had a invalid HTML tag <foo></foo> which caused this error

– fubo
May 3 at 12:32





same here, I had a invalid HTML tag <foo></foo> which caused this error

– fubo
May 3 at 12:32








Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.







Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.



















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f36794808%2fstrange-system-stackoverflowexception-error-in-c-asp-net-web-app%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현