alexmac alexmac - 1 month ago 4
ASP.NET (C#) Question

Why does the message BC30560 'mymodule_ascx' is ambiguous in the namespace 'ASP' come up sometimes then go away?

Often when making changes to a VS2008 ASP.net project we get a message like:

BC30560: 'mymodule_ascx' is ambiguous in the namespace 'ASP'.

This goes away after a recompile or sometimes just waiting 10 seconds and refreshing the page.

Any way to get rid of it?

Answer

Another possibility:

http://channel9.msdn.com/forums/TechOff/157050-BC30560-mycontrolascx-is-ambiguous-in-the-namespace-ASP/

Seemed to have some success with changing

src="mycontrol.ascx.cs"

to

CodeBehind="mycontrol.ascx.cs"