Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   XmlSerializer is ambiguous in the namespace System.Xml.Serialization (http://www.velocityreviews.com/forums/t727764-xmlserializer-is-ambiguous-in-the-namespace-system-xml-serialization.html)

kpg 07-08-2010 09:11 PM

XmlSerializer is ambiguous in the namespace System.Xml.Serialization
 
error: 'XmlSerializer' is ambiguous in the namespace
'System.Xml.Serialization'

In VS 2010 IDE at design time of an asp.net 4.0 site.

Imports System.Web
Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports System.Data
Imports System.Data.SqlClient
Imports System.Xml
Imports System.Xml.Serialization

Dim ser As New XmlSerializer(s.GetType) <- error reported here

The bin file has system.xml.serialzation.xml and
system.xml.serialzation.dll

If I delete the dll the error goes away, but when I build then dll is put
back into bin and the error returns.

The general help for '<name> is ambiguous in the namespace <namespace>'
says to fully qualify the name, so I tried:

Dim ser As New System.Xml.Serialization.XmlSerializer(s.GetType) and I get
the same error.

What is the problem and how can I fix it?

thx

kpg


All times are GMT. The time now is 02:48 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.