我是新來的ASP.NET核心,我試圖獲取基本的ASP.NET核心Web應用程序部署到Windows 2012 R2服務器。ASP.NET核心0x80004005
我可以使用Visual Studio Express在本地構建和運行項目,但是當我部署到服務器時,出現502.5錯誤,確切代碼爲(0x80004005)。
日誌文件是空白的,事件查看器不提供更多信息,而不僅僅是上述錯誤代碼。
我懷疑有什麼毛病我Project.json文件,該文件是這樣的:
{
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.0.1",
"type": "platform"
},
"Microsoft.ApplicationInsights.AspNetCore": "1.0.0",
"Microsoft.AspNetCore.Mvc": "1.0.1",
"Microsoft.AspNetCore.Routing": "1.0.1",
"Microsoft.AspNetCore.Server.IISIntegration": "1.0.0",
"Microsoft.AspNetCore.Server.Kestrel": "1.0.1",
"Microsoft.Extensions.Configuration.EnvironmentVariables": "1.0.0",
"Microsoft.Extensions.Configuration.FileExtensions": "1.0.0",
"Microsoft.Extensions.Configuration.Json": "1.0.0",
"Microsoft.Extensions.Logging": "1.0.0",
"Microsoft.Extensions.Logging.Console": "1.0.0",
"Microsoft.Extensions.Logging.Debug": "1.0.0",
"Microsoft.Extensions.Options.ConfigurationExtensions": "1.0.0"
},
"tools": {
"Microsoft.AspNetCore.Server.IISIntegration.Tools": "1.0.0-preview2-final"
},
"frameworks": {
"netcoreapp1.0": {
"imports": [
"dotnet5.6",
"portable-net45+win8"
]
}
},
"buildOptions": {
"emitEntryPoint": true,
"preserveCompilationContext": true
},
"runtimeOptions": {
"configProperties": {
"System.GC.Server": true
}
},
"publishOptions": {
"include": [
"wwwroot",
"**/*.cshtml",
"appsettings.json",
"web.config"
]
},
"scripts": {
"postpublish": [ "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" ]
}
}
這是由Visual Studio生成的默認project.json文件。
任何幫助真的很感激。
可能的[ASP.NET IIS 1.0錯誤502.5]上的重複(http://stackoverflow.com/questions/38624453/asp-net-core-1-0-on-iis-error-502-5) – hometoast
您是否閱讀了手冊並安裝了「Windows Server Hosting」軟件包? https://www.microsoft.com/net/download/core#/runtime/current沒有它,它不起作用。它包含AspNetCoreModule(它基於'HttpPlatformHandler'並針對ASP.NET核心進行了修改)。如果您沒有將應用程序發佈/部署爲獨立應用程序,則還需要.NET運行時 – Tseng