ServiceStack Razor web.config [英] ServiceStack Razor web.config

查看:45
本文介绍了ServiceStack Razor web.config的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  <configSections>
    <sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
      <section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
      <section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
    </sectionGroup>
  </configSections>

更新到 v3.9.55.0 后,我的网络配置出现了这些错误.该网站仍然有效(令人惊讶).如果我删除它们,该网站显然将无法工作.我不确定如何修复这些错误,否则它会影响任何事情.

After I updated to v3.9.55.0 my web config got these errors. The website still works (surprisingly). The website obviously won't work if I remove them. I am not sure how to fix these errors or it would effect anything at all.

这似乎与SS不再使用Razor 1.0有关?我应该简单地添加 System.web.WebPages.RazorRazor 2.0 来解决问题还是什么?

It seems to have something to do with SS no longer use Razor 1.0? Should I simply add Razor 2.0 of System.web.WebPages.Razor to fix the issue or what?

此外,参考 dll 中有一个 System.Web.Razor.Unoffical Razor v3.0.它是 SS mod 还是 MS 官方测试版?

Also, there is a System.Web.Razor.Unoffical Razor v3.0 in the reference dlls. Is it a SS mod or MS offical beta?

你看,我有点困惑.我在哪里可以获得有关此新更新的一些解释?谢谢.

You see, I am a bit confused. Where do I get some explanation of this new update? Thank you.

推荐答案

这是工作正常的部分.

<configSections>
    <sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
      <section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
      <section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
    </sectionGroup>
  </configSections>

它已经过尝试和测试.您也可以查看我的 razor rockstars 的 fsharp 端口以及 razor rockstars,我不知道 razorRockstars 更新了最新的库.

It is tried and tested. Also you can check out my fsharp port of razor rockstars along with razor rockstars, I don't know if razor rockstars is updated with latest libraries.

更新

我检查了 razor rockstars 我猜它已经更新了最新的框架.你也应该检查一下.

I checked razor rockstars I guess it is updated with latest frameworks. You should check out that too.

解决此类错误的最佳方法是使用已完成的项目而不是 dll.因此,您可以调试源代码本身,并且可以修补任何问题.

Best way to solve this kind of error is to use completed project instead of dll. So, you can debug the source code itself and it there is any issue you can patch back.

如果需要更多详细信息,请告诉我.

Please let me know if any further details required.

这篇关于ServiceStack Razor web.config的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆