RE: Kick off compile and build on remote server

2019-03-19 Thread Stephen J. Orth via 4D_Tech
Jim,

Most likely a security issue with the user account your using.  How is the 
account configure?  Have you tried using Windows scheduler to run this and see 
what happens?


Steve

*
  Stephen J. Orth
  The Aquila Group, Inc.  Office:  (608) 834-9213
  P.O. Box 690   Mobile:  (608) 347-6447
  Sun Prairie, WI 53590

  E-Mail:  s.o...@the-aquila-group.com
*

-Original Message-
From: 4D_Tech <4d_tech-boun...@lists.4d.com> On Behalf Of Jim Hays via 4D_Tech
Sent: Tuesday, March 19, 2019 4:55 PM
To: 4D iNug Technical <4d_tech@lists.4d.com>
Cc: Jim Hays 
Subject: Kick off compile and build on remote server

We're having trouble with "net stop" and "net start" running from a batch file 
on a Windows Server.

Unless we right-click and run as Administrator, access is denied to stop or 
start a service, but we want this to happen "unattended" on the server.
 We could kick it off from a client, or have it run nightly at a certain time.

This used to work for us a while ago, but it seems Windows security is tighter 
now.

Does anyone have this working?

Thanks,

Jim
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Kick off compile and build on remote server

2019-03-19 Thread Jim Hays via 4D_Tech
We're having trouble with "net stop" and "net start" running from a batch
file on a Windows Server.

Unless we right-click and run as Administrator, access is denied to stop or
start a service, but we want this to happen "unattended" on the server.
 We could kick it off from a client, or have it run nightly at a certain
time.

This used to work for us a while ago, but it seems Windows security is
tighter now.

Does anyone have this working?

Thanks,

Jim
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: Printing a PDF document from 4D

2019-03-19 Thread Neal Schaefer via 4D_Tech
Oops - quick correction on the syntax:

HTML to DOCX:
Launch External Process ("C:\\temp\\convertdoc.exe c:\\temp\\*.htm 
c:\\temp\\*.docx /overwrite"; $blank;$outputStream_t;$errorStream_t)

HTML to PDF:
Launch External Process ("C:\\temp\\convertdoc.exe c:\\temp\\*.htm 
c:\\temp\\*.pdf /overwrite"; $blank;$outputStream_t;$errorStream_t)
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Printing a PDF document from 4D

2019-03-19 Thread Julio Carneiro via 4D_Tech
Sorry Rob, my mistake!

I misread QPDF’s documentation and assumed the exact opposite, that QPDF Print 
Document was not implemented on Windows! duh!!

I’ll take another look for sure.

cheers,
julio

> On Mar 19, 2019, at 11:58 AM, Rob Laveaux via 4D_Tech <4d_tech@lists.4d.com 
> > wrote:
> 
> 
> 
>> On 19 Mar 2019, at 15:27, Julio Carneiro via 4D_Tech <4d_tech@lists.4d.com 
>> > wrote:
>> 
>> @Luc Devar, QPDF, also from pluggers.nl  
>> >, does not support printing on 
>> Windows.
> 
> 
> Hi Julio,
> 
> What makes you conclude that?
> 
> QPDF Print Document works just fine on Windows.
> It is however not yet implemented on Mac, as described in the documentation.
> 
> But there are are various alternative ways to achieve that.
> You can also render a PDF page to a picture variable and print the picture.
> 
> HTH,
> 
> - Rob Laveaux
> 
> 
> Pluggers Software
> Scholekstersingel 48
> 2496 MP  Den Haag
> The Netherlands
> 
> Email: rob.lave...@pluggers.nl  
> >
> Website: http://www.pluggers.nl  
> >
> 
> 

--
Julio Carneiro
jjfo...@gmail.com



**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Printing a PDF document from 4D

2019-03-19 Thread Neal Schaefer via 4D_Tech
We've been dealing with this issue with regard to converting HTML we generate 
from 4D to MS Word DOCX, and in the process, we ended up with a nice 
multi-format conversion tool that supports PDF as well. For years we've been 
using a free Windows desktop app called MultiDoc Converter by a developer in 
Germany. We needed to convert XML and HTML to DOCX and were looking for a 
plugin for 4D to handle it. I contacted the developer and he sold us a command 
line EXE application version of the same software that we can call from 4D via 
Launch External Process. The syntax is super simple:

HTML to DOCX:
Launch External Process ("C:\\temp\\convertdoc.exe c:\\temp\\*.htm 
c:\\temp\\*.docx /overwrite")

HTML to PDF:
Launch External Process ("C:\\temp\\convertdoc.exe c:\\temp\\*.htm 
c:\\temp\\*.pdf /overwrite")

It converts to and from HTML, XML, DOC, DOCX, ePub, ODT, and PDF (although you 
can only convert TO PDF, not From).

His website is here if you're interested: 
http://www.multidoc-converter.com/en/index.html

Neal Schaefer
Director, Product & Content Management Systems

ABC-CLIO
nschae...@abc-clio.com | 
www.abc-clio.com


**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Printing a PDF document from 4D

2019-03-19 Thread Julio Carneiro via 4D_Tech
Thanks to all that replied, Stephen J. Orth’s Win32API is the winning solution.

That’s why this is is awesome.

cheers,
julio

> On Mar 19, 2019, at 4:42 PM, ADeeg via 4D_Tech <4d_tech@lists.4d.com> wrote:
> 
> 4D Tech mailing list wrote
>> Has anyone here had the need to print a PDF document from 4D, and found a
>> solution?
>> 
>> I am not talking about generating a PDF from 4D. I have an existing PDF
>> document and I need 4D to print it for me! Exactly, user selects a PDF
>> document and I have 4D command it to be printed.
>> 
>> I can use LEP, a plugin, whatever, but so far I have not found a way to do
>> it, with a 100% assurance the document will come out faithfully.
>> 
>> Oh, and this in on Windows.
>> 
>> Thanks for any pointers.
>> --
>> Julio Carneiro
> 
> Hi Julio,
> 
> I use this:
> 
> Windows: 
> $errText:=sys_ShellExecute ("print";$vt_path;"";"";1)
> With Win32Api Plugin
> 
> Mac: 
> C_TEXT($1;$POSIXPath;$HFSPath)
> $HFSPath:=$1
> $POSIXPath:=Replace string($HFSPath;":";"/")
> LAUNCH EXTERNAL PROCESS("lp \"/Volumes/"+$POSIXPath+"\"")
> 
> Regards Armin
> And if you need a solution to create pdfs on windows:
> http://www.node.de/indexplug.htm 
> 
> 
> 
> 
> --
> Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html 
> 
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html 
> 
> Options: https://lists.4d.com/mailman/options/4d_tech 
> 
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com 
> 
> **

--
Julio Carneiro
jjfo...@gmail.com



**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Printing a PDF document from 4D

2019-03-19 Thread ADeeg via 4D_Tech
4D Tech mailing list wrote
> Has anyone here had the need to print a PDF document from 4D, and found a
> solution?
> 
> I am not talking about generating a PDF from 4D. I have an existing PDF
> document and I need 4D to print it for me! Exactly, user selects a PDF
> document and I have 4D command it to be printed.
> 
> I can use LEP, a plugin, whatever, but so far I have not found a way to do
> it, with a 100% assurance the document will come out faithfully.
> 
> Oh, and this in on Windows.
> 
> Thanks for any pointers.
> --
> Julio Carneiro

Hi Julio,

I use this:

Windows: 
$errText:=sys_ShellExecute ("print";$vt_path;"";"";1)
With Win32Api Plugin

Mac: 
C_TEXT($1;$POSIXPath;$HFSPath)
$HFSPath:=$1
$POSIXPath:=Replace string($HFSPath;":";"/")
LAUNCH EXTERNAL PROCESS("lp \"/Volumes/"+$POSIXPath+"\"")

Regards Armin
And if you need a solution to create pdfs on windows:
http://www.node.de/indexplug.htm




--
Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Printing a PDF document from 4D

2019-03-19 Thread Rob Laveaux via 4D_Tech


> On 19 Mar 2019, at 15:27, Julio Carneiro via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> @Luc Devar, QPDF, also from pluggers.nl , does not 
> support printing on Windows.


Hi Julio,

What makes you conclude that?

QPDF Print Document works just fine on Windows.
It is however not yet implemented on Mac, as described in the documentation.

But there are are various alternative ways to achieve that.
You can also render a PDF page to a picture variable and print the picture.

HTH,

- Rob Laveaux


Pluggers Software
Scholekstersingel 48
2496 MP  Den Haag
The Netherlands

Email: rob.lave...@pluggers.nl 
Website: http://www.pluggers.nl 





**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Printing a PDF document from 4D

2019-03-19 Thread Darin Schroeder via 4D_Tech
We use GhostScript via LEP to convert the file from a PDF to a PCL
document. Afterwards we open a connection to the printer using TCP
commands and send with TCP_SendBlob.

We do many PDFs this way and it works great. Cons are that it has to
be an IP-configured printer. Pros are that it's silent. No additional
programs open up or flash windows on the workstation. And it's pretty
fast.

Darin

> Julio, Sorry, coming into this late... Do you have WIN32API? If so, you can 
> simply use the sys_shellexecute command to print. It will use the native 
> Windows application. Best, Steve 
> * Stephen J. Orth The Aquila 
> Group, Inc. Office: (608) 834-9213 P.O. Box 690 Mobile: (608) 347-6447 Sun 
> Prairie, WI 53590 E-Mail: s.o...@the-aquila-group.com 
> *
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: Printing a PDF document from 4D

2019-03-19 Thread Stephen J. Orth via 4D_Tech
Julio,

Here is how we use this command to print:

 $returncode:=sys_ShellExecute ("print";$path;"";"";SW_HIDE)

The $path variable contains the full path to the document I want to print.

Best,


Steve

*
  Stephen J. Orth
  The Aquila Group, Inc.  Office:  (608) 834-9213
  P.O. Box 690   Mobile:  (608) 347-6447
  Sun Prairie, WI 53590

  E-Mail:  s.o...@the-aquila-group.com
*

-Original Message-
From: 4D_Tech <4d_tech-boun...@lists.4d.com> On Behalf Of Stephen J. Orth via 
4D_Tech
Sent: Tuesday, March 19, 2019 9:30 AM
To: '4D iNug Technical' <4d_tech@lists.4d.com>
Cc: Stephen J. Orth 
Subject: RE: Printing a PDF document from 4D

Julio,

Sorry, coming into this late...

Do you have WIN32API?  If so, you can simply use the sys_shellexecute command 
to print.  It will use the native Windows application.

Best,


Steve

*
  Stephen J. Orth
  The Aquila Group, Inc.  Office:  (608) 834-9213
  P.O. Box 690   Mobile:  (608) 347-6447
  Sun Prairie, WI 53590

  E-Mail:  s.o...@the-aquila-group.com
*

-Original Message-
From: 4D_Tech <4d_tech-boun...@lists.4d.com> On Behalf Of Julio Carneiro via 
4D_Tech
Sent: Tuesday, March 19, 2019 9:27 AM
To: 4D iNug Technical <4d_tech@lists.4d.com>
Cc: Julio Carneiro 
Subject: Re: Printing a PDF document from 4D

I do have PDF Viewer, but on Windows you can’t print from an off-screen area, 
which means yo have to display the pdf on a form before printing it.

I forgot to mention that I need to just “print” and external PDF. Printing has 
to happen in background and in some cases for 4D Server. So, no user interface 
allowed.

@Luc Devar, QPDF, also from pluggers.nl, does not support printing on Windows.


**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Printing a PDF document from 4D

2019-03-19 Thread Julio Carneiro via 4D_Tech
I do have PDF Viewer, but on Windows you can’t print from an off-screen area, 
which means yo have to display the pdf on a form before printing it.

I forgot to mention that I need to just “print” and external PDF. Printing has 
to happen in background and in some cases for 4D Server. So, no user interface 
allowed.

@Luc Devar, QPDF, also from pluggers.nl, does not support printing on Windows.

So, none of Rob’s plugins work in my case.

> On Mar 19, 2019, at 9:29 AM, UKVetDerm via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> RE:  There is another plugin from pluggers.nl which handles viewing and 
> printing of pdf documents too: PDFViewer. I have been using it on macOS for 
> years. Excellent support from Rob for the rare occasions I needed it.
> 
> I would second this!
> 
> Steve
> 
> 
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

--
Julio Carneiro
jjfo...@gmail.com



**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Printing a PDF document from 4D

2019-03-19 Thread Keisuke Miyako via 4D_Tech
printing an HTML is not always easy (especially pagination) even with a good 
media specific CSS.
https://github.com/miyako/4d-component-wkhtmltopdf

besides, printing is a blocking process (only 1 job at a time) and not thread 
safe
so I think it is preferable to generate PDF by code than to "print" it, if 
possible. (like with the pluggers plugin)

> 2019/03/19 22:49、Charles Miller via 4D_Tech <4d_tech@lists.4d.com>のメール:
> Not sure if this will work but how about creating a web area in form load
> the document and then print it




**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Printing a PDF document from 4D

2019-03-19 Thread Tim Nevels via 4D_Tech
On Mar 19, 2019, at 8:50 AM, Julio Carneiro wrote:

> Has anyone here had the need to print a PDF document from 4D, and found a 
> solution?
> 
> I am not talking about generating a PDF from 4D. I have an existing PDF 
> document and I need 4D to print it for me! Exactly, user selects a PDF 
> document and I have 4D command it to be printed.
> 
> I can use LEP, a plugin, whatever, but so far I have not found a way to do 
> it, with a 100% assurance the document will come out faithfully.
> 
> Oh, and this in on Windows.
> 
> Thanks for any pointers.

Acrobat Reader has a command line interface to cause it to print a PDF. It’s 
not well documented and it has changed a bit over time with different versions 
but it does work. Check this out:

https://superuser.com/questions/1226609/adobe-reader-send-to-printer-command-line

You may need to provide the full path the AcroRd32.exe to get it to work via 
LEP. Also if you don’t specify  it will print to the default 
printer. 

Tim

*
Tim Nevels
Innovative Solutions
785-749-3444
timnev...@mac.com
*


**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Printing a PDF document from 4D

2019-03-19 Thread Charles Miller via 4D_Tech
Not sure if this will work but how about creating a web area in form load
the document and then print it

On Tue, Mar 19, 2019 at 7:13 AM Julio Carneiro via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Has anyone here had the need to print a PDF document from 4D, and found a
> solution?
>
> I am not talking about generating a PDF from 4D. I have an existing PDF
> document and I need 4D to print it for me! Exactly, user selects a PDF
> document and I have 4D command it to be printed.
>
> I can use LEP, a plugin, whatever, but so far I have not found a way to do
> it, with a 100% assurance the document will come out faithfully.
>
> Oh, and this in on Windows.
>
> Thanks for any pointers.
> --
> Julio Carneiro
> jjfo...@gmail.com
>
>
>
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

-- 
-
 Chuck Miller Voice: (617) 739-0306 Fax: (617) 232-1064
 Informed Solutions, Inc.
 Brookline, MA 02446 USA Registered 4D Developer
   Providers of 4D, Sybase & SQL Server connectivity
  http://www.informed-solutions.com
-
This message and any attached documents contain information which may be
confidential, subject to privilege or exempt from disclosure under
applicable law.  These materials are intended only for the use of the
intended recipient. If you are not the intended recipient of this
transmission, you are hereby notified that any distribution, disclosure,
printing, copying, storage, modification or the taking of any action in
reliance upon this transmission is strictly prohibited.  Delivery of this
message to any person other than the intended recipient shall not
compromise or waive such confidentiality, privilege or exemption
from disclosure as to this communication.
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Printing a PDF document from 4D

2019-03-19 Thread UKVetDerm via 4D_Tech
RE:  There is another plugin from pluggers.nl which handles viewing and 
printing of pdf documents too: PDFViewer. I have been using it on macOS for 
years. Excellent support from Rob for the rare occasions I needed it.

I would second this!

Steve


**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Printing a PDF document from 4D

2019-03-19 Thread Koen Van Hooreweghe via 4D_Tech
Hi Julio,

There is another plugin from pluggers.nl which handles viewing and printing of 
pdf documents too: PDFViewer. I have been using it on macOS for years. 
Excellent support from Rob for the rare occasions I needed it.

Kind regards,
Koen

> Op 19 mrt. 2019, om 12:39 heeft Luc Devar via 4D_Tech <4d_tech@lists.4d.com> 
> het volgende geschreven:
> 
> I use QPDF plugin from Pluggers Software 
>  > to do this kind of action and 
> many more. 
> Best tools out there to manage PDF documents from 4D.




Compass bvba
Koen Van Hooreweghe
Kloosterstraat 65
9910 Aalter
Belgium
tel +32 495 511.653

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Printing a PDF document from 4D

2019-03-19 Thread Julio Carneiro via 4D_Tech
Has anyone here had the need to print a PDF document from 4D, and found a 
solution?

I am not talking about generating a PDF from 4D. I have an existing PDF 
document and I need 4D to print it for me! Exactly, user selects a PDF document 
and I have 4D command it to be printed.

I can use LEP, a plugin, whatever, but so far I have not found a way to do it, 
with a 100% assurance the document will come out faithfully.

Oh, and this in on Windows.

Thanks for any pointers.
--
Julio Carneiro
jjfo...@gmail.com



**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Socket Communication

2019-03-19 Thread Paul Dennis via 4D_Tech
Just watched the 4D Method presentation from Matt. Very interesting.
Thanks to Matt and 4D Method.
Paul



--
Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Simulated Multiuser Testing

2019-03-19 Thread Maurice Inzirillo - AJAR via 4D_Tech
Hello Robert,

Thanks to 4D Service we were able to perform tests to simulate 1400 4D Remote 
connections with 4D server in order to verify, for one of our customers, the 
ability of 4D Server v16 to support the load on a WAN network for their 
specific application. For these tests we had to play automated scenarios 
representative of the different critical periods of operation:

- First connexion
- Startup
- Steady state
- Overload
- Disconnexion and reconnnexion
- Network disconnexion server side
- etc.

These tests allowed us to optimize the application and verify, through 
realistic usage scenarios, the hardware characteristics to be implemented for 
4D Server. 

I can only recommend that you approach 4D Service for this type of service if 
you need it. They are perfectly capable of helping you.


Regards,

Maurice Inzirillo
-- 
AJAR S.A.

https://ch-fr.4d.com
twitter: ajar_info
Tél : +41 (0)323422684



> On 15 Mar 2019, at 23:56, Robert ListMail via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> I’m trying to diagnose an issue with 4D client disconnecting from the server 
> and it only seems to happen when there are 10 or more users connected. Have 
> you ever simulated multiple users during your own testing?
> 
> Thanks,
> 
> Robert 
> 
> Sent from my iPhone
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: $D V17 as a service

2019-03-19 Thread GI -AJAR via 4D_Tech
Hi Pat. 

We had the same issue some time ago and figured out how to solve the problem. 
The issue was that we use the new architecture for deploymemt and with this new 
architecture, the datafile location is stored in a xml file in the user appdata 
of the user which launch the application the first time. In our case it was the 
Administrator. Because as a Service it was Local System user, 4D stop to run 
because he could not find a datafile to open. The solution was to move this xml 
file in the appdata of the Local System user (located in a deep hidden place 
but findable). This solve our issue.

I dont know if it is the same for you. But I assume you launch 4D as 
Administrator when you launch it normally(not as a service). 

You can also get some more informations in the event logs of windows and get 
the log of why 4D stops. In our case it was written « cannot open a datafile » 
or something like that. 

Hope ut can help. 

Gabriel 

Envoyé de mon iPhone

> Le 19 mars 2019 à 01:22, Pat Bensky via 4D_Tech <4d_tech@lists.4d.com> a 
> écrit :
> 
> I have been banging my head against the wall with this problem for weeks :)
> Advice I was given was to NOT run the service with the Local system Access
> option selected but to create a new user account and use that. I got the
> client's IT dept. to create a new user account and it is selected under
> "This account" in Task Manager->Services->Properties->Log on.
> 
> So in the Task Manager it says the app is "Running", but in the Properties
> dialog, under General, it says Service status: Stopped. If I click Start it
> starts but then immediately reverts to Stopped.
> 
> If I do not try to run the app as a service, it runs just fine, and I can
> connect to it from a Client on the same machine, so I'm confident that
> there isn't a problem with the app that's preventing it from running.
> 
> I started a thread on this topic a few weeks ago and I believe I've
> followed the advice given there :) But still can't get it to work.
> 
> Pat
> 
> On Mon, 18 Mar 2019 at 22:12, Robert ListMail via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> 
>> I’m having the same issue with Windows Server 2016 and Windows 10 Pro
>> (local Dev OS) when using a built server.
>> 
>> The steps I generally take are:
>>-Launch the built server as Admin.
>>-Say yes to any firewall questions from the OS.
>>-Register as a service.
>>-Start 4D Server service via Service control panel of the OS.
>>-connect with 4D client…. Be happy!
>> 
>> The problem is that the client does not connect. Upon closer inspection, I
>> notice that the server is initially started as a server then it apparently
>> quits just after it starts. The Service list shows it running and it looks
>> like it’s running, then after a refresh of that list, it’s clearly not
>> running.
>> 
>> Any ideas?
>> 
>> Thanks,
>> 
>> Robert
>> 
>>> On Jan 28, 2019, at 4:15 PM, Uist Macdonald via 4D_Tech <
>> 4d_tech@lists.4d.com> wrote:
>>> 
>>> When I run 4d Server V17.0 as an app under Windows Server 2016, I can
>> connect to it OK.  However if I run it as a service, I cannot connect.
>> 
>> **
>> 4D Internet Users Group (4D iNUG)
>> Archive:  http://lists.4d.com/archives.html
>> Options: https://lists.4d.com/mailman/options/4d_tech
>> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
>> **
> 
> 
> 
> -- 
> *
> CatBase - Top Dog in Data Publishing
> tel: +44 (0) 207 118 7889
> w: http://www.catbase.com
> skype: pat.bensky
> *
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **


**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Simulated Multiuser Testing

2019-03-19 Thread Robert ListMail via 4D_Tech
Tom, thanks for your input. I’ll let you know if I pursue this and come up with 
something interesting.

R

Sent from my iPhone

> On Mar 15, 2019, at 6:28 PM, Tom Benedict  wrote:
> 
> We used it a lot to try to understand 4D Server “anomalies” but in the end we 
> never really came up with anything conclusive.

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**