Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MaxJsonResponseSize when profiling ASMX web services calls #103

Closed
mhallin79 opened this issue Apr 1, 2015 · 1 comment
Closed

MaxJsonResponseSize when profiling ASMX web services calls #103

mhallin79 opened this issue Apr 1, 2015 · 1 comment
Milestone

Comments

@mhallin79
Copy link
Contributor

Hi guys,

I have an issue when I'm profiling asmx webservice calls. I have set the MiniProfiler.Settings.MaxJsonResponseSize to int.MaxValue.

I believe that the MaxJsonResponseSize value is not honored during a asmx call for some reason as I can Serialize the profiler myself before calling MiniProfiler.Stop()

In below screen dump I write out the MaxJsonLength for different serializesers to the debug windows (line 198-203) and then I use my own JavaScriptSerializer to serialize MiniProfiler after and that do a quick byte count and as you can see in the debug window the count is less then MiniProfiler.Settings.MaxJsonResponseSize.

However I still get the Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property..

I only have this problem with asmx services.
image

I have also set the jsonSerialization maxJsonLength="2147483647" in the web.config without detecting a difference.

Any assistance troubleshooting this issue is greatly appreciated.

Kind regards,

Mikael

@NickCraver
Copy link
Member

Thanks for the report! This is due to the .ToJson() helper underneath when saving. I've fixed it for the v4 release.

Note: same issue as #138

@NickCraver NickCraver added this to the 4.0 milestone Nov 29, 2016
@NickCraver NickCraver mentioned this issue Nov 30, 2016
43 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants