Web Connection
Server only allows one instance of webconnect
Gravatar is a globally recognized avatar based on your email address. Server only allows one instance of webconnect
  n/a
  All
  Nov 26, 2014 @ 02:59pm
Hello Rick,

We recently had a power outage and my webserver is not allowing us to run more than one instance of web connect. If instantiate a second (or third etc) webconnect, it crashes and says "Cannot create file c:\wconnect\rcservice.fxp. (cancel, suspend, ignore, help)

This is the code:
DO CASE

CASE lcParameter == "RCSERVICE"
DO RCService with THIS

*** SUB APPLETS ADDED ABOVE - DO NOT MOVE THIS LINE ***

CASE lcParameter == "WWMAINT"
...

and it crashes when attempting to run "DO RCService with THIS" (above). Does something need to be reset? reinstalled?

Thank you and happy thanksgiving.

David

Gravatar is a globally recognized avatar based on your email address. Re: Server only allows one instance of webconnect
  Rick Strahl
  RESCUECOM
  Nov 27, 2014 @ 12:42am
Hi David,

Sounds like you have locked files that can't be deleted or files that are out of date between source and fxp files. Shut down the server, delete all the FXP files and run the app again.

Why are you running a live application with PRG files? You should compile your app into an EXE and run that instead which is one way to get around this. But even beyond that it seems to me you have something changing PRG files and locking the FXP before VFP can recompile them.

+++ Rick ---



Hello Rick,

We recently had a power outage and my webserver is not allowing us to run more than one instance of web connect. If instantiate a second (or third etc) webconnect, it crashes and says "Cannot create file c:\wconnect\rcservice.fxp. (cancel, suspend, ignore, help)

This is the code:
DO CASE

CASE lcParameter == "RCSERVICE"
DO RCService with THIS

*** SUB APPLETS ADDED ABOVE - DO NOT MOVE THIS LINE ***

CASE lcParameter == "WWMAINT"
...

and it crashes when attempting to run "DO RCService with THIS" (above). Does something need to be reset? reinstalled?

Thank you and happy thanksgiving.

David



Rick Strahl
West Wind Technologies

Making waves on the Web
from Maui

Gravatar is a globally recognized avatar based on your email address. Re: Server only allows one instance of webconnect
  n/a
  Rick Strahl
  Nov 27, 2014 @ 11:19am
Hi Rick,

I deleted all of the FXP files. I have a program that automatically compiles all of the prg files prior to calling the web connect software. We uninstalled FoxPro and web connect and it still had the same error message. I put SET DEVELOPMENT OFF right above the case statement and it no longer gave the error message. This is not a good solution. I would like to figure out why this is happening.

As a side note, I installed windows server 2012, vfp and web connect on a test server to see if the same problem occurred (without the SET DEVELOPMENT OFF command) and IT DID! So I believe there may be something wrong with my server, tomorrow I am going to tear down the server and reload everything.

Could a power outage cause this weird type of corruption with web connect?

What do you think?

Thank you,

David


Hi David,

Sounds like you have locked files that can't be deleted or files that are out of date between source and fxp files. Shut down the server, delete all the FXP files and run the app again.

Why are you running a live application with PRG files? You should compile your app into an EXE and run that instead which is one way to get around this. But even beyond that it seems to me you have something changing PRG files and locking the FXP before VFP can recompile them.

+++ Rick ---



Hello Rick,

We recently had a power outage and my webserver is not allowing us to run more than one instance of web connect. If instantiate a second (or third etc) webconnect, it crashes and says "Cannot create file c:\wconnect\rcservice.fxp. (cancel, suspend, ignore, help)

This is the code:
DO CASE

CASE lcParameter == "RCSERVICE"
DO RCService with THIS

*** SUB APPLETS ADDED ABOVE - DO NOT MOVE THIS LINE ***

CASE lcParameter == "WWMAINT"
...

and it crashes when attempting to run "DO RCService with THIS" (above). Does something need to be reset? reinstalled?

Thank you and happy thanksgiving.

David



Gravatar is a globally recognized avatar based on your email address. Re: Server only allows one instance of webconnect
  n/a
  RESCUECOM
  Nov 27, 2014 @ 12:00pm
Hi Rick,

We did some additional testing and it appears that the server stopped synchronizing time to the network time. Once we synchronized the server to the network time, the problem seems to be solved!

Thank you for your help.

Happy Thanksgiving,

David


Hi Rick,

I deleted all of the FXP files. I have a program that automatically compiles all of the prg files prior to calling the web connect software. We uninstalled FoxPro and web connect and it still had the same error message. I put SET DEVELOPMENT OFF right above the case statement and it no longer gave the error message. This is not a good solution. I would like to figure out why this is happening.

As a side note, I installed windows server 2012, vfp and web connect on a test server to see if the same problem occurred (without the SET DEVELOPMENT OFF command) and IT DID! So I believe there may be something wrong with my server, tomorrow I am going to tear down the server and reload everything.

Could a power outage cause this weird type of corruption with web connect?

What do you think?

Thank you,

David


Hi David,

Sounds like you have locked files that can't be deleted or files that are out of date between source and fxp files. Shut down the server, delete all the FXP files and run the app again.

Why are you running a live application with PRG files? You should compile your app into an EXE and run that instead which is one way to get around this. But even beyond that it seems to me you have something changing PRG files and locking the FXP before VFP can recompile them.

+++ Rick ---



Hello Rick,

We recently had a power outage and my webserver is not allowing us to run more than one instance of web connect. If instantiate a second (or third etc) webconnect, it crashes and says "Cannot create file c:\wconnect\rcservice.fxp. (cancel, suspend, ignore, help)

This is the code:
DO CASE

CASE lcParameter == "RCSERVICE"
DO RCService with THIS

*** SUB APPLETS ADDED ABOVE - DO NOT MOVE THIS LINE ***

CASE lcParameter == "WWMAINT"
...

and it crashes when attempting to run "DO RCService with THIS" (above). Does something need to be reset? reinstalled?

Thank you and happy thanksgiving.

David




© 1996-2024