'ListView' is ambiguous in the namespace 'System.Web.UI.WebControls'.

When you have Visual Studio 2008 and ASP.NET 3.5 Extensions installed you may run in following error.

BC30560: 'ListView' is ambiguous in the namespace 'System.Web.UI.WebControls'.

In my case, this happens when i drag an drop a Listview Control from toolbar. Then Visual Studio adds following line in web.config

<

add assembly="System.Web.Extensions, Version=3.6.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></assemblies>

Remove it - and it should work again.

In a second case, same action, added following in ASPX page

<%

@ Register assembly="System.Web.Extensions, Version=3.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" namespace="System.Web.UI.WebControls" tagprefix="asp" %>

Remove it also

seems to be a bug from 3.5 extensions.

Published Thursday, January 17, 2008 8:20 AM by preishuber
Filed under:

Comments

# &amp;#039;ListView&amp;#039; is ambiguous in the namespace &amp;#039;System.Web.UI.WebControls&amp;#039;. - Hannes Preishuber

Friday, March 29, 2013 3:53 PM by Netzender - the world of zen

Allergy levels rise during the Christmas season as people begin decorating their tree. This car emergency system offers an air compressor and jump starting system in one convenient package. These dev...

Leave a Comment

(required) 
(required) 
(optional)
(required)