【问题标题】:the type exists in both asp.net该类型同时存在于 asp.net 中
【发布时间】:2012-12-12 13:48:24
【问题描述】:

我只是将 blogengine.net 集成到我的扩展网络应用程序(不是网站)中

为此,我已将所有博客引擎页面转换为 Web 应用程序页面。根据应用文件夹设置命名空间引用

我已经成功构建了解决方案。但是当我运行主应用程序时出现以下错误。

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0433: The type 'MyStore.App_Code.Controls.PostPager' exists in both 'c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\6332283b\32bb0d6a\App_Code.afjt0bia.dll' and 'c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\6332283b\32bb0d6a\assembly\dl3\faca6d87\a3e83425_6ad8cd01\MyStore.DLL'

我检查了所有命名空间引用,但没有发现任何重复的引用。

请帮助我摆脱困境。

【问题讨论】:

    标签: blogengine.net


    【解决方案1】:

    将您的代码文件移出App_Code 文件夹,并将它们放入Classes 文件夹中。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-03-15
      • 2011-04-02
      • 2017-12-21
      • 2022-12-30
      • 2010-09-27
      • 1970-01-01
      相关资源
      最近更新 更多