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