【IIS】WindowsServer2019でASP.netを使えるようにする

インストール
1 |
Add-WindowsFeature Web-Server ;powershell.exe -Command Install-WindowsFeature Web-Asp-Net45 |
default.aspxで次のコード書き、デフォルトページの最優先にしておく
1 2 3 4 5 6 7 8 9 10 |
<%@ Page Language="C#" %> <html> <body> <p> <% Response.Write("Hello, ASP.NET!"); %> </p> </body> </html> |
動作確認
1 2 3 4 5 6 7 8 9 |
yuta:~/azure-udemy (main *=) $ curl http://13.78.15.126 <html> <body> <p> Hello, ASP.NET! </p> </body> </html>yuta:~/azure-udemy (main *=) $ |