Link to home
Start Free TrialLog in
Avatar of Romacali
Romacali

asked on

error message

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

Avatar of ViceroyFizzlebottom
ViceroyFizzlebottom
Flag of United States of America image

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.
Avatar of Romacali
Romacali

ASKER

where do I check this?
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.
P.S. If that reference isn't there, just continue adding the new reference as stated above, and you should be good.
I don't have a folder called references. I'm pretty lost
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.
the version when I click on System.Web.Extensions is 1.0.6.1025.0

what should I do?
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.
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?
ASKER CERTIFIED SOLUTION
Avatar of ViceroyFizzlebottom
ViceroyFizzlebottom
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