zoukankan      html  css  js  c++  java
  • 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的速度变得很慢,无法接受

  • 相关阅读:
    PhpStorm 2019.3 汉化包
    PHP性能监控
    Jsonp post 跨域方案
    解决前后端调用,跨域二次请求Access-Control-Max-Age
    npm安装全局模块之后项目提示找不到的解决
    centos7 安装nodejs 最新版
    基于 ThinkJS 的 WebSocket 通信详解
    php方法注释
    恶意评论过滤插件
    redis与memcached区别
  • 原文地址:https://www.cnblogs.com/chucklu/p/9370677.html
Copyright © 2011-2022 走看看