2012-01-13 46 views
0

我從下載示例代碼/演示:無法運行uploadify的asp.net

http://www.technowise.in/2009/12/uploadify-aspnet-c-vb-examples-demo.html

,當我嘗試運行任何ASPX文件,我剛剛從下面的消息服務器:

Server Error in '/' Application. 

Configuration Error 

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. 

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 46:    ASP.NET to identify an incoming user. 
Line 47:   --> 
Line 48:  <authentication mode="Windows"/> 
Line 49:  <!-- 
Line 50:    The <customErrors> section enables configuration 

Source File: C:\Inetpub\wwwroot\test_uploader\uploadify\web.config Line: 48 

Version Information: Microsoft .NET Framework Version:2.0.50727.3623; ASP.NET Version:2.0.50727.3618 

任何人都知道爲什麼會發生這種情況?我通常可以在這臺服務器上運行asp.net 2.0和以上的web表單。

+1

上傳文件的目錄是虛擬目錄? '此錯誤可能是由於虛擬目錄沒有被配置爲IIS中的應用程序引起的。'其次,IIS_User已經讀取了文件夾和文件的\寫入權限? – 2012-01-13 10:26:59

回答

1

你會得到這個錯誤,因爲你已經在一個子目錄中放置了一個web.config,這包含了應該在那裏的會話,除非你在iis的這個子目錄中定義了一個新的應用程序/池asp.net。

從你的問題,這裏是你的web.config的路徑,但這必須是一個目錄,或根本不存在,或刪除不能在那裏的行。

C:\Inetpub\wwwroot\test_uploader\uploadify\web.config