I have a client who will be running several apps in PowerServer 2021 and thus I want to setup IIS with a multiple-site configuration. To this end, I went through the tutorials in an effort to get this properly configured. Here is what I've done:
- created inbound rule for port 81 on web server running IIS (Windows Server 2016)
- configured PowerServer project in client app
- CAL installed ok
- set web api url on Web APIs tab to https://dev.server.com:81/Testsite (see attached)
- Database config (SQL Server) works fine
- Deployed PS project with no errors
- created second web site called 'Testsite' in IIS and linked it to port 81 (https://docs.appeon.com/ps2021/Creating_an_IIS_website.html). The root path is C:\inetpub\testsite_root
- followed instructions for publishing web api using file system (https://docs.appeon.com/ps2021/Using_the_File_System_method.html) and copied all files to C:\inetpub\testsite_root (see attached)
- launchsettings.json has the same url as shown in #4 above (see attached)
When I launch the CAL in my browser, the app starts loading but eventually fails with the CreateSession error -- see attached. Can someone offer some advice on how to get past this error?
Thanks, Tom
Tom
A couple of things to check and try:
1) Verify the website's physical path is set to C:\inetpub\testsite_root (per your screenshot).
2) Verify the Web API URL is set to https://dev.server.com:81.
3) Verify your client app is in a different site from the Web APIs (using a different port number and different physical path).
4) Go to the Web APIs folder (C:\inetpub\testsite_root) and start the APIs manually.
You can try to execute the following commands one after another until the Web APIs starts successfully.
ServerAPIs.exe --urls "https://dev.server.com:81"
ServerAPIs.exe --urls "http://localhost:81"
ServerAPIs.exe --urls "http://localhost:8888"
Please try to run the application on your local server if possible, to avoid firewall or network issue.
Regards
Tracy
When you execute netstat -ano | findstr 81, what is the process ID returned? (The last column is the process ID). You can see a more detailed list by executing netstat -bano
In my environment, the process ID returned is 4, and in the task manager PID 4 is a system process called "NT Kernel & System". Could it be possible that 81 is occupied too in your server? Can you modify the IIS website to use a different port number and try again?
Regards
Tracy