在Windows server 2008 R2服務(wù)器上部署.net core 3.1項(xiàng)目
我已經(jīng)在服務(wù)器安裝了dotnet-runtime-3.1.20-win-x64 和dotnet-hosting-3.1.20-win 但部署3.1項(xiàng)目遇到500.13錯(cuò)誤
HTTP Error 500.31 - ANCM Failed to Find Native Dependencies
Common solutions to this issue:
The specified version of Microsoft.NetCore.App or Microsoft.AspNetCore.App was not found.
Troubleshooting steps:
Check the system event log for error messages
Enable logging the application process’ stdout messages
Attach a debugger to the application process and inspect
For more information visit: https://go.microsoft.com/fwlink/?LinkID=2028526
接下來(lái)開始解決問(wèn)題
使用cmd,進(jìn)入終端,運(yùn)行如下:?dotnet --info
如果出現(xiàn)如下錯(cuò)誤:
Failed to load the dll from [C:\Program Files\dotnet\host\fxr\版本號(hào)\hostfxr.dll], HRESULT: 0x80070057 The library hostfxr.dll was found, but loading it from C:\Program Files\dotnet\host\fxr\版本號(hào)\hostfxr.dll failed
解決方法:?
需要安裝KB2533623?補(bǔ)丁,下載地址如下:
鏈接: https://pan.baidu.com/s/1Fv46N-6EvXVs_GA4yPBkSg
提取碼: hwc1?
最后重啟服務(wù)器。
重啟之后執(zhí)行cmd命令 dotnet --info,如果正常,那就恭喜你成功解決問(wèn)題文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-452434.html
第一次發(fā)帖,如有問(wèn)題請(qǐng)多多包含文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-452434.html
到了這里,關(guān)于.net core 3.1 出現(xiàn) HTTP Error 500.31 - ANCM Failed to Find Native Dependencies的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!