# 404 when miniprofiler posts to mini-profiler-resources/results

**URL:** <https://community.miniprofiler.com/t/404-when-miniprofiler-posts-to-mini-profiler-resources-results/149>\
**Category:** .NET\
**Created:** [May 2, 2012, 9:36pm UTC](https://community.miniprofiler.com/t/404-when-miniprofiler-posts-to-mini-profiler-resources-results/149 "2012-05-02T21:36:02Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![daveh](https://avatars.discourse-cdn.com/v4/letter/d/85e7bf/32.png) [@daveh](https://community.miniprofiler.com/u/daveh)\
**Post date:** [May 2, 2012, 9:36pm UTC](https://community.miniprofiler.com/t/404-when-miniprofiler-posts-to-mini-profiler-resources-results/149/1 "2012-05-02T21:36:02Z")

</div>

We have a [ASP.NET](http://ASP.NET) MVC app. We are using the latest version and have tried all the web.config changes suggested around the place for other 404 issues.

One difference here is that it only seems to apply to the text/html POSTs. All GETs and application/json POSTs work.

---

<div class="post-metadata">

**Author:** ![Joe](https://sea2.discourse-cdn.com/flex016/user_avatar/community.miniprofiler.com/joe/32/488_2.png) [@Joe](https://community.miniprofiler.com/u/Joe)\
**Post date:** [May 3, 2012, 8:07am UTC](https://community.miniprofiler.com/t/404-when-miniprofiler-posts-to-mini-profiler-resources-results/149/2 "2012-05-03T08:07:32Z")

</div>

I am having the same issue. Below is what the Chrome console tells me.

@Sam which KB article are you talking about?

 ![alt text](http://i.imgur.com/Yw1NB.png)

---

<div class="post-metadata">

**Author:** ![Joe](https://sea2.discourse-cdn.com/flex016/user_avatar/community.miniprofiler.com/joe/32/488_2.png) [@Joe](https://community.miniprofiler.com/u/Joe)\
**Post date:** [May 5, 2012, 5:09am UTC](https://community.miniprofiler.com/t/404-when-miniprofiler-posts-to-mini-profiler-resources-results/149/3 "2012-05-05T05:09:44Z")

</div>

When using MiniProfiler in an application hosted on multiple instances, MiniProfiler receives a 404 when POST is done to /mini-profiler-resources/results.

The reason is because the default implementation of the IStorage provider uses HttpRuntime.Cache. This cache is machine specific, and as a result instance B **cannot** access the MiniProfiler data saved on instance A.

See the [MiniProfiler.AzureCacheStorage](https://github.com/joekaiser/MiniProfiler.AzureCacheStorage) repo on GitHub for the solution.

* * *

I thought about submitting this as a pull request to the project, but MiniProfiler would then have to take a dependency on the Azure caching assemblies. I don’t think this is wise, and would bloat Mini Profiler a little bit.

In a perfect world, MiniProfiler would have an ICacheProvider (defaulted to the HttpRuntim.Cache) that we would be able to specify. There could be providers the Azure cache, Memcached, redis, etc…

Perhaps that would make a good pull request…

---

<div class="post-metadata">

**Author:** ![sam](https://sea2.discourse-cdn.com/flex016/user_avatar/community.miniprofiler.com/sam/32/377_2.png) [@sam](https://community.miniprofiler.com/u/sam)\
**Post date:** [May 3, 2012, 12:53am UTC](https://community.miniprofiler.com/t/404-when-miniprofiler-posts-to-mini-profiler-resources-results/149/4 "2012-05-03T00:53:16Z")

</div>

Can you post a link to a sample that reproduces the issue? Is the kb article relevant?

---

<div class="post-metadata">

**Author:** ![Joe](https://sea2.discourse-cdn.com/flex016/user_avatar/community.miniprofiler.com/joe/32/488_2.png) [@Joe](https://community.miniprofiler.com/u/Joe)\
**Post date:** [May 4, 2012, 5:58am UTC](https://community.miniprofiler.com/t/404-when-miniprofiler-posts-to-mini-profiler-resources-results/149/6 "2012-05-04T05:58:10Z")

</div>

@daveh, Would you by chance be hosting this in Azure?

---

<div class="post-metadata">

**Author:** ![Joe](https://sea2.discourse-cdn.com/flex016/user_avatar/community.miniprofiler.com/joe/32/488_2.png) [@Joe](https://community.miniprofiler.com/u/Joe)\
**Post date:** [May 5, 2012, 5:08am UTC](https://community.miniprofiler.com/t/404-when-miniprofiler-posts-to-mini-profiler-resources-results/149/7 "2012-05-05T05:08:00Z")

</div>

Error solved. See the workaround. Maybe this should be added to the KB

---

<div class="post-metadata">

**Author:** ![DanielLidstrom](https://sea2.discourse-cdn.com/flex016/user_avatar/community.miniprofiler.com/daniellidstrom/32/1000_2.png) [@DanielLidstrom](https://community.miniprofiler.com/u/DanielLidstrom)\
**Post date:** [December 10, 2012, 9:05pm UTC](https://community.miniprofiler.com/t/404-when-miniprofiler-posts-to-mini-profiler-resources-results/149/8 "2012-12-10T21:05:50Z")

</div>

I’m having the same problem. My application is running in IIS express and I have tried the solutions on SO. What else could I try?

---

<div class="post-metadata">

**Author:** ![DanielLidstrom](https://sea2.discourse-cdn.com/flex016/user_avatar/community.miniprofiler.com/daniellidstrom/32/1000_2.png) [@DanielLidstrom](https://community.miniprofiler.com/u/DanielLidstrom)\
**Post date:** [December 10, 2012, 9:39pm UTC](https://community.miniprofiler.com/t/404-when-miniprofiler-posts-to-mini-profiler-resources-results/149/9 "2012-12-10T21:39:14Z")

</div>

Never mind, I was doing something stupid 🙂

---

<div class="post-metadata">

**Author:** ![willgrosett](https://avatars.discourse-cdn.com/v4/letter/w/3e96dc/32.png) [@willgrosett](https://community.miniprofiler.com/u/willgrosett)\
**Post date:** [February 18, 2014, 5:11pm UTC](https://community.miniprofiler.com/t/404-when-miniprofiler-posts-to-mini-profiler-resources-results/149/10 "2014-02-18T17:11:59Z")

</div>

Realise my issue was probably due to something else, but hopefully this will help someone else.

I managed to get a 404 - turned out it was because I was discarding the results at the end of the request…  
MiniProfiler.Stop(discardResults: true);

…changed to…  
MiniProfiler.Stop(discardResults: false);
