Ambiguous in the namespace

by Vishwa 5. October 2010 16:01

You can come across ‘ambiguous in the namespace’ error sometime in Visual Studio 2008. Error may look like following

GeneratedCodeAttribute' is ambiguous in the namespace ..  'System.CodeDom.Compiler'.  …   My Project\Resources.Designer

The Real cause is unknown to me, but have faced this challenge and after some research found out and that somehow the some reference path have changed and pointing to GAC. e.g. they were pointing now such as

C:\Windows\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll

Solution: Go in the Project Properties and see if any of the references are pointing to GAC folder, remove each of them one by one and add it again by making sure that the new reference is now pointing to C:\Windows\Microsoft.NET\Framework path.

Tags:

.NET

Comments (1) -

Wickedie
Wickedie United Kingdom
1/31/2011 10:12:12 PM #

Very cool. Worked for me. Cheers!

Comments are closed

About Me

Me Hello,my name is
Vishwa Mohan Kumar, PMP
MCP SOA Certified Architect
I am a Software Architect. This blog is result of my experiments.

Flickr Photos

Calendar

<<  May 2012  >>
MoTuWeThFrSaSu
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910

View posts in large calendar

Archive

Recent Comments

Comment RSS

Live Traffic Feed