System.Xml.Linq.XElement exists in two dll's

Feb 13, 2009 at 3:43 PM
Receiving error on build in VS. 

CS0433: The type 'System.Xml.Linq.XElement' exists in both 'c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\e3626bfd\107fd97a\assembly\dl3\c7fab1e1\002bd46d_bf26c901\System.Xml.Linq.DLL' and 'c:\Windows\assembly\GAC_MSIL\System.Xml.Linq\3.5.0.0__b77a5c561934e089\System.Xml.Linq.dll'


App_Code/ExtensionFunctions.cs

public

 

static string Xml(this XElement e)

 

{

StringBuilder builder = new StringBuilder();
XmlTextWriter writer = new XmlTextWriter(new StringWriter(builder));
e.WriteTo(writer);
return builder.ToString();
}

 


Have not made any changes fresh install.