1
我在嘗試排除Razor渲染錯誤。我試過從頭開始重新創建項目。任何想法可能會導致這種情況?剃鬚刀渲染錯誤
error CS1502: The best overloaded method match for 'ServiceStack.Razor.RenderingPage.WriteTo(System.IO.TextWriter, ServiceStack.MiniProfiler.HelperResult)' has some invalid arguments
堆棧跟蹤
at ServiceStack.Razor.Compilation.RazorPageHost.Compile() at ServiceStack.Razor.Managers.RazorPageResolver.EnsureCompiled(RazorPage page, IHttpResponse response) at ServiceStack.Razor.Managers.RazorPageResolver.CreateRazorPageInstance(IHttpRequest httpReq, IHttpResponse httpRes, Object dto, RazorPage razorPage) at ServiceStack.Razor.Managers.RazorPageResolver.ResolveAndExecuteRazorPage(IHttpRequest httpReq, IHttpResponse httpRes, Object model, RazorPage razorPage) at ServiceStack.Razor.Managers.RazorPageResolver.ProcessRequest(IHttpRequest httpReq, IHttpResponse httpRes, Object dto) at ServiceStack.WebHost.Endpoints.Formats.HtmlFormat.c__DisplayClass1.b__0(IViewEngine x) at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate) at ServiceStack.WebHost.Endpoints.Formats.HtmlFormat.SerializeToStream(IRequestContext requestContext, Object response, IHttpResponse httpRes) at ServiceStack.Common.Web.HttpResponseFilter.SerializeToStream(IRequestContext requestContext, Object response, Stream responseStream) at ServiceStack.Common.Web.HttpResult.WriteTo(Stream responseStream) at ServiceStack.WebHost.Endpoints.Extensions.HttpResponseExtensions.WriteToOutputStream(IHttpResponse response, Object result, Byte[] bodyPrefix, Byte[] bodySuffix) at ServiceStack.WebHost.Endpoints.Extensions.HttpResponseExtensions.WriteToResponse(IHttpResponse response, Object result, ResponseSerializerDelegate defaultAction, IRequestContext serializerCtx, Byte[] bodyPrefix, Byte[] bodySuffix)