The type exists in both DLLs

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

 

转载于:https://www.cnblogs.com/chucklu/p/9370677.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值