2016-04-22 7 views
5

यह अजीब त्रुटि है जो मैंने देखा है और मुझे नहीं पता कि कारण क्या है। वीएस2013 में मेरे पास datatables.net और दोहराने वाला एक एएसपीएक्स पेज है। पृष्ठ लोड अप ठीक है और ठीक से दिखाई देते तो कुछ सेकंड के बाद मैंअजीब सिस्टम। सी # में Asack.Net वेब ऐप

मिल

अजीब "प्रकार 'System.StackOverflowException' की एक बिना क्रिया का अपवाद System.Web.dll में हुई" बात यह है कि अगर मैं अपने एसक्यूएल में "टॉप 76" करता हूं तो मुझे वह त्रुटि नहीं मिलती है, हालांकि अगर मैं "शीर्ष 77" या अधिक करता हूं और मुझे वह त्रुटि मिलती है।

मैंने कई पुनरारंभ किए हैं, हटाए गए हैं और विभिन्न नामों वाले पृष्ठ को फिर से बनाया है। Datatables.net को हटाने का प्रयास किया। मैंने सिंगल कोट्स को बदलने की कोशिश की (सोच रहा है कि मेरे मार्क अप के साथ गड़बड़ हो सकती है)। लेकिन कुछ भी काम नहीं करता है।

यह अजीब है क्योंकि मेरे पास अन्य पृष्ठों पर समान प्रकार/शैली/कोड है जो कम से कम डेटा वाले हैं और वे सभी ठीक काम करते हैं।

अगला चरण VS2013 को पुनर्स्थापित कर रहा है क्योंकि मैं कोशिश करने के लिए और कुछ भी नहीं सोच सकता। किसी भी मदद की सराहना की जाएगी क्योंकि मैं flummoxed हूँ।

इस से पहले दृश्य स्टूडियो

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. 

देता है 5000 प्रविष्टियों से पता चलता यहां 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> 

यहाँ मैं इस सटीक समस्या थी और मैं अंत में यह aspx कोड है जो बाहर मेरी DataList के लिए टेम्पलेट रखी करने के लिए नीचे का पता लगाया पीछे

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("'", "-")); 
     } 
    } 
} 
+0

आपके एचटीएमएल पर एक कोशिश-पकड़ ब्लॉक क्यों है? – JCM

+2

एक स्टैक ट्रेस के बारे में कैसे? –

+0

अच्छा, एक स्पष्ट प्रश्न की तरह लगता है, लेकिन क्या आपके पास डेटाबेस में 76 से अधिक रिकॉर्ड हैं? – pay

उत्तर

2

कोड है। मेरे पास पंक्ति एचटीएमएल टैग टी में एक टाइपो था, जहां पिछली शैली की जानकारी को हटाने से एक उद्धरण छोड़ा गया था। एक बार जब मैंने उद्धरण हटा दिया, तो त्रुटि दूर हो गई।

+1

ओएमजी। मुझे विश्वास नहीं है कि यह था। वहां एक डबल-कोट था एक इनलाइन शैली। यह अविश्वसनीय है, मैं वास्तव में एएसपीएक्स और एचटीएमएल कोड दोनों को देखकर पारदर्शी हो गया था। मैं इस तरह की बेवकूफ सरल त्रुटि को हंस रहा हूँ – djack109

संबंधित मुद्दे