C# 博客引擎编译错误

C# 博客引擎编译错误,c#,asp.net,blogengine.net,blog-engine,C#,Asp.net,Blogengine.net,Blog Engine,在尝试编译BlogEngine 2.6 Web应用程序项目时,我遇到了三个类似的错误: 与智能感知的对比: the type 'RazorHelpers' exists in both 'App_Code' and BlogEngine.Web.dll 编译错误: Error 27 The type 'RazorHelpers' exists in both 'C:\inetpub\wwwroot\Nordic\Bin\BlogEngine.Web.dll'

在尝试编译BlogEngine 2.6 Web应用程序项目时,我遇到了三个类似的错误:

与智能感知的对比:

the type 'RazorHelpers' exists in both 'App_Code' and BlogEngine.Web.dll
编译错误:

Error    27  The type 'RazorHelpers' exists in both 
             'C:\inetpub\wwwroot\Nordic\Bin\BlogEngine.Web.dll' and 'App_Code'  
              c:\inetpub\wwwroot\Nordic\themes\RazorHost\CommentView.ascx   25  

在WAP项目中,您要确保不使用app_代码目录,因为该目录中的类将被编译两次(一次在代码隐藏中,一次在运行时),除非您将该文件从WAP项目中排除


您也可以尝试将应用程序代码目录重命名为其他目录。

最终,我不得不放弃2.6 WAP版本,切换到网站版本,然后迁移我所有的设计和代码自定义。

显然,它实际上是一个WAP,我是作为一个网站项目打开它的。然而,问题仍然存在+1因为你所说的在技术上是正确的:-)