在IIS里修改web.config,增加下面一行设置就可以解决问题。

<PageParserPaths>
   <PageParserPath VirtualPath="/*" CompilationMode="Always" AllowServerSideScript="true" IncludeSubFolders="true" />
</PageParserPaths> 

 

 http://verytiny.iteye.com/blog/506077

相关文章: