Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8723215
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T07:34:48+00:00 2026-06-13T07:34:48+00:00

ServiceStack includes the awesome MiniProfiler built in. However, it is a different version, compiled

  • 0

ServiceStack includes the awesome MiniProfiler built in. However, it is a different version, compiled into ServiceStack, in it’s own namespace.

I have got the profiler working with normal ADO.NET connections, but I am struggling to make it work with my Entity Framework 4.2 data contexts.

Normally, one would use the MiniProfiler.EF NuGet package, but since it is built against the official MiniProfiler version it does not work.

What is the easiest way of either:

  • Swapping out the MiniProfiler in ServiceStack for the official version (I researched this and it does not seem easy, since SS generates the JavaScript for the profiler deep in some handlers) ?
  • Or, making the built in profiler work with ServiceStack AND Entity Framework ?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T07:34:49+00:00Added an answer on June 13, 2026 at 7:34 am

    So, I didn’t get any good answers on this, so I decided the way to go was to port MiniProfiler.EF to run against ServiceStack. Luckily, this was not too much of an effort.

    The result is here: https://github.com/driis/ServiceStack.MiniProfiler.EntityFramework

    It is the exact same code as what is in MiniProfiler.EF, just adjusted namespaces and fixed a few errors to make it compile. To use, simply put the assembly in your project (instead of the MiniProfiler.EF package), and call MiniProfilerEF.Initialize_EF42() in your startup code – all done.

    I will probably try to make a pull request against ServiceStack.Contrib when I have the time, so it can be included there, possibly with it’s own NuGet package.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just started to use ServiceStack which is an amazing library. However, I
I have built a service with ServiceStack (customer example) as per this link: https://docs.google.com/present/view?id=dg3mcfb_213gsvvmmfk
I am using ServiceStack and have my own handlers in for any exceptions thrown
have created REST service using servicestack and in post request I have return object
I have been tinkering around with ServiceStack to expose some web services and have
I have constructed a simple Rest service using ServiceStack (which is brilliant), that returns
I'm using ServiceStack.Text's JSON serialization stuff for one of my projects. However, when deserializing
I have a super-simple ServiceStack webservice configured using the latest Nuget package (3.8.3 I
I have a ServiceStack REST service (PUT and POST) which I have tested with
I have a working ServiceStack application which started off part of my MVC application

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.