Peter Nordberg
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\Defau lt3.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
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\Defau
--------------------------
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
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>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Also, check this: http://www.dev102.com/2008/03/21/ajax-scriptmanager-error-bc30560/
Edit:
If you do what I said you can get rid of the <runtime> block.
If you do what I said you can get rid of the <runtime> block.
ASKER
Thanks for help! It worked exactly as you suggested.
Peter
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.
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.
http://www.plexityhide.com/faqs_gen_GTPNET/11231.htm