2016-02-11 90 views
0

我們試圖從2008年盒子將我們的Web應用程序服務器至2012年作爲其中的一部分,我們也升級IIS主機爲7-8.5。升級ASP.NET從IIS 7到8.5

當我嘗試用相同的web.config中我們當前訪問的新盒子,我們有最簡單的應用,工作生產環境中,我得到以下錯誤(使用IE本地主機上)。

HTTP Error 500.19 - Internal Server Error 

The requested page cannot be accessed because the related configuration data for the page is invalid. 
Module 
    WebSocketModule 

Notification 
    BeginRequest 

Handler 
    ExtensionlessUrlHandler-ISAPI-4.0_64bit 

Error Code 
    0x80070490 

Config Error 
    The configuration section 'system.webServer/webSocket' cannot be read because it is missing a section declaration 

Config File 
    \\?\C:\XXX\XXX\XXX\web.config 

Config Source: 
    -1: 
    0: 

我們的網絡服務器部分看起來像這樣。

<system.webServer> 
    <modules> 
     <add type="DevExpress.Web.ASPxHttpHandlerModule, DevExpress.Web.v15.1, Version=15.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" name="ASPxHttpHandlerModule" /> 
    </modules> 
    <validation validateIntegratedModeConfiguration="false" /> 
    <handlers> 
     <add type="DevExpress.Web.ASPxHttpHandlerModule, DevExpress.Web.v15.1, Version=15.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" verb="GET,POST" path="DX.ashx" name="ASPxHttpHandlerModule" preCondition="integratedMode" /> 
     <add name="ASPxUploadProgressHandler" preCondition="integratedMode" verb="GET,POST" path="ASPxUploadProgressHandlerPage.ashx" type="DevExpress.Web.ASPxUploadProgressHttpHandler, DevExpress.Web.v15.1, Version=15.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" /> 
    </handlers> 
</system.webServer> 

使用我的基本模式查找技巧,我嘗試添加webSocket部分。

<system.webServer> 
    <webSocket enabled="false"/> 
    <modules> 
     <add type="DevExpress.Web.ASPxHttpHandlerModule, DevExpress.Web.v15.1, Version=15.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" name="ASPxHttpHandlerModule" /> 
    </modules> 
    <validation validateIntegratedModeConfiguration="false" /> 
    <handlers> 
     <add type="DevExpress.Web.ASPxHttpHandlerModule, DevExpress.Web.v15.1, Version=15.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" verb="GET,POST" path="DX.ashx" name="ASPxHttpHandlerModule" preCondition="integratedMode" /> 
     <add name="ASPxUploadProgressHandler" preCondition="integratedMode" verb="GET,POST" path="ASPxUploadProgressHandlerPage.ashx" type="DevExpress.Web.ASPxUploadProgressHttpHandler, DevExpress.Web.v15.1, Version=15.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" /> 
    </handlers> 
</system.webServer> 

該錯誤消息然後更改爲以下內容。

HTTP Error 500.19 - Internal Server Error 

The requested page cannot be accessed because the related configuration data for the page is invalid. 
Module 
    IIS Web Core 

Notification 
    BeginRequest 

Handler 
    Not yet determined 

Error Code 
    0x8007000d 

Config Error 


Config File 
    \\?\C:\MDM\Webs\Symcom\web.config 

什麼在聖潔的赫克我在這裏失蹤?我們工作的IIS 7部署和新的IIS 8.5部署之間配置的唯一區別是我嘗試提供配置的webSocket部分。

+0

你在新機器上安裝ASP.NET? –

+0

@PatrickHofman,是的,我查了註冊表,我們有一個人口稠密DllFullPath變量。我還爲應用程序池選擇了ASP.NET 4.0,與我們現有的生產池相同。 – Marisa

回答

0

所以事實證明,我們已經安裝了.NET,並在註冊表中爲它的配置價值,但不能作爲服務器管理器的一部分。我們還必須重新啓動服務器才能完成某些更新。

一旦我們通過服務器管理器安裝了它,回收的應用程序池一切都虎背熊腰,腳蹬dory的。