Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > XmlSerializer is ambiguous in the namespace System.Xml.Serialization

Reply
Thread Tools

XmlSerializer is ambiguous in the namespace System.Xml.Serialization

 
 
kpg
Guest
Posts: n/a
 
      07-08-2010
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
user control ambiguous in the namespace g@work ASP .Net 2 07-04-2007 11:22 AM
usercontrol_ascx' is ambiguous in the namespace 'ASP'. Nemisis ASP .Net 4 04-16-2007 08:54 AM
'mycontrol_ascx' is ambiguous in namespace ASP =?Utf-8?B?SGFucyBCYXVtYW5u?= ASP .Net 0 11-23-2006 10:09 AM
BC30560: 'default_aspx' is ambiguous in the namespace 'ASP'. John ASP .Net 1 06-24-2005 02:06 PM
'CrystalReportViewer' is ambiguous in the namespace 'CrystalDecisions. Nancy. ASP .Net 3 09-28-2004 08:21 PM



Advertisments