2013-06-25 2 views
3

J'ai installé servicestack MVC dans une application MVC4 via nuget et en essayant d'activer le mini profileur.'ServiceStack.MiniProfiler.IHtmlString' ne contient pas de définition pour 'AsRaw'

Je l'ai fait selon les instructions suivantes dans le Global.asax:

protected void Application_BeginRequest(object src, EventArgs e) 
    { 
     if (Request.IsLocal) 
      ServiceStack.MiniProfiler.Profiler.Start(); 
    } 

protected void Application_EndRequest(object src, EventArgs e) 
    { 
     ServiceStack.MiniProfiler.Profiler.Stop(); 
    }  

Et je mis les AsRaw() @ ServiceStack.MiniProfiler.Profiler.RenderIncludes() dans la page de mise en page.. Cependant, cette méthode n'existe pas dans cette référence. Je peux seulement voir "ToHtmlString()" & "ToString()" dans "@ ServiceStack.MiniProfiler.Profiler.RenderIncludes()" qui rend le html échappé. La méthode "AsRaw()" a-t-elle été supprimée dans MVC4?

Répondre

Questions connexes