-
Notifications
You must be signed in to change notification settings - Fork 287
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
SQL dependencies do not work with Microsoft.Data.SqlClient in 2.11 with ASP.NET MVC 5 app #1347
Comments
I seem to have tracked this down to a bug in the Microsoft.Data.SqlClient library, waiting for a response from there. |
@stebet Thanks for investigating this! We have the same issue if Statusmonitor/profiler is enabled as well, as Application Insights is not decorating Microsoft.Data.XXX. |
Is there any update on this? I just got done upgrading all of our projects to EF Core. I didn't realize this was an issue until now. |
If you are using Microsoft.Data.SqlClient, you should be fine if you upgrade to the latest release (1.1.0 as of this comment). |
This issue was fixed with this PR: dotnet/SqlClient#241 |
If you are reporting bug/issue, please provide detailed Repro instructions.
Repro Steps
Actual Behavior
An error can be seen in the Debug output window, with the following information:
ERROR: Exception in Command Processing for EventSource Microsoft-AdoNet-SystemData: Event BeginExecute is givien event ID 2 but 1 was passed to WriteEvent.
Expected Behavior
SQL dependency is properly picked up and reported, without errors.
Version Info
SDK Version : 2.11
.NET Version : .NET Framework 4.7.2
How Application was onboarded with SDK(VisualStudio/StatusMonitor/Azure Extension) :
OS : VisualStudio
Hosting Info (IIS/Azure WebApps/ etc) : IIS
The text was updated successfully, but these errors were encountered: