Can someone help how I can deploy as anp.net web api core 3.1 on a windows server core 2019, on Azure.
I have tried following the link
I am having the error
******* CommandLine: ********** MSI (c) (E4:AC) [12:38:27:612]: Client-side and UI is none or basic: Running entire
install on the server. MSI (c) (E4:AC) [12:38:27:612]: Grabbed
execution mutex. MSI (c) (E4:AC) [12:38:27:644]: Failed to connect to
server. Error: 0x8007041D
MSI (c) (E4:AC) [12:38:27:644]: Note: 1: 2774 2: 0x8007041D 1: 2774 2:
0x8007041D MSI (c) (E4:AC) [12:38:27:644]: Failed to connect to
server. MSI (c) (E4:AC) [12:38:27:644]: MainEngineThread is returning
1601
=== Verbose logging stopped: 3/26/2020 12:38:27 ===
I have tried installing from powershell. The following are the the error messages I am having.
Can someone help how I can deploy my app in IIS on the Windows core machine.
Enable-WindowsOptionalFeature-Online -FeatureName IIS-DefaultDocument -All Enable-WindowsOptionalFeature-Online : The term 'Enable-WindowsOptionalFeature-Online' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:2 + Enable-WindowsOptionalFeature-Online -FeatureName IIS-DefaultDocumen ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (Enable-WindowsOptionalFeature-Online:String) [], CommandNotFoundExcepti on + FullyQualifiedErrorId : CommandNotFoundException
Thanks
According to the document, you need to have a windows server and make sure you can log in by RDP. Then you need to install iis and the install Runtime & Hosting Bundle with your .netcore version.
After finish that,you need to open Internet Information Services(IIS) Manager. And find Modules,
Then double click, you will see a lot of modules,you need to find these modules like below. The dotnet core app need them.
When these steps you have done, you can deploy you app with No Managed Code.
Then you can try again. Check if my answer is useful to you.
I managed to solve the issue using the following command in powershell
import-module servermanager
User contributions licensed under CC BY-SA 3.0