2>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c0b37647\aaceda91\App_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:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c0b37647\aaceda91\App_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:\Users\clu\source\repos\Edenred\LISA.CMS7.Chile\LISA.CMSWeb\LISA.CMSWeb\CMSModules\Blogs\Controls\Comment_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:\Users\clu\source\repos\Edenred\LISA.CMS7.Chile\LISA.CMSWeb\LISA.CMSWeb\CMSModules\Blogs\Controls\BlogCommentView.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的速度变得很慢,无法接受

The type exists in both DLLs的更多相关文章

  1. CHECK MEMBER TYPE

    检查类里是否存在某种类型的几种方法,以检查xxx类型为例:方法1: template<class T> class has_member_type_Type { ]; }; templat ...

  2. os.path.join合并 os.path.dirname返回上一级目录 os.path.exists(path) os.stat('path/filename')获取文件/目录信息

    import os str1 = "grsdgfd" str2 = "wddf" str3 = "gddgs" # print(str1 + ...

  3. Spring特性--DI

    DI:Dependency Injection(依赖注入),通俗的讲就是一种通过xml配置文件,为交给sping容器的对象初始化参数.又称做控制反转:Inversion of Control(IoC) ...

  4. PHP7函数大全(4553个函数)

    转载来自: http://www.infocool.net/kb/PHP/201607/168683.html a 函数 说明 abs 绝对值 acos 反余弦 acosh 反双曲余弦 addcsla ...

  5. Spring Framework------>version4.3.5.RELAESE----->Reference Documentation学习心得----->使用spring framework的IoC容器功能----->方法一:使用XML文件定义beans之间的依赖注入关系

    XML-based configuration metadata(使用XML文件定义beans之间的依赖注入关系) 第一部分 编程思路概述 step1,在XML文件中定义各个bean之间的依赖关系. ...

  6. php函数研究

    <?php //$number = range(0,50,10); //print_r ($number); //生成一个自增的数组 header("Content-type:text ...

  7. 实现一个 Variant

    很多时候我们希望能够用一个变量来保存和操作不同类型的数据(比如解析文本创建 AST 时保存不同类型的结点),这种需求可以通过继承来满足,但继承意味着得使用指针或引用,除了麻烦和可能引起的效率问题,该做 ...

  8. Silverlight页面通过继承扩展实现

    在Silverlight中有些项目对UserControl重新做了封装基类,如PageBase,要求项目中每个页面都要从PageBase派生,但是过程比较坎坷,本文针对这个功能点的实现以及实现过程中遇 ...

  9. Inno Setup命令行安装卸载参数

    安装命令行参数安装程序接受可选的命令行参数.这些对于系统管理员以及其它程序调用安装程序时有用./SP- 在安装开始时禁用“这将安装... 你想继续吗?”的提示,当然,如果 [Setup] 段的指令 D ...

随机推荐

  1. Leetcode 299.猜字游戏

    猜字游戏 你正在和你的朋友玩 猜数字(Bulls and Cows)游戏:你写下一个数字让你的朋友猜.每次他猜测后,你给他一个提示,告诉他有多少位数字和确切位置都猜对了(称为"Bulls&q ...

  2. Android ScaleDrawable

    顾名思义,Android ScaleDrawable实现一个drawable的缩放.写一个例子. 一个线性布局,垂直放几个ImageView,然后依次缩放若干个ScaleDrawable. 布局文件: ...

  3. 70.打印所有Spring boot载入的bean【从零开始学Spring Boot】

    [从零开始学习Spirng Boot-常见异常汇总] 问题的提出: 我们在开发过程当中,我们可能会碰到这样的问题:No qualifying bean  就是我们定义的bean无法进行注入,那到底是什 ...

  4. HUD-1559 最大子矩阵,dp模拟

    最大子矩阵                                                                                               ...

  5. poj 3678 XOR和OR和AND(简单2-sat问题)

    /* 题意:给你一些边,每条边有一个值和一个运算符XOR OR AND求是否存在一些点使得所有的边根据这些运算符 可以符合条件的权值. 建边方式参考:http://blog.csdn.net/shua ...

  6. docker改变镜像源

    sudo echo “DOCKER_OPTS=\”\$DOCKER_OPTS –registry-mirror=http://your-id.m.daocloud.io -d\”” >> ...

  7. POJ 3248 Catch That Cow

    http://poj.org/problem?id=3278 二维BFS #include <iostream> #include <stdio.h> #include < ...

  8. php 之 日志系统seaslog安装

    php 之 日志系统seaslog 特点: 1.高性能(使用C语言编写的). 2.无需配置. 3.功能完善.使用简单. 安装: 打开php的扩展官网:https://pecl.php.net/. 然后 ...

  9. web.py 使用 db.select 返回的数据只能遍历一次

    2013-10-05 23:04:33|   1. web.py 使用 db.select 返回的数据只能遍历一次import webdb = web.database(dbn='mysql', db ...

  10. 洛谷—— P1714 切蛋糕

    https://www.luogu.org/problem/show?pid=1714 题目描述 今天是小Z的生日,同学们为他带来了一块蛋糕.这块蛋糕是一个长方体,被用不同色彩分成了N个相同的小块,每 ...