question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Elastic.Apm.AspNetFullFramework crashes on some SOAP requests to ASP Net Web Service

See original GitHub issue

APM Agent version

Elastic.Apm.AspNetFullFramework 1.16.1

Environment

C# ASP NET Web Service

.NET Framework 4.8

Describe the bug

Some SOAP requests (not all, just some) to ASP Net Web Service crash if I have agent enabled in web.config. All I did was integrate agent into our old Web Service. Could be something wrong with SOAP request (syntax, etc.)? But other clients (Java, etc.) have no problems calling this Web Service for several years.

Exception message: System.Web.Services.Protocols.SoapException: There was an exception running the extensions specified in the config file. ---> System.InvalidOperationException: Either BinaryRead, Form, Files, or InputStream was accessed before the internal storage was filled by the caller of HttpRequest.GetBufferedInputStream. at System.Web.HttpRequest.GetEntireRawContent() at System.Web.HttpRequest.get_InputStream() at System.Web.Services.Protocols.SoapServerProtocol.Initialize() --- End of inner exception stack trace --- at System.Web.Services.Protocols.SoapServerProtocol.Initialize() at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:20 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
sabilandcommented, Oct 5, 2022

I have attached txt file with 9 separate XML SOAP requests. Nothing inside data is sensitive (enough), so I didn’t modify any data. That being said, still try to keep this data private.

EDIT: Now that the issue has been confirmed and solved, I am removing XML SOAP examples. Not that anything could be done with them, but just for any case. If someone would still need samples, they can contact me.

1reaction
sabilandcommented, Oct 5, 2022

Vau great 👍! I would probably never be able to debug this (to think that size of the XML request would be the problem) 😆.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Capture request body in ASP.NET Full Framework #379
NET Full Framework #1806. Merged. [BUG] Elastic.Apm.AspNetFullFramework crashes on some SOAP requests to ASP Net Web Service #1759.
Read more >
NET Agent version 1.x
Bug fixesedit ... #1811 Fixed crashes on some SOAP 1.2 requests when using ... Use TraceLogger as default logger in ASP.NET Full Framework...
Read more >
Troubleshooting | APM .NET Agent Reference [1.x]
The logs should include everything from the application startup up until the first request has been executed. No data is sent to the...
Read more >
ASP.NET Website Crashes After Exactly 50 Requests
All of a sudden, after only minor changes in the code, the API crashes after exactly 50 requests, no matter which browser or...
Read more >
How to add Elastic APM Support in Dotnet Framework
Here in this article, we will look at how to use Elastic APM in any .NET application. What is Elastic APM? Elastic APM...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found