NetTalk Central

Author Topic: Run as service anomaly  (Read 3863 times)

John Fligg

  • Sr. Member
  • ****
  • Posts: 361
    • View Profile
    • Ambrit Software
    • Email
Run as service anomaly
« on: December 02, 2011, 05:36:28 PM »
I have added the SelfService controls to my server app. Running on my desktop machine the service starts and all is fine. However I decided I wanted to check the stats. As there is no server window available I ran the server exe manually and the stats window appeared. But there were no threads shown.

I guess that makes sense as when I launched the server it was not monitoring the original launch via self service (if that makes sense).

Anyway I tried an external self service approach but that did not work either.

So how can I have the server app as a service AND also make sure that the stats screen is available at any time? I;m obviously missing something obvious.

Thanks

John

DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
Re: Run as service anomaly
« Reply #1 on: December 02, 2011, 06:42:43 PM »
I think that the only way you will see any "stats" is if someone is accessing your webserver via a browser.  The stats do not not have anything to do with the actions of the EXE itself.

Don
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Run as service anomaly
« Reply #2 on: December 02, 2011, 09:05:40 PM »
>> So how can I have the server app as a service AND also make sure that the stats screen is available at any time? I;m obviously missing something obvious.

you would need to make a NetWebForm, and populate that with the performance properties from the server class.
Probably something you want to do down the road a bit.

cheers
Bruce

John Fligg

  • Sr. Member
  • ****
  • Posts: 361
    • View Profile
    • Ambrit Software
    • Email
Re: Run as service anomaly
« Reply #3 on: December 03, 2011, 08:05:28 AM »
OK here's a weird one.

Ever since making my app a service I am getting from time to time strange compilation issues.

The compilation will fail with cannot delete webapp.exe, file access error. File open.

However the service is not running and is disabled.

The ONLY way I seem to be able to resolve this is to start up in safe mode, delete the exe and start over. It lasts for a while then rears it;s ugly head again.

BTW I am only performing generate and make and not trying to run the app from within the IDE.

John

DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
Re: Run as service anomaly
« Reply #4 on: December 03, 2011, 12:32:46 PM »
I've got a guess..

Are you using WinEvent to minimize to tray or something along those lines?

If so, and you have not identified an icon, the EXE will run but you will not see it.  It can only be seen  via the task manager.

Don
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11

John Fligg

  • Sr. Member
  • ****
  • Posts: 361
    • View Profile
    • Ambrit Software
    • Email
Re: Run as service anomaly
« Reply #5 on: December 04, 2011, 05:24:29 AM »
No - I checked the rask manager and it was not running.

But lately seems to have been OK touch wood.

I think it is something to do with the Clarion IDE holding onto something but not sure. I think I will just ignore it for now being as it is behavng at the moment <g>

John

John Fligg

  • Sr. Member
  • ****
  • Posts: 361
    • View Profile
    • Ambrit Software
    • Email
Re: Run as service anomaly
« Reply #6 on: December 04, 2011, 05:53:29 AM »
Actually it may be IE9. All of a sudden this morning all my apps refused to run on 'localhost'. I tried different ports and IE9 would always say Could not find page.

So I reset all the settings and working again now.

John