MiniProfiler error asp.net mvc 5

1

I'm trying to use the MiniProfiler

I made the following configuration:

PM> Install-Package MiniProfiler

PM> Install-Package MiniProfiler.MVC4 (According to Doc, it also supports MVC5)

PM> Install-Package MiniProfiler.EF6

After that, in my View Layout, I put the following render

@StackExchange.Profiling.MiniProfiler.RenderIncludes() // here the JS file is rendered

In my% w /% of the following configuration:

protected void Application_BeginRequest()
{
    if (Request.IsLocal)
    {
        MiniProfiler.Start();
    } 
}

protected void Application_EndRequest()
{
    MiniProfiler.Stop();
}

and in% with% of the following codes:

  ViewEngines.Engines.Clear();
  ViewEngines.Engines.Add(new ProfilingViewEngine(new RazorViewEngine()));

  MiniProfilerEF6.Initialize();

And finally I will register a Filter in FilterConfig

  filters.Add(new ProfilingActionFilter());

But when I put it in my main project, I get the following error on the page, which is the JS loading that is in Global.asax as shown above in the settings.

Well, it does not load the script completely, causing this error, I do not know the reason, it loads the JS in only half.

  

Uncaught SyntaxError: Unexpected end of input

In my Web.Config, inside the system.webServer & handler I also put the following:

   <add name="MiniProfiler" path="mini-profiler-resources/*" verb="*" type="System.Web.Routing.UrlRoutingModule" resourceType="Unspecified" preCondition="integratedMode" />
    
asked by anonymous 11.12.2014 / 14:08

0 answers