Link to home
Start Free TrialLog in
Avatar of nesoftware
nesoftware

asked on

Global namespace already exists error from VS2008

I am getting the following error during the build process in VS2008.
The namespace '<global namespace>' already contains a definition for 'XXXXX'; XXXX is the name of my application and not really XXXXX (just to clarify).

I have searched the solution for XXXXX and have included namespace XXXXXX but can't find any reference.  I am getting this after I had VS include a image file in the resources.resx file.  I started getting this error last week when I added a Settings file which it named the same as my resources so I switched the names around and got things working.  I then removed the image from the resource using the designer, but again same error.

I have searched the web and they all say to find the duplicate namespace but since I can't find one I really can't solve it following their advice.  

Where is is this referenced if any and/or what else can I look for?  I really don't want to rename the resource file since that will cause major headaches.

Avatar of williamcampbell
williamcampbell
Flag of United States of America image

You may have a problem with a "using" statement .. that's somewhere to look.
Avatar of nesoftware
nesoftware

ASKER

Not really sure how that would affect this.   The following is psuedo code out of the .resx file.  The XYZApp has the error indicated on it, not the XYZApp.Properties.

namespace XYZApp.Properties {
    using System;
.
.
}
   
I search for namespace XYZApp and don't get another hit.  I also searched for using XYZApp and again get nothing.

I am not real sure what else I would search for since only adding an image to the solution and adding it to the resource file caused this error.
ASKER CERTIFIED SOLUTION
Avatar of nesoftware
nesoftware

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial