Support & Documentation

Prefix: Using with ASP.NET Core/Kestrel

  • ASP.NET Core V1 is supported in Prefix v2.2 and has been tested with apps targeting net452 and NetCoreApp1.0.
  • Some features are not yet supported for .NET Core 2.x, mainly SQL Queries. We are working to add support for all features soon.
  • If you are self-hosting your .NET Core app using Kestrel standalone, you MUST have a Prefix Premium license. Prefix Free will only profile .NET Core applications using IIS/IIS Express as a reverse proxy server.

To make ASP.NET Core work, you must install our middleware.  

1. Add the "StackifyMiddleware" nuget package to your project.

PM> Install-Package StackifyMiddleware

2. Modify your Configure() method in Startup.cs to add our middleware. The order in which you add middleware in your code matters. The StackifyMiddleware must be added before you add MVC via the "app.UseMvc()" method.


3. Start the app from Visual Studio 


FYI: Prefix also works with Serilog and NLog for .NET Core apps. log4net has not yet been ported by their team to .NET Core 1.0


Was this article helpful?
0 out of 3 found this helpful
Have more questions? Submit a request


  • Avatar
    Dustin Ewers

    These instructions don't work.

    I took a fresh .NET Core project. (File -> New -> Default Template) Added the Stackify Middleware NuGet package. Added the middleware to my app setup file per the instructions. Stackify shows "Stackify Middleware not detected" for each of my requests.

  • Avatar
    Matt Watson

    I just tested this and found that the order matters. Try adding the StackifyMiddleware before you do UseMvc(). We are also making some further improvements around core that will be released soon.

  • Avatar
    Rod Sanford

    The order did matter, but there are still some Null null stubs that show up from time to time...and some of my REST calls are coming in with a missing module - data incomplete error message

  • Avatar

    Not working for me with the latest ASP Net Core project. Have adjusted the order and it didn't help.

  • Avatar
    Kenny Long

    Not working for me either. I do get some output, but only some request and only sometimes. If I set a breakpoint on the line configure and wait a few seconds, then continue, I get more results. Must be some kind of race condition? I am getting the middleware is not installed message in Prefix and also getting a message that says I need to restart Visual Studio, even though I started profiling in Prefix and then started Visual Studio. I would be happy to work with you guys on resolving this issue, I really want/need for this to work!

  • Avatar
    Brave Cobra

    Not working for me either. With both Kestrel and IIS Express,following these guides, I get no output at all. This is majorly broken!!

Powered by Zendesk