Web Connection
FIle Mode with web connection 6.20
Gravatar is a globally recognized avatar based on your email address. FIle Mode with web connection 6.20
  Kuzma Karbachinskiy
  All
  Apr 29, 2019 @ 02:15pm

Hi Rick,

I have to plan to run File mode on production with web connection 6.20 and NET Handler 6.20. I have question about temp folder and temp files. I checked that directories in TempFilePath in MyApp.ini file and TempPath in web.config for NET Handler are the same. Also I checked permission on Temp and up level folders in application directory. Application runs well I see that date and time on temp folder are changed correctly, but I can't see temp files in temp folder. I run 5 background instances in file mode started by admin page. I followed https://webconnection.west-wind.com/docs/_s8x00dy2j.htm. I have to clean up periodically temp directory with web connect 3.0 to avoid to many files in the directory. I ran instances on desc top by clicking on application Icon. Should I see temp files with web connection 6.20?

Thank you, Kuzma Karbachinskiy kkarbachinskiy@oneworldonectop.com

Gravatar is a globally recognized avatar based on your email address. re: FIle Mode with web connection 6.20
  Rick Strahl
  Kuzma Karbachinskiy
  Apr 29, 2019 @ 05:32pm

If you don't see temp file in the temp folder when the server in File Mode then either the Web.config temp path is wrong, or your Application Pool doesn't have the proper permissions to write there. Make sure the Application Pool identity has full access in your temp folder. To start use SYSTEM then once it works you can change to an account that has more adequate permissions (I like to use NETWORK SERVICE and give it rights in the required folders as needed).

As to temp files - the Web Connection module cleans up expired temp files automatically so unless your server is super busy you should never have too many files in the temp folder. Again, if files are piling up there then likely there's a permissions problem that causes the Web account to not be able to delete files in that folder.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: FIle Mode with web connection 6.20
  Kuzma Karbachinskiy
  Rick Strahl
  Apr 30, 2019 @ 06:25am

Hi Rick,

I have SYSTEM account with full permission to write or delete files in temp folder. So Web account writes and deletes temp files. It wasn't known to me that web account can delete outdated temp files with web connection 6.20.

Thank you for replay and explanations.

Kuzma Karbachinskiy kkarbachinskiy@oneworldonestop.com

Gravatar is a globally recognized avatar based on your email address. re: FIle Mode with web connection 6.20
  Rick Strahl
  Kuzma Karbachinskiy
  Apr 30, 2019 @ 03:15pm

If things are working you should not see any temp files in the TempPath. Successful requests will clean up after themselves - only timed out requests or completely crashed requests will leave behind files at times and these are cleaned up by the Web Connection handler at timed intervals.

So no you shouldn't see files there and if you have a fast server those files will get deleted to quickly for you to see. If you want to see the files, set a break point in your FoxPro code or don't start the server.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: FIle Mode with web connection 6.20
  Kuzma Karbachinskiy
  Rick Strahl
  May 1, 2019 @ 06:15am

Hi Rick,

I'll keep it in mind. Thank you for replay and explanations.

Kuzma Karbachinskiy kkarbachinskiy@oneworldonestop.com

© 1996-2019