473,323 Members | 1,550 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,323 software developers and data experts.

ClickOnce security

Good noon, community! Would you be so kind and help me solve my problem. I
need Deploy application through ClickOnce technology. I've configuration file
where I assign sensitive data about connection to the database. A VS
deploying solution all files have signing by certificate. When I'm installing
application i need immediately change this data (e.g. Server name or
password) How can i do this correctly?

Thanks in advance!
Dec 14 '07 #1
3 1417
Nikolay,

I don't think you can change this through ClickOnce, I think ClickOnce
will just get your files to the machine, and make sure they are
up-to-date/in synch with what is on the server. If you want to make changes
to the file, your program will have to do it (and that might be an issue if
you put your files in the program files directory, since only administrators
(should) have access to that).

If anything, you might want to look at storing this information in a
user-specific directory and then accessing that from your program.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Nikolay Podkolzin" <Ni**************@discussions.microsoft.comwrote in
message news:97**********************************@microsof t.com...
Good noon, community! Would you be so kind and help me solve my problem. I
need Deploy application through ClickOnce technology. I've configuration
file
where I assign sensitive data about connection to the database. A VS
deploying solution all files have signing by certificate. When I'm
installing
application i need immediately change this data (e.g. Server name or
password) How can i do this correctly?

Thanks in advance!

Dec 14 '07 #2
If I modify a .manifest or .application file I will have to Sign it
again with the proper security key.
How can i do that? Which tool can help me?

"Nicholas Paldino [.NET/C# MVP]" wrote:
Nikolay,

I don't think you can change this through ClickOnce, I think ClickOnce
will just get your files to the machine, and make sure they are
up-to-date/in synch with what is on the server. If you want to make changes
to the file, your program will have to do it (and that might be an issue if
you put your files in the program files directory, since only administrators
(should) have access to that).

If anything, you might want to look at storing this information in a
user-specific directory and then accessing that from your program.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Nikolay Podkolzin" <Ni**************@discussions.microsoft.comwrote in
message news:97**********************************@microsof t.com...
Good noon, community! Would you be so kind and help me solve my problem. I
need Deploy application through ClickOnce technology. I've configuration
file
where I assign sensitive data about connection to the database. A VS
deploying solution all files have signing by certificate. When I'm
installing
application i need immediately change this data (e.g. Server name or
password) How can i do this correctly?

Thanks in advance!


Dec 14 '07 #3
You can use MageUI to re-sign a manifest. On my computer, this is in
C:\Program FIles\Microsoft VIsual Studio 8\SDK\v2.0\Bin\.

RobinS.
goldmail.com
-------------------------------------
"Nikolay Podkolzin" <Ni**************@discussions.microsoft.comwrote in
message news:FE**********************************@microsof t.com...
If I modify a .manifest or .application file I will have to Sign it
again with the proper security key.
How can i do that? Which tool can help me?

"Nicholas Paldino [.NET/C# MVP]" wrote:
>Nikolay,

I don't think you can change this through ClickOnce, I think
ClickOnce
will just get your files to the machine, and make sure they are
up-to-date/in synch with what is on the server. If you want to make
changes
to the file, your program will have to do it (and that might be an issue
if
you put your files in the program files directory, since only
administrators
(should) have access to that).

If anything, you might want to look at storing this information in a
user-specific directory and then accessing that from your program.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Nikolay Podkolzin" <Ni**************@discussions.microsoft.comwrote in
message news:97**********************************@microsof t.com...
Good noon, community! Would you be so kind and help me solve my
problem. I
need Deploy application through ClickOnce technology. I've
configuration
file
where I assign sensitive data about connection to the database. A VS
deploying solution all files have signing by certificate. When I'm
installing
application i need immediately change this data (e.g. Server name or
password) How can i do this correctly?

Thanks in advance!


Dec 24 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: markoueis | last post by:
Is there any way to embed a ClickOnce Application into the browser? I love the way ClickOnce works, but the problem is I would like it to display the windows form in the browser. I could use a...
5
by: Danny Tuppeny | last post by:
I've been playing around with ClickOnce today, and it's all good stuff. Except, that if I change my application to NOT be full trust (which seems to make very little difference to the user prompt,...
11
by: moondaddy | last post by:
I have a .net 2.0 smarclient app and am trying to deploy it to IIS where users can access it from. I created an application folder in IIS where I'm trying to deployee to. 1) When the...
3
by: Chris Rennert | last post by:
Hey all, we have a project that we would like to use ClickOnce deployment on, and although it all seems straightforward we are having a few issues concerning SQL Server Express and clickonce. We...
1
by: Mr. Beck | last post by:
I am in the process of creating a C# ClickOnce application that will be deployed in the coming months. I was initially thinking of deploying it through Windows Installation but due to the need of...
0
by: Raffi Basmajian | last post by:
I am trying to understand the difference between signing ClickOnce manifests and signing shared assemblies. My company is building .Net 2005 WinForm applications for internal company use only....
3
by: steven deng | last post by:
I want to know when a clickonce app exits. I have code snippet below. But the Exited event is not triggered. If I change the process to Notepad.exe(see comment line), it works fine. Any suggestion...
3
by: Ryan Liu | last post by:
hi, I like the Publish function comes with VS2008. But 3 questions remain: how to make update path to be flexiable? Because I will give those updates to my cutomers, and different cutomer will...
3
by: =?Utf-8?B?S2VuIExlbWlldXg=?= | last post by:
My clickonce app fails when the install button on the publish.htm page is clicked. User is prompted with a "Cannot Start Application" dialog. Details provided from the dialog are: PLATFORM...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.