1. Håvard Heide
  2. Beta Testing
  3. Wednesday, 19 May 2021 12:00 PM UTC

Starting PB2021 as administrator

Build & deployed   project succesfully

Compile & Run Web API   gives   (see attached file)

Attachments (1)
Francisco Martinez @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 19 May 2021 14:43 PM UTC
  2. Beta Testing
  3. # 1

Hi, Håvard

This error can happen because the port you're trying to use is reserved by Windows

You can check if you're trying to use a reserved port by opening <SnapDevelop project folder>\ServerAPIs\Properties\launchSettings.json
The profiles.ServerAPIs.applicationUrl indicates the IP address and port that Kestrel will bind to when starting the API Server. Please remember the port number.

Now, execute the following command inside a Windows CMD Terminal: netsh interface ipv4 show excludedportrange protocol=tcp

If the port assigned to profiles.ServerAPIs.applicationUrl is in this list, all you have to do is change the port of the Web API URL in the PowerServer project to a value not in the list and redeploy your PowerServer project.

I hope this helps!

Regards,
Francisco

Comment
  1. Håvard Heide
  2. Thursday, 20 May 2021 11:50 AM UTC
I haven't used Snapdevelop - Did not set any port
  1. Helpful
  1. Francisco Martinez @Appeon
  2. Thursday, 20 May 2021 14:15 PM UTC
When you deploy a PowerServer 2021 project, a SnapDevelop project is generated on the location you specified in the WebAPIs tab, the port is also specified there. You can take a look and see if the automatically selected port might be in the Windows reserved port list
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.