Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load file or assembly 'AjaxControlToolkit, Version=3.5.7.725, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Source Error:


Line 1:  <%@ page title="" language="C#" masterpagefile="~/MasterPages/site.master" autoeventwireup="true" inherits="Placement_Default, App_Web_default.aspx.b19e39c4" theme="default" %>
Line 2:  <%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
Line 3:  <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


I get this error when i try to upload my page on the server . Locally it runs fine but when i publish it on the server . I get this error that My page is missing the ajax control tool kit dll , infact it is already there in the server . Please help me out what is the issue.


here is the source code of my content page
ASP.NET
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/site.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Placement_Default" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<h2 class="HeaderText">Student Desk - Login</h2>
    <br /><br /><br />
                            
    <TABLE id="Table1" cellSpacing="0" cellPadding="0" align="center" 
        border="0" style="width: 581px">
    <TR>
        <TD class="HeaderText" vAlign="top" style="width: 107px">
            <IMG src="IMAGES/1.jpg"></TD>
        <TD vAlign="top" style="width: 466px" align="left">
            <TABLE id="Table4" borderColor="black" cellSpacing="0" cellPadding="3" 
                border="0" style="width: 84%">
                <TR>
                    <TD class="HeaderText" colspan="2" align="center">
                        <asp:Label ID="lbMsg" runat="server"></asp:Label>
                    </TD>
                </TR>
                <TR>
                    <TD class="HeaderText" style="width: 119px">
                    </TD>
                    <TD class="HeaderText">
                         </TD>
                </TR>
                <TR>
                    <TD class="normal" align="right" style="width: 119px">
                        User name
                    </TD>
                    <TD class="normal" align="left">
													<asp:textbox id="txtUserName" runat="server" CssClass="textbox" MaxLength="50"></asp:textbox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                            Display="None" ErrorMessage="Enter Password" SetFocusOnError="True" 
                            ControlToValidate="txtPassword"></asp:RequiredFieldValidator>
                        <cc1:ValidatorCalloutExtender ID="RequiredFieldValidator2_ValidatorCalloutExtender" 
                             runat="server" Enabled="True" TargetControlID="RequiredFieldValidator2">
                        </cc1:ValidatorCalloutExtender>
													</TD>
                </TR>
                <TR>
                    <TD class="normal" align="right" style="width: 119px">
                        Password
                    </TD>
                    <TD class="normal" align="left">
                        <asp:textbox id="txtPassword" runat="server" CssClass="textbox" MaxLength="50" TextMode="Password"></asp:textbox>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                                        Display="None" ErrorMessage="Enter Username" SetFocusOnError="True" 
                                                        ControlToValidate="txtUserName"></asp:RequiredFieldValidator>
                                                    <cc1:ValidatorCalloutExtender ID="RequiredFieldValidator1_ValidatorCalloutExtender" 
                                                         runat="server" Enabled="True" TargetControlID="RequiredFieldValidator1">
                                                    </cc1:ValidatorCalloutExtender>
                    </TD>
                </TR>
                <TR>
                    <TD class="normal" style="width: 119px">
                         </TD>
                    <TD class="normal">
                          </TD>
                </TR>
                <TR>
                    <TD class="normal" style="width: 119px">
                         </TD>
                    <TD class="normal" align="left">
                        <asp:button id="btnLogin" runat="server" CssClass="GridHeader" Text="Login" 
                            onclick="btnLogin_Click">
                        </asp:button>
                         <INPUT class="GridHeader" type="reset" value="Reset"></TD>
                </TR>
                <TR>
                    <TD style="HEIGHT: 18px; " align="center" colspan="2">
                        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Registration.aspx">Not 
                        yet registered? click here to register</asp:HyperLink>
                        <br />
                        forgot password? please contact your centre.<BR>
                          <BR>
                    </TD>
                </TR>
            </TABLE>
        </TD>
    </TR>
    </TABLE>
</asp:Content>
Posted
Comments
TrushnaK 16-Sep-13 5:43am    
check whether you have given the reference of your ajax dll from current projects bin folder or another location.
Thomas ktg 16-Sep-13 5:58am    
Make sure the .NET assembly loader can find the right assembly by putting it in the GAC or in the application path
Kunal Ved 16-Sep-13 6:49am    
I have already add the ajax toolkit dll in the bin folder .

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900