0
votes

I keep getting this error when I try to enable Diagnostics on a Azure cloud service webrole using Server Explorer in Visual Studio 2015:

Adding Diagnostics extension to Role failed: Validation failed on PublicConfig element for the extension with error: The element 'Metrics' in namespace 'http:schemas.microsoft.com/ServiceHosting/2010/10/DiagnosticsConfiguration' has incomplete content. List of possible elements expected: 'MetricAggregation' in namespace 'http:schemas.microsoft.com/ServiceHosting/2010/10/DiagnosticsConfiguration'. Microsoft.Cct.StatusWindow.DispatchedStatusItemContainer

This message pops up after I select a storage account en then click OK in the diagnostics configuration.

How can I successfully enable diagnostics?

Error message

1
Have you installed the latest azure tooling in visual studio?Peter

1 Answers

0
votes

Why server explorer and not the web role settings? There is what you need and even more - Application Insights.

enter image description here