Link to home
Start Free TrialLog in
Avatar of Peter Nordberg
Peter NordbergFlag for Sweden

asked on

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

Hi!

I get an eror on my website that says like this:
-------------------------------------------------------------------
Kompilatorfelmeddelande: BC30560: 'ScriptManager' is ambiguous in the namespace 'System.Web.UI'.

Källfel:

Rad 12:     <form id="form1" runat="server">
Rad 13:     <div>
Rad 14:         <asp:ScriptManager ID="ScriptManager1" runat="server">
Rad 15:         </asp:ScriptManager>
Rad 16:    
 
Källfil: D:\WebSiter\wwwArken\Default3.aspx    Rad: 14
---------------------------------------------------------------------------------

I've tried to solve in the following ways:
I looked in web.config to see if I hade several system.web.extension assemblies versions, but I only have one assembly with version 3.5.0.0.
I looked to see if I had several system.web.extension versions installed on c:\windows\assemblies, but I only have 3.5.0.0 installed.

How can I solve this problem?

Thanks for help!

Peter
Avatar of avnish_tanna
avnish_tanna
Flag of India image

Avatar of HeoQue
HeoQue

are you enforcing the new assemblies, the hosting may be installing another version ,add the following to your web.config :



    <runtime>
      <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
        <dependentAssembly>
          <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
          <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
        </dependentAssembly>
        <dependentAssembly>
          <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
          <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
        </dependentAssembly>
      </assemblyBinding>
    </runtime>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Andrew Beers
Andrew Beers
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Edit:

If you do what I said you can get rid of the <runtime> block.
Avatar of Peter Nordberg

ASKER

Thanks for help! It worked exactly as you suggested.

Peter
From many other forums, the solution that worked most often was as follows:

Conditions: Running a project in a lower framework. ie. VS2008 but compiling to framework 2.0 or 3.0 when 3.5 and/or 4.0 are installed on the workstation.

Remove all references to system.*

re-add

Worked more often that the fully qualified name, etc.

Took me 2 hours to get this far so I hope the next person can same some time.