The Temple of Fu

code, systems and games

Is an ambiguous reference between namespace X and namespace Y

leave a comment »

I received this error while trying to build my web application project in Visual Studio: is an ambiguous reference between namespace X and namespace Y

What had happened was that I was using the class designer within Visual Studio to rename a class, I saved and then changed my mind and renamed it back. I do not know where this went wrong but the designer.cs partial class had changed its’ class name to a class name within the namespace X. Changing the class name back to what it was supposed to be fixed it.

To find the offending file simply open ‘Class View’ within Visual Studio and expand the namespace where you know the class should not exist and double click it. This will take you to the offending file where you can make your adjustments.

Hope this helps someone!

Advertisements

Written by lordfu

February 18, 2010 at 2:52 am

Posted in ASP.Net, Development

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: