Was working yesterday in a ws just fine.. turned off the computer.. today morning opened it in studio, as was not able to run it.

Receiving LINK ERROR when compiling, (to webapp.exe)

in WAS, if you try to start the webapp it fails silently. no error is reported.

in Event viewer I have logs saying webapp.log was not being able to open

Code:
Log Name:      Application
Source:        DFWAS250
Date:          13/11/2024 09:35:10
Event ID:      317
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      SAM_PRECISION
Description:
Failed to initialize application event log: Unable to open C:\SynologyDrive\Projetos\DataFlex\Web Font Icons\WebIconsWAF\Programs\WebApp.log Violação de compartilhamento.
Backing up log file. Creating new log file:  Unable to create C:\SynologyDrive\Projetos\DataFlex\Web Font Icons\WebIconsWAF\Programs\WebApp.log %1 já existe.


Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="DFWAS250" />
    <EventID Qualifiers="49152">317</EventID>
    <Version>0</Version>
    <Level>2</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2024-11-13T12:35:10.2412850Z" />
    <EventRecordID>515680</EventRecordID>
    <Correlation />
    <Execution ProcessID="5560" ThreadID="0" />
    <Channel>Application</Channel>
    <Computer>SAM_PRECISION</Computer>
    <Security />
  </System>
  <EventData>
    <Data>Unable to open C:\SynologyDrive\Projetos\DataFlex\Web Font Icons\WebIconsWAF\Programs\WebApp.log Violação de compartilhamento.
Backing up log file. Creating new log file:  Unable to create C:\SynologyDrive\Projetos\DataFlex\Web Font Icons\WebIconsWAF\Programs\WebApp.log %1 já existe.
</Data>
  </EventData>
</Event>
With webapp down, tried to delete the log.. maybe it got corrupted. no luck.. Windows says the file is used by WAS. How could it be ? you can't start the webapp, because the log can't be opened, but it has the file opened and kept it open ?


digging further, I also found entries for DF 24 trying to start this same webapp, and facing issues. . This is an entry for DF 24.0 WAS, not 25.
Code:
A child process does not respond, unconditionally terminating the process (C:\SynologyDrive\Projetos\DataFlex\Web Font Icons\WebIconsWAF\Programs\WebApp.exe).
So, what actually happened:

I've migrated this workspace in-place from DF 24 to df 25.0

Problem #1: When performing in-place migrations, it should detect that the same path is also referenced in previous version and should ask if we want to disable the webapp in release being left.
It didn't. so I ended up with same app (same .exe path) registered twice , one for DF 24 and another for DF 25. Off course, they were conflicting each other.

I didn't want to delete the DF 24 in was entry for it now. So I just stopped it. and everything worked fine for a couple of days. until today.

Today, it seems DF 24 took the front. and started earlier than df 25, preventing df 25 to get it..

So, problem #2, Just having Stop/Start option in WAS is not enough. When the hole WAS service is starting up , it tries to start all webapps again.. even those that you manually asked to STOP like this one.

We need a different option, state configuration. Current/Observed state, running down. Stop and Start only affects this..
And new new configuration state , named "Desired State" what you want it to be.. Desired state = Down/Stopped. or UP/Running. If we set an webapp desired state to DOWN or Stopped, WAS should never try to start it back..


Regards