Click here to Skip to main content
14,766,867 members
Home » Discussions » ASP.NET
   

ASP.NET

 
GeneralRe: Difference between Open ID and OAuth Pin
Mou_kol20-Mar-18 0:20
MemberMou_kol20-Mar-18 0:20 
GeneralRe: Difference between Open ID and OAuth Pin
Vincent Maverick Durano20-Mar-18 18:17
professionalVincent Maverick Durano20-Mar-18 18:17 
QuestionArchitecture similar to asp.net boilerplate Pin
Charlie brown 71112-Mar-18 21:47
MemberCharlie brown 71112-Mar-18 21:47 
QuestionProcess master detail JSON with WCF Pin
Priyanka Kale9-Mar-18 1:08
MemberPriyanka Kale9-Mar-18 1:08 
QuestionData Access In Models & Repositories Pin
Priyanka Kale7-Mar-18 23:42
MemberPriyanka Kale7-Mar-18 23:42 
AnswerRe: Data Access In Models & Repositories Pin
Richard MacCutchan8-Mar-18 0:09
mveRichard MacCutchan8-Mar-18 0:09 
AnswerRe: Data Access In Models & Repositories Pin
Nagaraj Muthuchamy12-Mar-18 23:57
professionalNagaraj Muthuchamy12-Mar-18 23:57 
QuestionAn error occurred while receiving the HTTP response to https://localhost:44301/XXXXXXX.svc. Pin
indian1437-Mar-18 14:36
Memberindian1437-Mar-18 14:36 
Hi,

I am using WCF Service to get data from Entity Framework, I am getting the following error while I am trying either trying to get data from service or while converting the returned data into jSon, its a huge list with more than 200K records each record might be of size 20 columns.
public ActionResult FDER_Read([Kendo.Mvc.UI.DataSourceRequest] Kendo.Mvc.UI.DataSourceRequest request)
{
    using (ReportsClient reportclient = new ReportsClient())
    {
        CommonFunctions.IgnoreCertificationErrors();
        try
        {
            var data = reportclient.GetFDER(GetCurrentFiscalPeriod(), GetCurrentUser());
            var serializer = new JavaScriptSerializer();
            var result = new ContentResult();
            serializer.MaxJsonLength = Int32.MaxValue;

            result.Content = serializer.Serialize(data.ToDataSourceResult(request));
            result.ContentType = "application/json";
            return result;
        }
        catch (Exception ex)
        {
            throw ex;
        }
    }
}

I have set the bindings to support max values I am not sure what am I missing?
Here is my ASP.Net MVC applications Web Config
        <binding name="CustomBinding_IReports" closeTimeout="00:25:00" openTimeout="00:25:00" receiveTimeout="00:25:00" sendTimeout="00:25:00"
                 maxBufferPoolSize="2147483647" maxBufferSize="2147483647" >
          <security defaultAlgorithmSuite="Default" authenticationMode="SspiNegotiated"
            requireDerivedKeys="true" includeTimestamp="true" messageSecurityVersion="WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10"
            requireSignatureConfirmation="false">
            <localClientSettings detectReplays="true" />
            <localServiceSettings
             replayCacheSize="800000"
             detectReplays="true"
             replayWindow="00:05:00" />
          </security>
          <textMessageEncoding>
            <readerQuotas maxDepth="32" maxStringContentLength="2147483646" maxArrayLength="2147483646" maxBytesPerRead="2147483646" maxNameTableCharCount="2147483646"/>
          </textMessageEncoding>
          <httpsTransport maxReceivedMessageSize="2147483647" authenticationScheme="Negotiate"
            maxBufferPoolSize="2147483647" maxBufferSize="2147483647" />
        </binding>
Here is my WCF Service Web Config
<binding name="crsSecureHttpBinding" 
          maxConnections="100" 
          closeTimeout="00:30:00"
          openTimeout="00:30:00"
          receiveTimeout="00:30:00"
          sendTimeout="00:30:00"
          transactionFlow="false"                 
          transferMode="Buffered" maxDepth="2147483647"
          maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxStringContentLength="2147483647" maxNameTableCharCount="2147483647"
                 maxBufferSize="2147483647"
                 maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" >
          <transactionFlow />
          <security>
            <localServiceSettings replayCacheSize="8000000" replayWindow="00:30:00" />
          </security>
          <textMessageEncoding>
            <readerQuotas maxDepth="32" maxStringContentLength="2147483646" maxArrayLength="2147483646" maxBytesPerRead="2147483646" maxNameTableCharCount="2147483646"/>
          </textMessageEncoding>          
          <httpsTransport maxBufferPoolSize="2147483647" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647" authenticationScheme="Negotiate" />
        </binding>
The size of the returned object is: 96479088 and number of records are: 196411

I am not understanding what am I missing. I defined the Service and End point behaviors, any help would be greatly helpful, thanks in advance - please.

Thanks,

Abdul Aleem

"There is already enough hatred in the world lets spread love, compassion and affection."

-- modified 7-Mar-18 19:54pm.
SuggestionRe: An error occurred while receiving the HTTP response to https://localhost:44301/XXXXXXX.svc. Pin
Richard Deeming8-Mar-18 10:06
mveRichard Deeming8-Mar-18 10:06 
QuestionUnable to cast object of type 'System.Web.UI.WebControls.TemplateField' to type 'System.Web.UI.WebControls.CommandField' Pin
samflex7-Mar-18 7:49
Membersamflex7-Mar-18 7:49 
AnswerRe: Unable to cast object of type 'System.Web.UI.WebControls.TemplateField' to type 'System.Web.UI.WebControls.CommandField' Pin
Richard Deeming7-Mar-18 9:40
mveRichard Deeming7-Mar-18 9:40 
GeneralRe: Unable to cast object of type 'System.Web.UI.WebControls.TemplateField' to type 'System.Web.UI.WebControls.CommandField' Pin
samflex7-Mar-18 10:32
Membersamflex7-Mar-18 10:32 
Questioncreating organisational charts Pin
Member 137048122-Mar-18 1:08
MemberMember 137048122-Mar-18 1:08 
AnswerRe: creating organisational charts Pin
David Mujica2-Mar-18 11:43
MemberDavid Mujica2-Mar-18 11:43 
QuestionWeb API: Can we generate token without using identity Pin
Mou_kol27-Feb-18 23:53
MemberMou_kol27-Feb-18 23:53 
AnswerRe: Web API: Can we generate token without using identity Pin
Nathan Minier5-Mar-18 3:00
professionalNathan Minier5-Mar-18 3:00 
GeneralRe: Web API: Can we generate token without using identity Pin
Mou_kol5-Mar-18 22:13
MemberMou_kol5-Mar-18 22:13 
General.NET Core fits in the .NET Ecosystem Pin
Priyanka Kale27-Feb-18 0:15
MemberPriyanka Kale27-Feb-18 0:15 
QuestionAshraf Pin
Member 1206559125-Feb-18 0:53
MemberMember 1206559125-Feb-18 0:53 
AnswerRe: Ashraf Pin
Richard MacCutchan25-Feb-18 4:47
mveRichard MacCutchan25-Feb-18 4:47 
AnswerRe: Ashraf Pin
ZurdoDev26-Feb-18 3:04
professionalZurdoDev26-Feb-18 3:04 
QuestionRe: Ashraf Pin
ZurdoDev26-Feb-18 3:05
professionalZurdoDev26-Feb-18 3:05 
QuestionASP.Net MVC: How to show checkboxes selection in webgrid column after postback data Pin
Mou_kol19-Feb-18 8:17
MemberMou_kol19-Feb-18 8:17 
Questionread json file using newtonsoft.json Pin
alpacaheng18-Feb-18 22:49
Memberalpacaheng18-Feb-18 22:49 
SuggestionRe: read json file using newtonsoft.json Pin
Richard MacCutchan18-Feb-18 23:26
mveRichard MacCutchan18-Feb-18 23:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.