2011-07-24 207 views
0

我使用visual web developer express,當我在localhost上構建網站時,一切正常。但是,當我嘗試將其部署到服務器Ø得到許多這樣的錯誤:asp在服務器上部署網站

line 18: 

Parser Error Message: It is an error to use a section registered as 
allowDefinition='MachineToApplication' beyond application level. 
This error can be caused by a virtual directory not being configured 
as an application in IIS. 

Source Error: 

Line 16: <customErrors mode="Off"/> 
Line 17: 
Line 18:  <profile enabled="true"> 
Line 19:  <!--<anonymousIdentification enabled="true"/--> 
Line 20:   <properties> 

當我拿這部分關閉,我得到第3行的錯誤:

Parser Error Message: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system cannot find the file specified. 

Source Error: 

    Line 1: <%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs"   Inherits="MasterPage" %> 
    Line 2: 
    Line 3: <%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %> 
    Line 4: 
    Line 5: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 

Source File: /zimmer/MasterPage.master Line: 3 

Assembly Load Trace: The following information can be helpful to determine why the assembly 'AjaxControlToolkit' could not be loaded. 

WRN: Assembly binding logging is turned OFF. 
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. 
Note: There is some performance penalty associated with assembly bind failure logging. 
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog]. 

我該如何解決這個問題?

回答

0

確保在發佈設置中複製項目文件夾中的所有文件,而不是網站的最低要求。我有同樣的問題,並修復它。

+0

我在快遞版本,當我部署我通常通過FTP或類似的東西傳輸文件。我如何以你的方式發佈? – goote

+0

啊我明白了。我沒有快遞經驗,但在項目屬性中有一個名爲「發佈設置」的頁面,這就是我所指的。不過,從我聽到的消息來看,快捷版在發佈方式方面的限制更爲有限。 –