1. Jason Frost
  2. PowerServer
  3. Wednesday, 16 February 2022 22:25 PM UTC

Hi

I wondered if anyone could point me in the direction of a comprehensive How-To?  I'm trying to deploy a PB application to PowerServer/IIS, but the server is cloud based and heavily secured.  I have gone through the Appeon tutorials for "Deploying your PowerServer project to remote servers" but they are a little vague in places e.g. "Install your files on the server.".  I was hoping there was something out there with a bit more detail?

Thanks.

Julie Jiang @Appeon Accepted Answer Pending Moderation
  1. Thursday, 17 February 2022 00:56 AM UTC
  2. PowerServer
  3. # 1

Hi Jason, 

If it is difficult to deploy the application to the server directly, how about packaging the app first and then unzip/install it to the server.  Please check here for instructions: https://docs.appeon.com/ps2021/Package_the_client_app.html.

In case of any issue/question, you may open a ticket at https://www.appeon.com/standardsupport/newbug. Our support team is ready to help you out. 

Best regards, Julie

Comment
There are no comments made yet.
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Thursday, 17 February 2022 01:01 AM UTC
  2. PowerServer
  3. # 2

There are two parts to the project.  

One is the client app files that gets generated according to the Client Deployment tab. For this, you would want to save it in .ZIP format and provide it to your network admin to transfer to the IIS.  It is simply a file copy for this step.  https://docs.appeon.com/ps2021/Package_the_client_app.html

Second step is C# Web API source code generated according to the Web API tab.  This source code you would compile in any C# IDE.  I recommend simplify your life just use SnapDevelop that is included with PB. You would use the File Deploy option, which compiles the code and saves to disk.  https://docs.appeon.com/snapdevelop2021/Publish/index.html#publishing-to-a-local-folder

That compiled code would be then deployed to IIS according to this tutorial: https://docs.appeon.com/ps2021/Hosting_Web_APIs_in_IIS.html

One thing to keep in mind that the Web API URL configured in Web API tab needs to match where really the Web API will be deployed.  If you want to change this after the fact, follow these instructions: https://docs.appeon.com/ps2021/Change_Web_API_URL.html

Probably good idea to read all the PowerServer docs, then ask specific questions or report specific issues.  https://docs.appeon.com

Comment
There are no comments made yet.
Jason Frost Accepted Answer Pending Moderation
  1. Thursday, 17 February 2022 01:21 AM UTC
  2. PowerServer
  3. # 3

Thanks Ameen and Julie.  That is what I did in a round about way, but all I get is a 404 error when I try to access the app.  I can't seem to find any log files or other helpful information to point at what might be wrong.

I'm going to start again and follow the steps carefully, then I'll come back to you or support to see if you can help.

Comment
  1. Jason Frost
  2. Thursday, 17 February 2022 04:06 AM UTC
Hi Armeen, I have got a bit further. The issue previously was that the WebAPIs were not in the correct folder, I had put them in the root on IIS and I didn't realise that they needed to be in a folder named after the solution name (in my case uniprom_dev).

Anyway, I can now install the AppLauncher and start to run the app, However, this is my new error:



Error: Session creation failed.

Cause: Not found (HTTP status code 404). Web API: https://<server name>/api/ServerApi/CreateSession)



I must be missing something else or have it in the wrong place. Any ideas?
  1. Helpful
  1. Armeen Mazda @Appeon
  2. Thursday, 17 February 2022 06:19 AM UTC
Your app is probably configured to look for the Web API on localhost. You need to follow these instructions to configure your app to call the Web API on the remote server. https://docs.appeon.com/ps2021/Change_Web_API_URL.html
  1. Helpful 1
  1. Jason Frost
  2. Friday, 18 February 2022 00:50 AM UTC
I'm still struggling with this, but it has gone a bit off topic so I'm going to post a new question with explanations.
  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.