We pay for user submitted tutorials and articles that we publish. Anyone can send in a contributionLearn More
A few days ago I was working on a web application and when I added a ScriptManager and a ScriptManagerProxy to the Master Page and Although the compilation was successful. I got the following error on the designer:
‘ScriptManager’ is ambiguous in the namespace ‘System.Web.UI’,
I said to my self: ah, probably another one of the Visual Studio glitches… so I pressed F5 and was proved wrong after getting the following runtime error:
Compiler Error Message: BC30560: ‘ScriptManager’ is ambiguous in the namespace ‘System.Web.UI’
After doing some checking I actually found the following error in the output:
errorCS0433:The type ‘System.Web.UI.ScriptManager’ exists in both ‘c:\WINDOWS\assembly\GAC_MSIL\System.Web.Extensions\126.96.36.199__31bf3856ad364e35\System.Web.Extensions.dll’
Well, that was the end, as it turns out I had installed both the Ajax that comes with the .NET 3.5 and the Ajax that comes with ASP.NET 3.5 Extensions, and I had referenced them both! All I needed to do was to remove one of the references and that’s it.
So if you have both installed, make sure you reference only one of them throughout your project.
Tags :.Net3.5 ExtensionsAJAXASP.NetDebugErrorBC30560ErrorCS0433ScriptManagerScriptManager Proxy
Copyright © 2012 Dev102.com
Breeze : Designed by Amit Raz and Nitzan Kupererd