Hi,
I have an application that I am encrypting the connection strings on the
first run of the application. I am using clickonce to deploy the
application, so this was a good solution as the application is immediately
run and the config file is encrypted immediately. How ever, when the
application is deployed a second directory with "_none_" in the name is
created and the app.config is copied there too.The app.config in the _none_
folder has none encrypted connection string.
So I have 2 questions:
1. Why do I have duplicate app.config?
2. Why the connection string in the app.config that is in the _none_folder
is not encrypted?
Thanks for you time, 3 4010
On Jun 24, 8:37*am, Avishay Ben-Zvi <avis...@commun ity.nospamwrote :
Hi,
I have an application that I am encrypting the connection strings on the
first run of the application. *I am using clickonce to deploy the
application, so this was a good solution as the application is immediately
run and the config file is encrypted immediately. *How ever, when the
application is deployed a second directory with "_none_" in the name is
created and the app.config is copied there too.The app.config in the _none_
folder has none encrypted connection string.
I honestly suggest you to find another solution, your current solution
is not that safe to start with.
Could you give more details about your escenario
"Ignacio Machin ( .NET/ C# MVP )" wrote:
On Jun 24, 8:37 am, Avishay Ben-Zvi <avis...@commun ity.nospamwrote :
Hi,
I have an application that I am encrypting the connection strings on the
first run of the application. I am using clickonce to deploy the
application, so this was a good solution as the application is immediately
run and the config file is encrypted immediately. How ever, when the
application is deployed a second directory with "_none_" in the name is
created and the app.config is copied there too.The app.config in the _none_
folder has none encrypted connection string.
I honestly suggest you to find another solution, your current solution
is not that safe to start with.
Could you give more details about your escenario
Hi ,
First of all thanks for your time.
Here is the senario details:
1. Build a windows Application.
2. Add an app.config file.
3. Use Clickonce to deploy the application.
In the deployed location you will find 2 folder containing the app.config.
One with the encrypted conection string and an other folder named
something_none_ something with an app.cofig that is not encrypted.
Again thanks for your time.
Hi Avishay,
I'm not sure if this is your problem, but one thing that can happen is that
the app.config. and Settings.settin gs files can get out of sync. Usually, you
can resync them by just double-clicking the Project -Properties ->
Settings.settin gs file. Letting these files get out of sync can really be
tough to figure out with Click-Once. Just open both files with an editor and
verify each node has the same value in both files.
Click-Once is great, but there are scenarios where it just doesn't work.
Personally, I found the following book really helpful:
Smart Client Deployment with ClickOnce by Brian Noyes
Hope that helps!
"Avishay Ben-Zvi" wrote:
>
"Ignacio Machin ( .NET/ C# MVP )" wrote:
On Jun 24, 8:37 am, Avishay Ben-Zvi <avis...@commun ity.nospamwrote :
Hi,
>
I have an application that I am encrypting the connection strings on the
first run of the application. I am using clickonce to deploy the
application, so this was a good solution as the application is immediately
run and the config file is encrypted immediately. How ever, when the
application is deployed a second directory with "_none_" in the name is
created and the app.config is copied there too.The app.config in the _none_
folder has none encrypted connection string.
I honestly suggest you to find another solution, your current solution
is not that safe to start with.
Could you give more details about your escenario
Hi ,
First of all thanks for your time.
Here is the senario details:
1. Build a windows Application.
2. Add an app.config file.
3. Use Clickonce to deploy the application.
In the deployed location you will find 2 folder containing the app.config.
One with the encrypted conection string and an other folder named
something_none_ something with an app.cofig that is not encrypted.
Again thanks for your time. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Pavan |
last post by:
I have my .NET code published in two servers
http://server1/<ApplicationName>/Publish.htm and
http://server2/<ApplicationName>/Publish.htm, and if i open IE on the client
machine and type the link (http://server1/<ApplicationName>/Publish.htm) it
would install the application in the client machine from server1.
1) Changing the server location on the same client machine (i.e.
http://server2/<ApplicationName>/Publish.htm) should override...
|
by: Marc Gravell |
last post by:
OK heres an oddity...
I am using a ClickOnce (online only) deployment model; I have various
servers (primarily for different environments: testing, production etc), and
I want to have a *similar* manifest on each, with the main difference being
the config file (so that each connects to appropriate servers). To get
around the hashing on the config file, I simply publish the app (via
MSBuild) several times with different app.config...
|
by: Al Christoph |
last post by:
I posted this last week end in the MSDN forums. No luck there. Let's see what
the experts here have to say:-))))
I have a rather convoluted project. The distributable will come in eight
different flavors, each with its main program, libraries, datafiles, doco,
etc.
Each flavor will also have one or more standalone executables that can be
called as tools from within the main program.
|
by: M O J O |
last post by:
Hi,
I've have searched google, but can't find a solution to my problem.
Om my develloper machine, I use one app.config, but when I deploy, I need to
deploy another app.config.
The reason is, that on my develloper machine, my app.config sqlconnection is
pointing to my (local) database and I have several settings like
"Debug=True", but when I deploy (using ClickOnce), I need to use an
|
by: Irfan |
last post by:
hi,
I created a setup file using the Publish Wizard in Visual Studio 2005 and
installed the software in the client machine. Now I want to update some of
the installed files in the client machine with NEW ones.
Is there anyway that it can be done automatically without i telling the user
which files to replace and which not.
Is creating a batch file a good option or their are other better options
available.
| |
by: Irfan |
last post by:
hi,
After installing the application in the client machine using ClickOnce, i
would like that the client be able to change the
database path in the Application.Config file. However, clickonce does not
copy the Application.Config file when it deploys.
How can i be able to do it, Am i missing something in ClickOnce.
Thanks
|
by: Sergio Montero |
last post by:
Hi, I've been googling for a while trying to figure out how to solve this
problem, pleasy, I'll appreciate any sugestions.
I have a Winforms App that should work Online and Offline.
Online Mode.
Is the default mode and occurs when the App have an Internet connection. In
this mode the App connects to a SQL Server 2005 database using a XML Web
Service. Both WS and SQL Server runs on the WebServer wich also works as App
and Database...
|
by: jonathonmc |
last post by:
I have a winform app written in C# which accesses a web service using a dynamic URL (configured in the app.config). When I deploy this app via ClickOnce it builds the app.config into the manifest and each client gets it perfectly.
The probelm is that I have a 4-tier environment, one for each phase of the development lifecycle. I need the DEV version of the app to hit the DEV version of the web service, TEST to TEST, QA to QA, and PROD to...
|
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?= |
last post by:
Hi all,
I am working on a windows forms app. I do my development in a development
environment, and I have certain settings in my app.config like connection to
WCF services that point to my development WCF Services.
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |