Click here to Skip to main content
15,884,237 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Difference between Open ID and OAuth Pin
Mou_kol19-Mar-18 23:20
Mou_kol19-Mar-18 23:20 
GeneralRe: Difference between Open ID and OAuth Pin
Vincent Maverick Durano20-Mar-18 17:17
professionalVincent Maverick Durano20-Mar-18 17:17 
QuestionArchitecture similar to asp.net boilerplate Pin
Charlie brown 71112-Mar-18 20:47
Charlie brown 71112-Mar-18 20:47 
QuestionProcess master detail JSON with WCF Pin
Priyanka Kale9-Mar-18 0:08
Priyanka Kale9-Mar-18 0:08 
QuestionData Access In Models & Repositories Pin
Priyanka Kale7-Mar-18 22:42
Priyanka Kale7-Mar-18 22:42 
AnswerRe: Data Access In Models & Repositories Pin
Richard MacCutchan7-Mar-18 23:09
mveRichard MacCutchan7-Mar-18 23:09 
AnswerRe: Data Access In Models & Repositories Pin
Nagaraj Muthuchamy12-Mar-18 22:57
professionalNagaraj Muthuchamy12-Mar-18 22:57 
QuestionAn error occurred while receiving the HTTP response to https://localhost:44301/XXXXXXX.svc. Pin
indian1437-Mar-18 13:36
indian1437-Mar-18 13: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 9:06
mveRichard Deeming8-Mar-18 9:06 
QuestionUnable to cast object of type 'System.Web.UI.WebControls.TemplateField' to type 'System.Web.UI.WebControls.CommandField' Pin
samflex7-Mar-18 6:49
samflex7-Mar-18 6: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 8:40
mveRichard Deeming7-Mar-18 8:40 
GeneralRe: Unable to cast object of type 'System.Web.UI.WebControls.TemplateField' to type 'System.Web.UI.WebControls.CommandField' Pin
samflex7-Mar-18 9:32
samflex7-Mar-18 9:32 
Questioncreating organisational charts Pin
Member 137048122-Mar-18 0:08
Member 137048122-Mar-18 0:08 
AnswerRe: creating organisational charts Pin
David Mujica2-Mar-18 10:43
David Mujica2-Mar-18 10:43 
QuestionWeb API: Can we generate token without using identity Pin
Mou_kol27-Feb-18 22:53
Mou_kol27-Feb-18 22:53 
AnswerRe: Web API: Can we generate token without using identity Pin
Nathan Minier5-Mar-18 2:00
professionalNathan Minier5-Mar-18 2:00 
GeneralRe: Web API: Can we generate token without using identity Pin
Mou_kol5-Mar-18 21:13
Mou_kol5-Mar-18 21:13 
General.NET Core fits in the .NET Ecosystem Pin
Priyanka Kale26-Feb-18 23:15
Priyanka Kale26-Feb-18 23:15 
QuestionAshraf Pin
Member 1206559124-Feb-18 23:53
Member 1206559124-Feb-18 23:53 
AnswerRe: Ashraf Pin
Richard MacCutchan25-Feb-18 3:47
mveRichard MacCutchan25-Feb-18 3:47 
AnswerRe: Ashraf Pin
ZurdoDev26-Feb-18 2:04
professionalZurdoDev26-Feb-18 2:04 
QuestionRe: Ashraf Pin
ZurdoDev26-Feb-18 2:05
professionalZurdoDev26-Feb-18 2:05 
QuestionASP.Net MVC: How to show checkboxes selection in webgrid column after postback data Pin
Mou_kol19-Feb-18 7:17
Mou_kol19-Feb-18 7:17 
Questionread json file using newtonsoft.json Pin
alpacaheng18-Feb-18 21:49
alpacaheng18-Feb-18 21:49 
SuggestionRe: read json file using newtonsoft.json Pin
Richard MacCutchan18-Feb-18 22:26
mveRichard MacCutchan18-Feb-18 22: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.