Solved

error message

Posted on 2009-05-12
10
511 Views
Last Modified: 2012-05-06
hello there,

I'm getting this error message: What does it mean?

The type 'System.Web.UI.ScriptManager' is ambiguous: it could come from assembly 'C:\WINDOWS\assembly\GAC_MSIL\System.Web.Extensions\1.0.61025.0__31bf3856ad364e35\System.Web.Extensions.dll' or from assembly 'C:\WINDOWS\assembly\GAC_MSIL\System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.dll'. Please specify the assembly explicitly in the type name.
<fieldset>
        <legend class="icon-visitadd">Add a Participant Evaluation</legend>
        <table>
            <tr>
                <td><asp:Label ID="lblDateOfVisit" runat="server" AssociatedControlID="txtVisitDate" Text="Date of Visit:" />
            <asp:RequiredFieldValidator ID="valVisitDate2" runat="server" ControlToValidate="txtVisitDate"
                        ErrorMessage="Please enter a visit date." SetFocusOnError="True" ValidationGroup="valGrpVisit">*</asp:RequiredFieldValidator>
                        <asp:RangeValidator ID="valVisitDate" runat="server" ControlToValidate="txtVisitDate" ErrorMessage="Please enter a valid visit date."
                            MaximumValue="1/1/2200" MinimumValue="1/1/1950" SetFocusOnError="True" Type="Date" ValidationGroup="valGrpVisit">*</asp:RangeValidator></td>
                            
                <td><asp:TextBox ID="txtVisitDate" runat="server" CssClass="txt" MaxLength="10" /></td>
                        
                       <td> <asp:Label ID="lblEvaluationType" runat="server" AssociatedControlID="ddlEvaluationType" Text="Evaluation Type:" CssClass="lbl" /></td>
                        
                    <td><asp:DropDownList ID="ddlEvaluationType" runat="server" CssClass="ddl" DataSourceID="SqlDataSource1" DataTextField="EvaluationType" DataValueField="EvaluationID" />
                    
                     <asp:RequiredFieldValidator ID="valEvaluationType" runat="server" ControlToValidate="ddlEvaluationType"
                        ErrorMessage="Please enter the type of evaluation." SetFocusOnError="True" ValidationGroup="valGrpEvaluation">*</asp:RequiredFieldValidator></td>
                    
                       <td> <asp:Button ID="btnAdd" runat="server" Text="Add Visit" ValidationGroup="valGrpEvalution" />
                </td>
            </tr>
                <tr>
                    <td>&nbsp;</td>
                    <td colspan="4"><asp:Label ID="Label1" runat="server" Text="(mm/dd/yyyy)" ForeColor="graytext" /></td>
                </tr>           
        </table>
    </fieldset>

Open in new window

0
Comment
Question by:Romacali
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 4
10 Comments
 
LVL 6

Expert Comment

by:ViceroyFizzlebottom
ID: 24365551
It looks like you have references to two versions of System.Web.Extensions.dll. Add an explicit reference in your project to the 3.5 version of that .dll.
0
 

Author Comment

by:Romacali
ID: 24365598
where do I check this?
0
 
LVL 6

Expert Comment

by:ViceroyFizzlebottom
ID: 24366123
In your project, there should be a folder called "References". Expand that folder and look for System.Web.Extensions. If that reference is there, delete it and add a new one by right clicking the References folder and selecting, "Add New Reference."

When the dialog window opens up, scroll down to System.Web.Extensions and make sure the version # is 3.5 (this will show up next to the file name.)

That should work for you.
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 6

Expert Comment

by:ViceroyFizzlebottom
ID: 24366137
P.S. If that reference isn't there, just continue adding the new reference as stated above, and you should be good.
0
 

Author Comment

by:Romacali
ID: 24366148
I don't have a folder called references. I'm pretty lost
0
 
LVL 6

Expert Comment

by:ViceroyFizzlebottom
ID: 24366250
Ok, that's fine. Try right clicking on the project itself then. The option to add a reference is there also. By doing that, it will create the references folder for you.
0
 

Author Comment

by:Romacali
ID: 24366266
the version when I click on System.Web.Extensions is 1.0.6.1025.0

what should I do?
0
 
LVL 6

Expert Comment

by:ViceroyFizzlebottom
ID: 24366318
If there is a version 3.5 there, double click it to add the reference. If the v3.5 is grayed out, it means your project is target to .NET v2.0.

To upgrade the target version, right click on the project and select "Property Pages". Go to the Build section and change the Target Framework to .NET Framework 3.5.
0
 

Author Comment

by:Romacali
ID: 24367603
I keep getting this error:
could not load file or assembly 'system core, Version= 3.5.0.0, Culture=neutral, Public KeyToken= b77a5c561934e89

any idea?
0
 
LVL 6

Accepted Solution

by:
ViceroyFizzlebottom earned 500 total points
ID: 24375279
Not sure what's going on there. You may want to try re-installing the .NET framework 3.5 and see if that helps. Unfortunately with the limited information regarding your environment, the project you're using, etc. it's really hard to diagnose.

If I was in this situation, I'd try to just get back to square one. Reinstall the 3.5 framework, create a brand new Web Project and make sure that the empty project builds correctly targeted at the 3.5 framework. If everything is fine at that point, I would start to add back in pieces of the project you're having trouble with now and make sure that the build doesn't break after each piece. If it does, you'll have narrowed down the culprit to just the last piece you brought in.
0

Featured Post

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
MYSQL responding very slow 3 49
need to convert function to c# 5 42
Converting PHP triple des decrypt to c# 9 67
Trigger C# code inside the SQL Server 6 31
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question