2011-04-09 73 views
1

我目前正在考慮devloping一個ASP.NET網站。我在我的開發機器上配置了IIS7以及我的服務器。ASP.net部署

我已經將開發文件複製到我的開發機器上的本地IIS服務器上,並且這種工作正常,沒有任何問題。

然而,當我在VS2010通過FTP上傳的ASP.NET應用程序,以我的網站mydomain.com/myasp它顯示它說的錯誤:

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 34: ASP.NET to identify an incoming user. Line 35: --> Line 36: Line 37: section enables configuration

我已經轉換目錄IIS內的應用程序,但它仍然會出現這個錯誤。

你可以提供任何幫助將是巨大的感謝

+0

發佈截圖或確切的措辭? – 2011-04-09 02:43:56

+0

看看這個問題:http://stackoverflow.com/questions/470136/configuring-an-asp-net-application-in-iis。你說你創建了一個應用程序,你是否僅將執行權限設置爲腳本? – rsbarro 2011-04-09 03:01:25

回答

1

我發現這是因爲我是從http://localhost/myaspx.aspx直接某種原因,這導致錯誤的服務器上調用ASPX。當我嘗試它http://www.mydomain.com/myaspx.aspx它工作正常。

一個奇怪的問題,爲什麼它不喜歡使用本地主機的位。我猜這一定是iis的配置錯誤問題

+0

這是一個安全的東西,我認爲... – jcolebrand 2011-04-15 23:37:01

+0

本地主機在主機文件中定義? – 2011-04-15 23:54:44