Skip to content

Miniprofiler SQL logging in web application + wcf services #225

@vpujarla

Description

@vpujarla

I am using MiniProfiler.3.2.0.157 (which current production ready version??)

Here is my scenario: Our project is designed in two layers,

  1. presentation layer (ASP.NET Web Forms)
  2. service layer (WCF).

Here we have added miniprofiler in presentation and wcf service layers and it works perfectly fine, we are able see profiling statistics in browser with tree level statistics (parent request and child request)

After that, we have added logging same to SQL server, then miniprofiler started giving issues and it was not logging WCF service profile timings/steps. We are getting exceptions at stop() method.
Looks like there is an issue with SqlServerStorage.Save() method.

I think, this code is some thing like given below:
if (profiler.Root != null)
{
profiler.Root.MiniProfilerId = profiler.Id;
this.FlattenTimings(profiler.Root, timings);
}

Can you please help me to find a way to get out of this issue and log my both layers of profiling statistics into SQL?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions