[英]Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The module was expected to contain an assembly manifest
I am facing with strange error when I deployed my application on IIS7 When I open my site in VS 2012 without changing its framework which is .Net 4. 我在IIS7上部署应用程序时遇到奇怪的错误当我在VS 2012中打开我的站点而不更改其.Net 4的框架时。
Source Error: 来源错误:
Line 1: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FrmUserLogin.aspx.cs" Inherits="VisionWebPortal.FrmUserLogin" %>
Line 2: <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
Line 3: <%@ Register Src="MessageBoxUsc/uscMsgBox.ascx" TagName="uscMsgBox" TagPrefix="uc1" %>
The problem is with Line 2 of Ajax assembly reference. 问题在于Ajax程序集引用的第2行。 When I deployed the same on my laptop, It is working fine with out error and It also works with VS 2010. Secondly there are two more websites on the same IIS and that have also the same Ajax tags which are working fine.
当我在我的笔记本电脑上部署它时,它运行正常,没有错误,它也适用于VS 2010.其次,在同一个IIS上还有两个网站,并且还有相同的Ajax标签,它们正常工作。 I attempted the following but still out of luck:
我尝试了以下但仍然没有运气:
The problem was with Visual Studio versions. 问题出在Visual Studio版本上。 When you changed project file details by opening in different versions of Visual Studio like VS 2010 or VS 2012, then this types of errors appeared.
通过在VS 2010或VS 2012等不同版本的Visual Studio中打开更改项目文件详细信息时,会出现此类错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.