Compilation error on a user control

Posted by MikeP on Stack Overflow See other posts from Stack Overflow or by MikeP
Published on 2010-11-05T17:44:19Z Indexed on 2011/01/15 15:53 UTC
Read the original article Hit count: 301

I'm stumped!

We have a user control for managing account information. We use this particular control on two pages. On one page, everything works perfectly and meets our expectation. On the second page however we receive compilation errors stating that:

"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\lrpcentral\0e987bea\6719c8b6\App_Web_PageThatFails.aspx.f3d462c1.oi52bvii.0.cs(172): error CS0433: The type 'xxxx_ascx' exists in both 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\APPLICATIONNAME\0e987bea\6719c8b6\App_Web_xxxx.ascx.cdcab7d2.xbnvt2za.dll' and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\APPLICATIONNAME\0e987bea\6719c8b6\App_Web_eix7xllr.dll'

My problem is similar to Cyril's but the "delete everything from Temp" is not an option for me, and Cyril's solution does not apply since the only variable we have is contained in the designer file, which is not deployed to our production environment (we pre-compile).

After reading David's answer (here) I examined my directories for circular dependency and was unable to find any.

Structure:

Top Level >

Page that works

Control

Directory A > Page that causes the error

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET