Promoting system to production server - fail

This forum is meant for questions and discussions about the X# language and tools
Post Reply
RolWil
Posts: 99
Joined: Mon Jul 18, 2022 3:16 am

Promoting system to production server - fail

Post by RolWil »

Hello all,

I’m developing my systems on a local server and then, promoting them to a production cloud server. That cloud server does not have any of the development components such as Visual Studio with XSharp.
My understanding was that one only needs to promote the ‘Release’ folder but turns out that is not the case. I created a little test program that simply opens a DBF and indexes it. Works on my local server, but on the cloud server, it gets as far as opening the DBF, but when it then comes to creating the index, it fails until I install the dev environment.
Where am I going wrong?


Thanks.
User avatar
wriedmann
Posts: 4017
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Re: Promoting system to production server - fail

Post by wriedmann »

Hi Roland,
I think you have not copied the runtime files to the target folder on the target machine.
The X# installation installs them in the GAC, so you don't need them in your release folder, but they are still needed on a machine without X# installed.
Please see here for a list if needed files:
https://www.xsharp.eu/help/redistributing-x.html
Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
RolWil
Posts: 99
Joined: Mon Jul 18, 2022 3:16 am

Re: Promoting system to production server - fail

Post by RolWil »

wriedmann wrote: Sat May 24, 2025 6:20 pm Hi Roland,
I think you have not copied the runtime files to the target folder on the target machine.
The X# installation installs them in the GAC, so you don't need them in your release folder, but they are still needed on a machine without X# installed.
Please see here for a list if needed files:
https://www.xsharp.eu/help/redistributing-x.html
Wolfgang
Thanks for your prompt reply Wolfgang. I didn't realize need some of these other than the runtime's. I'll give them a try bit-by-bit. Is it suggested one installs the entire "Program Files>\XSharp\" folder instead?
FFF
Posts: 1731
Joined: Fri Sep 25, 2015 4:52 pm
Location: Germany

Re: Promoting system to production server - fail

Post by FFF »

Roland,
there is a folder "redist" for a reason. If you don't want to scratch your head, whether you missed a maybe needed dll, copy it's content to your cloud server. If space restricted, or feeling adventurous, study the listing in Wolfgang's posting and select as needed. Personally, i wouldn't bother, especially, as, following Murphy's law, in five months, when you'll enhance your app, needing one of the spared dlls, you certainly will have forgotten this thread and again scream at the monitor ;-)
Regards
Karl
(on Win8.1/64, Xide32 2.20, X#2.20.0.3)
User avatar
wriedmann
Posts: 4017
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Re: Promoting system to production server - fail

Post by wriedmann »

Hi Roland,
don't copy the XSharp folder from Program Files. First, I'm not sure if there are all files needed (as I wrote, the runtime files are copied to the GAC (a series of system folders), and second, you are not allowed to distribute the compiler itself and its accompagning files to machines outside your organization.
As Karl wrote, take the files from the Redist folder - but I'm pretty sure, you don't need all of them.
Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
Post Reply