1. Roland Smith
  2. PowerBuilder
  3. Tuesday, 27 October 2020 21:02 PM UTC

When converting PB code to C# and deploying as a web service, is there any runtime besides the .Net framework?

Does it use .Net Core?

 

Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Thursday, 17 December 2020 05:30 AM UTC
  2. PowerBuilder
  3. # 1

When converting PowerScript to C#, you need to include various Appeon libraries in your project.

.NET DataStore libraries:

https://www.nuget.org/packages/DWNet.Data/

https://www.nuget.org/packages/DWNet.Data.AspNetCore/

https://www.nuget.org/packages/PowerScript.Bridge/

SnapObjects ORM: https://www.nuget.org/packages/SnapObjects.Data/

And the appropriate DB driver for SnapObjects ORM: https://www.nuget.org/profiles/SnapObjects

You can use .NET 4.x instead of .NET Core, but just FYI, Microsoft is no longer continuing .NET.  From this point forward it is just .NET Core.  https://docs.microsoft.com/en-us/dotnet/core/dotnet-five

 

Comment
There are no comments made yet.
Logan Liu @Appeon Accepted Answer Pending Moderation
  1. Friday, 30 October 2020 01:19 AM UTC
  2. PowerBuilder
  3. # 2

Hi Roland,

SnapObject and .NET DataStore NuGet packages are based on .NET Standard 2.0. Therefore, if you use this package on the .NET Framework project, you don't need the .NET Core runtime.

Regards,

Logan

 

Comment
There are no comments made yet.
Daryl Foster Accepted Answer Pending Moderation
  1. Wednesday, 28 October 2020 03:36 AM UTC
  2. PowerBuilder
  3. # 3

Hi Roland,

If you are using SnapDevelop, it uses .Net Core.  The Publish option in SnapDevelop can package all the runtime files you need depending on what option you choose.  I've deployed a few web services written in SnapDevelop and I publish using the Docker option. It packages everything up into a Linux container (although you can choose Windows if you want) and I then deploy the container to a Linux server for production.  The web services are then accessed via reverse proxy from Nginx webserver, although they could be accessed directly if we want.

Comment
  1. Miguel Alzate
  2. Wednesday, 16 December 2020 21:14 PM UTC
Hi, Daryl.



I have tried the File System publishing in SnapDevelop. However, the official Appeon documentation does not explain the subsequent procedure so that the files generated in the publication can then be installed as an application in IIS. Could you please tell me what this procedure is and what are the IIS configuration items that you mention?



I have already “Googled” several pages on this subject and have followed the instructions there exposed. However, after installing, when browsing the application directly from IIS, I get error 500.19 (Internal server error) related to the inaccessibility of the web.config file; Do you know anything about it?

  1. Helpful
  1. Daryl Foster
  2. Thursday, 17 December 2020 03:20 AM UTC
Hi Miguel, sorry, I don't actually use IIS with my web APIs, but the process isn't specific to SnapDevelop or Appeon, it's just plain vanilla .Net core hosting on IIS. If you google "deploy .net core to iis" you will find a bunch of links. I found this one that looks very relevant to you:

https://www.c-sharpcorner.com/article/deploy-asp-net-core-api-application-in-iis/

For that specific 500.19 error it says "The problem is, to run the .NET Core application in IIS we need to install “dot net core windows hosting bundle”. Just download and install it using the below link."
  1. Helpful
  1. Miguel Alzate
  2. Thursday, 17 December 2020 14:25 PM UTC
Thanks, Daryl. Your indications turned out very helpful.
  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.