azure-diagnostics

Trying to publish using Azure SDK 2.5 results in a null-ref (Object reference not set to an instance of an object) [closed]

China☆狼群 提交于 2019-12-23 14:51:55
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 4 years ago . We upgraded our azure deployment project from SDK 2.4 to SDK 2.5 . The project has two worker roles. Publishing the 2.4 project to a cloud service used to work fine but after upgrading to 2.4 we see publish failing with the following output in the Microsoft Azure Activity Log Window: 4:44:19 PM -

.NET TraceSource not working under Windows Azure

守給你的承諾、 提交于 2019-12-21 05:24:06
问题 I'm trying to display some TraceSource logging information to the Azure emulator ( consoley ) window. None of the TraceSource lines are displayed. Only the stock Trace lines and various low level azure messages. Here's my steps to repo, including code snippets: File -> New -> Cloud Service (SDK 2.0) -> (add worker role). Add a TraceSource to the WorkerRole. Update the app.config with tracing data. Play/Publish. NOTE all the other default code is in there, such as the .csfg which says to use

log4net traceappender only logs messages with level 'verbose' when using Windows Azure DiagnosticsMonitor

给你一囗甜甜゛ 提交于 2019-12-20 09:58:09
问题 I have an azure worker role which I have configured to use a log4net Trace Appender which writes to WindowsAzure.Diagnostics. This is done by making the following calls in the RoleEntryPoint of the worker role. using System; using Microsoft.WindowsAzure.Diagnostics; using log4net.Config; namespace XXX { public class WorkerRole : RoleEntryPoint { public override bool OnStart() { var config = DiagnosticMonitor.GetDefaultInitialConfiguration(); config.Logs.ScheduledTransferLogLevelFilter =

Why can't configure Azure diagnostics to use Azure Table Storage via new Azure Portal?

天涯浪子 提交于 2019-12-18 13:36:05
问题 I am developing a web api which will be hosted in Azure. I would like to use Azure diagnostics to log errors to Azure table storage. In the Classic portal, I can configure the logs to go to Azure table storage. Classic Portal Diagnostic Settings However in the new Azure portal, the only storage option I have is to use Blob storage: New Azure Portal Settings It seems that if I was to make use of a web role, I could configure the data store for diagnostics but as I am developing a web api, I

Performance impact of writing Azure diagnostic logs to blob storage

穿精又带淫゛_ 提交于 2019-12-14 01:40:31
问题 Our C# web app, running on Azure, uses System.Diagnostics.Trace to write trace statements for debugging/troubleshooting. Once we enable blob storage for these logs (using the "Application Logging (blob)" option in the Azure portal), the response time for our application slows down considerably. If I turn this option off, the web app speeds up again (though obviously we don't get logs in blob storage anymore). Does anyone know if this is expected? We certainly write a lot of trace statements

Do I have to redeploy an Azure Web Role to turn on IIS Logging?

走远了吗. 提交于 2019-12-13 06:56:50
问题 I have an Azure web role running an MVC Web API site. I'm using the diagnostics.wadcfg file to configure logging. So far I've just be using tracing and I view it with the Azure Diagnostics Monitor 2 from Cerebrata/Redgate. All is well. I wanted to start logging out IIS requests. I know I can go to the wad-control-container to do some tweaks to logging by updating the content there as seen here: <?xml version="1.0"?> <ConfigRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http:/

ARM template deploying Diagnostics Settings does not enable Metrics logs

本秂侑毒 提交于 2019-12-13 04:01:54
问题 I'm using Azure RM Template deployments with a Visual Studio 2017 Resource Group project to deploy IoTHub instance with diagnostics settings in Log Analytics. The problem is with deployment of the Diagnostics Settings template and specifically with the AllMetrics category under the metrics property. I'm following the instructions for deploying Diagnostics Settings as Non-Compute resource template The deployment completes successfully, but this one { "type": "providers/diagnosticSettings",

The paths Format is not supported exception

血红的双手。 提交于 2019-12-13 01:24:49
问题 I just installed Windowsazure SDK 1.5 and respective tools for Visualstudio 2010. But when i run the compute emulator it gives me the following exception: Encountered an unexpected error The given path's format is not supported. at System.Security.Util.StringExpressionSet.CanonicalizePath(String path, Boolean needFullPath) at System.Security.Util.StringExpressionSet.CreateListFromExpressions(String[] str, Boolean needFullPath) at System.Security.Permissions.FileIOPermission.AddPathList

Enabling logging/debugging in Azure worker role to azure storage

主宰稳场 提交于 2019-12-11 08:29:25
问题 I have a .net project that I am trying to deploy as a worker role in Azure. I am able to publish the file directly from Visual Studio but then when the worker role runs I am getting a uncaught exception. I am attempting to enable logging to azure storage from the worker role so I can get more information on the exception but I am running into issues getting MIT configured. Can anyone provide assistance on the best way to enable this logging? 回答1: I’m not a massive fan of the recommended Azure

Is it possible to use Azure diagnostics without being in a hosted service

对着背影说爱祢 提交于 2019-12-11 01:10:34
问题 I have several web and worker roles in my solution, but I also have a non-Azure application running on a Azure hosted VM. That application connects to Azure storage for various things like reading and writing blobs and queues, and that works fine. I'd like to use Azure diagnostics from within that same application (a .NET app running on a VM hosted in Azure). However, if I try to initialize diagnostics I get an exception that: System.InvalidOperationException: Not running in a hosted service