Class is ambiguous in the namespace – Fixed

Last night, I slept early 10.45 PM, however wokeup @ 5.45 AM after having my regular # of sleep hours. I have tried my best to sleep for next couple of hours, as there is yet another long work day is awaiting me.

I stopped by work 8 AM this morning and started to work on my issues with code getting work on Visual Studio 2005 IDE. The following errors from yesterday’s port pissed me off.

  • Compiler Error Message: BC30456: ‘InitializeCulture’ is not a member of ‘ASP.login_aspx’.
  • ASPNET: Make sure that the class defined in this code file matches the ‘inherits’ attribute, and that it extends the correct base class (e.g. Page or UserControl).
  • Login is ambiguous in the namespace MyNameSpace.MyApplication

I had a source code with .aspx file containing


<%@ Page Language="VB" AutoEventWireup="false" 
          CodeFile="Login.aspx.vb" 
          Inherits="MyNamespace.MyApplication.Login" %>

So, for some reason I changed CodeFile to CodeBehind and voila all the above problems fixed. Now, I need to figure out how in the hell I had CodeFile instead of CodeBehind and whatz the difference between them.

Shyam K. Arjarapu

3 thoughts on “Class is ambiguous in the namespace – Fixed

  1. It worked for me too !!
    this is really strange. Microsoft replaced codebehind with codefile in VS2005. Something is wrong.
    Either I am using an obsolete technique or Microsoft missed something.

Leave a Reply

Your email address will not be published. Required fields are marked *