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

Unable to log telemetry from plugins executed inside CRM Online (Partial Trust) #797

Closed
shalabhgupta1985 opened this issue May 7, 2018 · 3 comments
Labels

Comments

@shalabhgupta1985
Copy link

shalabhgupta1985 commented May 7, 2018

#416
@SergeyKanzhelev

Repro Steps

  1. Created a basic sample plugin as per the following MSDN: https://msdn.microsoft.com/en-us/library/gg594416.aspx
  2. 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() } });
  3. 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

@Mikkel-Kaas
Copy link

Mikkel-Kaas commented May 28, 2018

Yes please. This would be hugely helpful.
The issue is also described here: https://community.dynamics.com/crm/f/117/t/258696

@mpseidel
Copy link

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.

@github-actions
Copy link

This issue is stale because it has been open 300 days with no activity. Remove stale label or comment or this will be closed in 7 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants