AWS Elastic Beanstalk Service Troubleshooting ASP.NET Core web api using Powershell window of EC2 instance | AWS EBS webapp troubleshooting

{tocify} $title={Table of Contents}

Troubleshooting Steps

Open the EC2 instance and connect to it in command line and then follow below steps to see the response of the site in command line:

To enable Internet explorer using PowerShell:

Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Internet Explorer\Main" -Name "DisableFirstRunCustomize" -Value 2

To get the default iis website tcp port and ip run this command:

Get-IISSite "Default Web Site"

Once you get the IIS Port and ip address, form the application url in below command endpoint parameter:

wget -Uri <endpoint> -header @{name=key} 

 Like below sample URL:

wget -Uri

If you have to pass on the headers to the url fill in the header parameter in first wget command like below:

 wget -Uri -header @{headerOne=headerValueOne}

After this you should see the response below or any error which is thrown.


Thanks 👌👍👆


إرسال تعليق

أحدث أقدم


post ad 2