使用 HelpPage 组件 CompilationException
好不容易在ubuntu上搭建了mono+jexus,欣喜若狂的部署上发布的网站,急忙打开,成功运行。
但是别高兴的太早,当我打开WebApi帮助页时出现了CompilationException。

解决办法
修改 WebConfig system.web 的节点里添加 <assemblies> 如下
<system.web><compilation debug="true" targetFramework="4.0" /><compilation debug="true" targetFramework="4.0"><assemblies><add assembly="System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/></assemblies></compilation>
</system.web>ok,重启jexus,完美运行。













