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的速度变得很慢,无法接受

  • 相关阅读:
    SPOJ375(树链剖分)
    最短路相关模板、总结
    Linux入门基础#2:Linux文件系统基本结构
    poj 2229 Sumsets (DP)
    Power BI for Office 365(七) Power BI站点
    HDU1045 Fire Net
    Android 系统搜索框(有浏览记录)
    Struts2 Action接收表单参数
    要注意的点
    复习昨天的,继续过Hard题目
  • 原文地址:https://www.cnblogs.com/chucklu/p/9370677.html
Copyright © 2011-2022 走看看