1. Zhang JX
  2. SnapDevelop
  3. Thursday, 18 February 2021 13:50 PM UTC

To all,

I am new to Snapdev and also not familiar with Visual C# deployment. 

Following the step by step instruction from Help content, I have successfully deployed the SalesDemo application on local PC (IIS), and run as "Cloud Desktop" application successfully.

 

Question: Right now run the PowerServer2021 Beta from SnapDev, while in future production environment, what is the procedure to deploy it as Windows service?

 

Best Regards,

JX

Accepted Answer
Zhang JX Accepted Answer Pending Moderation
  1. Thursday, 25 February 2021 03:51 AM UTC
  2. SnapDevelop
  3. # Permalink
1
Votes
Undo

To all, Latest update.

I have raised a support ticket to Appeon team and have solved the IIS publishing issue per Appeon's advice - to install below Dot.net core 3.1 runtime bundle:

https://dotnet.microsoft.com/download/dotnet/thank-you/runtime-aspnetcore-3.1.12-windows-hosting-bundle-installer

Thanks to Appeon support team.

Best Regards,

JX

 
Comment
Thank you Armeen.

JX
  1. Zhang JX
  2. Thursday, 25 February 2021 05:26 AM UTC
You’re welcome. Glad your issue is resolved!
  1. Armeen Mazda @Appeon
  2. Thursday, 25 February 2021 05:52 AM UTC
Thanks for sharing the solution Zhang JX!
  1. Miguel Leeuwe
  2. Thursday, 25 February 2021 12:41 PM UTC
There are no comments made yet.
Zhang JX Accepted Answer Pending Moderation
  1. Friday, 12 March 2021 01:57 AM UTC
  2. SnapDevelop
  3. # 1
0
Votes
Undo

Learn to share:

Thanks to Appeon team’s help (@Zhaokai @Chris @Armeen @Miguel @Julie and more)  

I have successfully deployed our ERP system application to IIS server and published for internal testing

Hopeful this summary would be a help to others.

 

Best Regards

JX

Attachments (1)
Comment
Thanks for sharing!!!
  1. Armeen Mazda @Appeon
  2. Friday, 12 March 2021 04:56 AM UTC
There are no comments made yet.
Zhang JX Accepted Answer Pending Moderation
  1. Tuesday, 23 February 2021 03:42 AM UTC
  2. SnapDevelop
  3. # 2
0
Votes
Undo

Hi Armeen and all,

For the testing period, I am trying to do the local deployment by using IIS for the SalesDemo project.

no issue to run the deployed SalesDemo app by running PowerServer 2021 from SnapDevelop IDE (per attached Figure 1), while failed to run it if deploying both "AppModels" and "ServerAPIs", error message: 

If turning off the CloudApp SiteSite, got the error message:

Appreciate for advising.

 

Best Regards, 

JX

Attachments (1)
Comment
Hi Zhang,



For the error 0222, you turned off the site, the application failed to connect to PowerServer, so this issue happened.



For the error 0220, this issue is possibly caused by that the number of application sessions exceeds the license limit.



Currently, the test license has 10 sessions. You can check it via URL like below to see if multiple PowerServer instances are running. Please check it on all instances, and see if there are 10 sessions in total.

http://ip:port/api/Custom/GetAllSessions



You can simply release a session by closing the PowerServer instance.



Regards,

ZhaoKai

  1. Kai Zhao @Appeon
  2. Tuesday, 23 February 2021 07:48 AM UTC
Hi Zhaokai,

Thanks but no, for sure not a license issue, no any other session is running at this moment.

I guess it is due to wrong IIS deployment... when clicking on "Run..." from Snapdevelop IDE, no any issue to run the SalesDemo app.

Best Regards.

JX
  1. Zhang JX
  2. Tuesday, 23 February 2021 08:22 AM UTC
There are no comments made yet.
Zhang JX Accepted Answer Pending Moderation
  1. Thursday, 18 February 2021 16:45 PM UTC
  2. SnapDevelop
  3. # 3
0
Votes
Undo

Hi Armeen,

Noted with thanks, We would go for IIS deployment approach.


Is it still a need to use Visual Studio IDE to deploy the generated C# solution, or just use Snapdev IDE to do so?

 

Best Regards,

JX

 

 

Comment
No need to go through hassle of buying or installing Visual Studio... SnapDevelop handles this. But your IIS needs to be setup correctly by IT infrastructure person, and then you can do a Web Deploy from SnapDevelop. Here is a tutorial how to use the Web Deploy feature of SnapDevelop: https://docs.appeon.com/snapdevelop2019r3/Publish/index.html#publishing-to-iis
  1. Armeen Mazda @Appeon
  2. Thursday, 18 February 2021 17:04 PM UTC
That’s great.

Thanks Armeen.



Best Regards,

JX
  1. Zhang JX
  2. Thursday, 18 February 2021 23:12 PM UTC
You’re welcome.
  1. Armeen Mazda @Appeon
  2. Thursday, 18 February 2021 23:39 PM UTC
There are no comments made yet.
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Thursday, 18 February 2021 15:51 PM UTC
  2. SnapDevelop
  3. # 4
0
Votes
Undo

Hi JX,

The process to deploy the PowerServer is not different than deploying any C# REST API project, and there are many ways to do this.  You could for example run in Docker.  Or you could directly deploy to IIS. Or you could get fancy and separate out the Web server from Kestrel. 

I really recommend as a programmer you focus on your developing the app, and bring in somebody knowledgeable about infrastructure to properly set up your live server so that it won't have performance issues and it is secure.  No simple installation guide is going to guarantee this.

If your company doesn't have anybody with such knowledge, you can hire one of our consulting partners for short time to help you setup the live environment: https://www.appeon.com/consultants/consulting-partners

Best regards,
Armeen

Comment
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.