• The type exists in both DLLs


    2>C:WindowsMicrosoft.NETFrameworkv4.0.30319Temporary ASP.NET Files ootc0b37647aaceda91App_Web_uuzwuzfv.0.cs(315,29):

    error CS0433: The type 'cmsmodules_blogs_controls_blogcommentedit_ascx' exists in both

    'App_Web_blogcommentedit.ascx.fd0037e4.boauzrja, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' and

    'App_Web_blogcommentedit.ascx.fd0037e4.l0rorrjd, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'


    2>C:WindowsMicrosoft.NETFrameworkv4.0.30319Temporary ASP.NET Files ootc0b37647aaceda91App_Web_uuzwuzfv.2.cs(736,29):

    error CS0433: The type 'cmsmodules_blogs_controls_blogcommentedit_ascx' exists in both

    'App_Web_blogcommentedit.ascx.fd0037e4.boauzrja, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' and

    'App_Web_blogcommentedit.ascx.fd0037e4.l0rorrjd, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'


    2>C:Usersclusource eposEdenredLISA.CMS7.ChileLISA.CMSWebLISA.CMSWebCMSModulesBlogsControlsComment_Edit.aspx(9,27):

    error CS0433: The type 'cmsmodules_blogs_controls_blogcommentedit_ascx' exists in both

    'App_Web_blogcommentedit.ascx.fd0037e4.boauzrja, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' and

    'App_Web_blogcommentedit.ascx.fd0037e4.l0rorrjd, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'


    2>C:Usersclusource eposEdenredLISA.CMS7.ChileLISA.CMSWebLISA.CMSWebCMSModulesBlogsControlsBlogCommentView.ascx(38,27):

    error CS0433: The type 'cmsmodules_blogs_controls_blogcommentedit_ascx' exists in both

    'App_Web_blogcommentedit.ascx.fd0037e4.boauzrja, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' and

    'App_Web_blogcommentedit.ascx.fd0037e4.l0rorrjd, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'

    Solution

    https://stackoverflow.com/questions/5425638/error-the-type-exists-in-both-directories

    https://stackoverflow.com/questions/371426/asp-net-error-the-type-foo-exists-in-both-temp1-dll-and-temp2-dll

    http://sellsbrothers.com/1995

    Add the batch="false" attribute to the "compilation" element of the web.config file.

    This problem occurs because of the way in which ASP.NET 2.0 uses the application references and the folder structure of the application to compile the application. If the batch property of the element in the web.config file for the application is set to true, ASP.NET 2.0 compiles each folder in the application into a separate assembly.

    https://msdn.microsoft.com/en-us/library/s10awwz0(v=vs.100).aspx

    batch

    Optional Boolean attribute.

    Indicates whether batching is supported.

    If True, eliminates the delay caused by the compilation required when you access a file for the first time. When this attribute is set to True, ASP.NET precompiles all the uncompiled files in a batch mode, which causes an even longer delay the first time the files are compiled. However, after this initial delay, the compilation delay is eliminated on subsequent access of the file.

    The default is True.     但是设置成false之后,编译website的速度变得很慢,无法接受

  • 相关阅读:
    楼宇监控说明
    数字音视频监控系统说明
    图书管理系统详细设计说明
    超邃视频远程监控系统说明
    单点登录系统(SSO)详细设计说明
    视频监控系统的作用何在
    视频监控技术与应用
    HTML--CSS样式表--基本概念(超链接的状态)
    HTML静态网页--框架
    HTML--表格与表单
  • 原文地址:https://www.cnblogs.com/chucklu/p/9370677.html
Copyright © 2020-2023  润新知