2012-11-13 106 views
1

我在Windows 7上託管了一個Web應用程序,現在我希望託管在Windows Server 2003上。Web應用程序託管Asp.net

我收到此錯誤。

我將應用程序複製到服務器並添加了一個指向它的新虛擬目錄。

當我想從這個錯誤上升到IIS瀏覽應用程序:

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: Unrecognized attribute 'type'. 

Source Error: 

    <configuration> 
     <configSections> 
      <sectionGroup name="system.web.extensions" 
         type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, 
         Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> 

有什麼方案來解決錯誤或有任何其他的方式,利用Windows 7Windows Server 2003過渡?

+0

本網站使用的是什麼.NET框架? –

+0

.net 4.0 @AmiramKorach我也在服務器上安裝了.net 4.0,但它也無法正常工作 –

+2

請確保您在IIS中將網站設置爲在.NET 4中工作。打開網站配置。在asp.net選項卡中確保選擇了版本4。 –

回答

0

我不確定這是否發生,因爲您的服務器沒有安裝.net框架,因爲您在自己的計算機中有目標。

2天前我有同樣的問題。在我的情況下,我已經更新了web.config,其中服務器沒有新版本的.net。

你的情況

你需要.NET的新版本安裝到服務器2003

1

您安裝.NET Framework 4.0,確保其狀態設置在IIS中的Web服務擴展到允許後。

IIS Web Service Extensions