[英]Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system c
[英]Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The module was expected to contain an assembly manifest
我在IIS7上部署應用程序時遇到奇怪的錯誤當我在VS 2012中打開我的站點而不更改其.Net 4的框架時。
來源錯誤:
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" %>
問題在於Ajax程序集引用的第2行。 當我在我的筆記本電腦上部署它時,它運行正常,沒有錯誤,它也適用於VS 2010.其次,在同一個IIS上還有兩個網站,並且還有相同的Ajax標簽,它們正常工作。 我嘗試了以下但仍然沒有運氣:
問題出在Visual Studio版本上。 通過在VS 2010或VS 2012等不同版本的Visual Studio中打開更改項目文件詳細信息時,會出現此類錯誤。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.