Clicky

I have a desktop application configured for ClickOnce deployment. The Security Settings is "Full Trust". I have a feature in application that starts new process with another executable and then loads results produced by it into a text file. The logic is following I save input data into file 'input.txt' next I create new process and start it
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
using (Process process = new Process())
	        {
	            // Stop the process from opening a new window
	            process.StartInfo.RedirectStandardOutput = true;
	            process.StartInfo.UseShellExecute = false;
	            process.StartInfo.CreateNoWindow = true;
	            process.StartInfo.FileName = graphvizFile;
	            process.StartInfo.Arguments = string.Format("-o "{0}" "{1}"", outputFilePath, inputFilePath);

	            process.Start();
	            process.WaitForExit();
	        }
	        File.Delete(inputFilePath);


This code does not work in deployed application (via build configuration "Deployment"), but works when I compile project with "Debug" or "Release" build configuration.

asked 09/07/2011 09:56

rkharko's gravatar image

rkharko ♦♦


3 Answers:
I have now more information - the problem is with one configuration file that does not have extension and is ignored by ClickOnce during deployment and after installation on client machine this config file is messing and executable fails when process.Start().
link

answered

rkharko's gravatar image

rkharko

The problem solved by manually editing the *.csproj file to add as content file for deployment this config file (that does not have file extension)
link

answered 2011-09-07 at 09:28:51

rkharko's gravatar image

rkharko

solved by me
link

answered 2011-09-08 at 07:03:02

rkharko's gravatar image

rkharko

Your answer
[hide preview]

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×156
×1
×1

Asked: 09/07/2011 09:56

Seen: 387 times

Last updated: 09/08/2011 03:49