You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After Line "service.Create(followup);" in above code, added the following lines of code to log insights: TelemetryClient telemetryClient = new TelemetryClient() {InstrumentationKey= "KEY" }; telemetryClient.TrackTrace("Test6 - Plugin", properties: new Dictionary<string, string>() { { $"Test 6 Plugin", $"Test 6 Plugin".ToString() } });
Same code works via a .Net console application.
Actual Behavior
No Trace gets logged in the Azure Application Insights when executed from CRM Plugin in Online environment.
Error message:
Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Expected Behavior
The Trace should be logged into Azure Application Insights
Version Info
SDK Version : CRM SDK for Dynamics 365 : https://www.microsoft.com/en-us/download/details.aspx?id=50032
.NET Version : 4.5.2
How Application was onboarded with SDK(VisualStudio/StatusMonitor/Azure Extension) :
OS : Visual Studio
Hosting Info (IIS/Azure WebApps/ etc) : Azure
The text was updated successfully, but these errors were encountered:
Need this as well for CRM on-prem. Any ETA when we can expect this to be fixed? Just sending custom events without any automatic inspection of the environment would be enough for us.
#416
@SergeyKanzhelev
Repro Steps
TelemetryClient telemetryClient = new TelemetryClient() {InstrumentationKey= "KEY" }; telemetryClient.TrackTrace("Test6 - Plugin", properties: new Dictionary<string, string>() { { $"Test 6 Plugin", $"Test 6 Plugin".ToString() } });
Actual Behavior
No Trace gets logged in the Azure Application Insights when executed from CRM Plugin in Online environment.
Error message:
Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Expected Behavior
The Trace should be logged into Azure Application Insights
Version Info
SDK Version : CRM SDK for Dynamics 365 : https://www.microsoft.com/en-us/download/details.aspx?id=50032
.NET Version : 4.5.2
How Application was onboarded with SDK(VisualStudio/StatusMonitor/Azure Extension) :
OS : Visual Studio
Hosting Info (IIS/Azure WebApps/ etc) : Azure
The text was updated successfully, but these errors were encountered: