hello to everyone
I am running windows based program compiled with Express Edition.
I have User name and Password that application run OK and connect to remote computer everything is OK
I Store these values in Application Settings all is fine…
But when I run the application from Windows schedule IT IS CREATE NEW application setting WHICH are EMPTY in first start….
HOW to prevent that
I want the application to run with same values stored in first one
10x in advance
val

app.config problem
Steve Hansen
use the registry... and with the scheduler make sure the started process has the same user name and password as presumable you do....
In the registry use HKLM_LOCAL_USERS.... these will be values unique to you.
I have to admit that I probably would not have looked in the config file for a user name and password because it such a bad place to place then (unless you are encrypting and decrypting.)
Aanand Yatri
Do you have two copies of your application If so, are they signed
Best regards,
Johan Stenberg
Krobar
Thank you very much Johan for helping me
Here is a sample project, you can see the project files and I publish with Click Once
http://69.157.208.171/Sett/
1. When the program is installed you can run it and set up some value
2. I run Scheduler Task for the same program from C:\Documents and
Settings\Administrator\Local Settings\Apps\2.0 ......
I have only 1 account and I setup the password in the scheduler correctly...
When you run the program the first time from the scheduler My.Settings are empty again.
If I put some value the first time I use scheduler everything is OK, but I want to use the settings that I set up previously for the programme and not set up the scheduler settongs again.
In my program I have Step-by-Step User settings wizard whereby the user can setup the scheduler. But after that when the schduler runs for the first time, it needs to be setup again. This is what I want to avoid.
Again thank you very much for helping me
If you want to test by publishing please let me know. I will open an FTPand WEB account for you to upload and test publish Click Once
here is my email bluelabs@yahoo.com let me know
Valentin
P.S.
I also very much like the new Click Once but probably I am missing something :-(
I have the profesional version and I did Setup project and created 2 files... and it worked perfectly but still we want to distribute that program with Click Once
TheToefistJU
Any Ideas
edabdoub
Are these user scoped settings If so, under what user account do they run when you run under the scheduler
Best regards,
Johan Stenberg
Vidya Vrat Agarwal
Yes
that is "Sign the ClickOnle manifests" problem but I still cann't solve it :-(
So i disable Sign and try to Publish the project in Web server and create Download page....
and AUTOMATICALY the Check box comes to CHECKED :-(
HOW TO PUBLISH the project without Sign
the real problem is it is Start 2+ different instances and My.Settings are different
10x in advance
val
AnthonyAM444
Ah, it looks like you are using click-once to deploy your application and then run this from the scheduler.
To the best of my knowledge, this is not supported. When you run a click once application, it actually runs in a secure sandbox provided by the clickonce runtime, which is different from if you navigate directly to the application and then execute it. (How secure the sandbox is depends on what permissions you have given the application)
I would recommend using xcopy deployment (manually copy the application and any dependent files to the appropriate directory in your Program files) and run it from there.
Best regards,
Johan Stenberg
bander
Hi 10x for response
Yes I did it as user scoped. Didn't work but I try with Application not work also :-(
I do not know.... my problem is when I disable Signing and click Publish after that automatically check box for Signing is back CHECKED
I try with Professional version 2005 it is SAME....
Can’t publish software without Signing :-(
But if I compile without Signing and Run directly from Release folder everything is OK
But still that problem I want to publish it.... do you think that can be BUG
10x
val
shadow-k8
Signing the application is goodness... I only asked since the location where the user.config file will end up is different from a signed application (in which case the path is based on the apps strong name) than from a non-signed app (where the path is based on the location of the application)
You still haven't answered the question as to who you have set your scheduled task to run as. If this is a different user than when you run manually, then it is expected that the application will pick up that user's settings...
When you say that the application creates "a new application setting" what do you mean Is there a new user.config file created
Best regards,
Johan Stenberg
Jonathan Blackburn