I have an error in app's log:
System.Web.HttpCompileException (0x80004005): c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\mywebapp\90904156\99c20f06\App_Web_mysearchctrl.ascx.2c0d06d2.yznxwhzi.0.cs(935): error CS0433: The type 'ASP.searchcontrols_period_ascx' exists in both 'c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\mywebapp\90904156\99c20f06\App_Web_yzo1vfgs.dll' and 'c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\mywebapp\90904156\99c20f06\App_Web_hzenlbp0.dll'
at System.Web.Compilation.AssemblyBuilder.Compile()
at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
It solves by deleting all from Temporary ASP.NET files, but after a time it appears again, so I need to find out where it comes from and prevent it in future. Please, help me.
Both controls are directly in web app.
P.S. I have no classes with the same names in my app. And error appears when app built in Release mode. And I always clean and rebuild solution before publishing