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.Con fig file. However, clickonce does not
copy the Application.Con fig file when it deploys.
How can i be able to do it, Am i missing something in ClickOnce.
Thanks
Irfan 6 6835
It probably does copy the Application.Con fig file (it's called app.config).
ClickOnce stuff gets installed under the user's Documents&Setti ngs (XP)
folder somewhere, and it is obfuscated so he can't muck with it. The
app.config file is probably in there somewhere. The problem is, you can't
modify the information in the app.config file with code.
To get around this, I rolled my own settings stuff, with the default for
the ConnectionStrin g hardcoded, and the user can modify it. I store it in
Environment.Spe cialFolder.Loca lApplicationDat a + "\myAppName ". Then when
the app is upgraded to a new version, I don't lose my settings. This is
also the recommended location by Vista, so you don't have a problem with
Vista security either.
Good luck.
Robin S.
--------------------
"Irfan" <ir***@asc-ltd.co.ukwrote in message
news:Ov******** ******@TK2MSFTN GP05.phx.gbl...
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.Con fig file. However, clickonce does not
copy the Application.Con fig file when it deploys.
How can i be able to do it, Am i missing something in ClickOnce.
Thanks
Irfan
Rob,
Thanks for the reply.
I have another question:
How do u redirect the program to look at the ConnectionStrin g of YOUR
config file instead the default config file.
irfan
"RobinS" <Ro****@NoSpam. yah.nonewrote in message
news:Fr******** *************** *******@comcast .com...
It probably does copy the Application.Con fig file (it's called
app.config). ClickOnce stuff gets installed under the user's
Documents&Setti ngs (XP) folder somewhere, and it is obfuscated so he can't
muck with it. The app.config file is probably in there somewhere. The
problem is, you can't modify the information in the app.config file with
code.
To get around this, I rolled my own settings stuff, with the default for
the ConnectionStrin g hardcoded, and the user can modify it. I store it in
Environment.Spe cialFolder.Loca lApplicationDat a + "\myAppName ". Then when
the app is upgraded to a new version, I don't lose my settings. This is
also the recommended location by Vista, so you don't have a problem with
Vista security either.
Good luck.
Robin S.
--------------------
"Irfan" <ir***@asc-ltd.co.ukwrote in message
news:Ov******** ******@TK2MSFTN GP05.phx.gbl...
>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.Con fig file. However, clickonce does not copy the Application.Con fig file when it deploys.
How can i be able to do it, Am i missing something in ClickOnce.
Thanks Irfan
I don't used strongly typed datasets. I use stored procedures that load
DataSets, and my Data Access layer pulls the connection string from my
config file and uses it when opening the connection.
Are you using strongly typed datasets?
Robin S.
-----------------------
"Irfan" <ir***@asc-ltd.co.ukwrote in message
news:uv******** ******@TK2MSFTN GP05.phx.gbl...
Rob,
Thanks for the reply.
I have another question:
How do u redirect the program to look at the ConnectionStrin g of YOUR
config file instead the default config file.
irfan
"RobinS" <Ro****@NoSpam. yah.nonewrote in message
news:Fr******** *************** *******@comcast .com...
>It probably does copy the Application.Con fig file (it's called app.config). ClickOnce stuff gets installed under the user's Documents&Sett ings (XP) folder somewhere, and it is obfuscated so he can't muck with it. The app.config file is probably in there somewhere. The problem is, you can't modify the information in the app.config file with code.
To get around this, I rolled my own settings stuff, with the default for the ConnectionStrin g hardcoded, and the user can modify it. I store it in Environment.Spe cialFolder.Loca lApplicationDat a + "\myAppName ". Then when the app is upgraded to a new version, I don't lose my settings. This is also the recommended location by Vista, so you don't have a problem with Vista security either.
Good luck. Robin S. -------------------- "Irfan" <ir***@asc-ltd.co.ukwrote in message news:Ov******* *******@TK2MSFT NGP05.phx.gbl.. .
>>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.Con fig file. However, clickonce does not copy the Application.Con fig file when it deploys.
How can i be able to do it, Am i missing something in ClickOnce.
Thanks Irfan
yes, I am using stongly typed datasets that creates a readonly
ConnectionStrin g.
However, I deleted that ConnectionStrin g and created a new Property in the
settings file with the SAME name.
This new property pulls the data from the XML file. What do you think about
it? Do you reckon it will
create any problems in future.
irfan
"RobinS" <Ro****@NoSpam. yah.nonewrote in message
news:Fp******** *************** *******@comcast .com...
>I don't used strongly typed datasets. I use stored procedures that load DataSets, and my Data Access layer pulls the connection string from my config file and uses it when opening the connection.
Are you using strongly typed datasets?
Robin S.
-----------------------
"Irfan" <ir***@asc-ltd.co.ukwrote in message
news:uv******** ******@TK2MSFTN GP05.phx.gbl...
>Rob, Thanks for the reply. I have another question: How do u redirect the program to look at the ConnectionStrin g of YOUR config file instead the default config file.
irfan
"RobinS" <Ro****@NoSpam. yah.nonewrote in message news:Fr******* *************** ********@comcas t.com...
>>It probably does copy the Application.Con fig file (it's called app.config) . ClickOnce stuff gets installed under the user's Documents&Set tings (XP) folder somewhere, and it is obfuscated so he can't muck with it. The app.config file is probably in there somewhere. The problem is, you can't modify the information in the app.config file with code.
To get around this, I rolled my own settings stuff, with the default for the ConnectionStrin g hardcoded, and the user can modify it. I store it in Environment.Spe cialFolder.Loca lApplicationDat a + "\myAppName ". Then when the app is upgraded to a new version, I don't lose my settings. This is also the recommended location by Vista, so you don't have a problem with Vista security either.
Good luck. Robin S. -------------------- "Irfan" <ir***@asc-ltd.co.ukwrote in message news:Ov****** ********@TK2MSF TNGP05.phx.gbl. .. 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.Con fig file. However, clickonce does not copy the Application.Con fig file when it deploys.
How can i be able to do it, Am i missing something in ClickOnce.
Thanks Irfan
Well, if it works, that's great. You just have to remember if you recreate
the strongly typed dataset, to delete the ConnectionStrin g again.
Robin S.
-----------------------------
"Irfan" <ir***@asc-ltd.co.ukwrote in message
news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..
yes, I am using stongly typed datasets that creates a readonly
ConnectionStrin g.
However, I deleted that ConnectionStrin g and created a new Property in
the settings file with the SAME name.
This new property pulls the data from the XML file. What do you think
about it? Do you reckon it will
create any problems in future.
irfan
"RobinS" <Ro****@NoSpam. yah.nonewrote in message
news:Fp******** *************** *******@comcast .com...
>>I don't used strongly typed datasets. I use stored procedures that load DataSets, and my Data Access layer pulls the connection string from my config file and uses it when opening the connection.
Are you using strongly typed datasets?
Robin S. ----------------------- "Irfan" <ir***@asc-ltd.co.ukwrote in message news:uv******* *******@TK2MSFT NGP05.phx.gbl.. .
>>Rob, Thanks for the reply. I have another question: How do u redirect the program to look at the ConnectionStrin g of YOUR config file instead the default config file.
irfan
"RobinS" <Ro****@NoSpam. yah.nonewrote in message news:Fr****** *************** *********@comca st.com... It probably does copy the Application.Con fig file (it's called app.config ). ClickOnce stuff gets installed under the user's Documents&Se ttings (XP) folder somewhere, and it is obfuscated so he can't muck with it. The app.config file is probably in there somewhere. The problem is, you can't modify the information in the app.config file with code.
To get around this, I rolled my own settings stuff, with the default for the ConnectionStrin g hardcoded, and the user can modify it. I store it in Environment.Spe cialFolder.Loca lApplicationDat a + "\myAppName" . Then when the app is upgraded to a new version, I don't lose my settings. This is also the recommended location by Vista, so you don't have a problem with Vista security either.
Good luck. Robin S. -------------------- "Irfan" <ir***@asc-ltd.co.ukwrote in message news:Ov***** *********@TK2MS FTNGP05.phx.gbl ... 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.Con fig file. However, clickonce does not copy the Application.Con fig file when it deploys. > How can i be able to do it, Am i missing something in ClickOnce. > Thanks Irfan > > > >
thanks again Rob
irfan
"RobinS" <Ro****@NoSpam. yah.nonewrote in message
news:hd******** *************** *******@comcast .com...
Well, if it works, that's great. You just have to remember if you recreate
the strongly typed dataset, to delete the ConnectionStrin g again.
Robin S.
-----------------------------
"Irfan" <ir***@asc-ltd.co.ukwrote in message
news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..
>yes, I am using stongly typed datasets that creates a readonly ConnectionStri ng. However, I deleted that ConnectionStrin g and created a new Property in the settings file with the SAME name. This new property pulls the data from the XML file. What do you think about it? Do you reckon it will create any problems in future.
irfan
"RobinS" <Ro****@NoSpam. yah.nonewrote in message news:Fp******* *************** ********@comcas t.com...
>>>I don't used strongly typed datasets. I use stored procedures that load DataSets, and my Data Access layer pulls the connection string from my config file and uses it when opening the connection.
Are you using strongly typed datasets?
Robin S. ----------------------- "Irfan" <ir***@asc-ltd.co.ukwrote in message news:uv****** ********@TK2MSF TNGP05.phx.gbl. .. Rob, Thanks for the reply. I have another question: How do u redirect the program to look at the ConnectionStrin g of YOUR config file instead the default config file.
irfan
"RobinS" <Ro****@NoSpam. yah.nonewrote in message news:Fr***** *************** **********@comc ast.com... It probably does copy the Application.Con fig file (it's called app.config) . ClickOnce stuff gets installed under the user's Documents&S ettings (XP) folder somewhere, and it is obfuscated so he can't muck with it. The app.config file is probably in there somewhere . The problem is, you can't modify the information in the app.confi g file with code. > To get around this, I rolled my own settings stuff, with the default for the ConnectionStrin g hardcoded, and the user can modify it. I store it in Environment.Spe cialFolder.Loca lApplicationDat a + "\myAppName ". Then when the app is upgraded to a new version, I don't lose my settings. This is also the recommended location by Vista, so you don't have a problem with Vista security either. > Good luck. Robin S. -------------------- "Irfan" <ir***@asc-ltd.co.ukwrote in message news:Ov**** **********@TK2M SFTNGP05.phx.gb l... >hi, >> >After installing the application in the client machine using >ClickOnc e, i would like that the client be able to change the >database path in the Application.Con fig file. However, clickonce does >not copy the Application.Con fig file when it deploys. >> >How can i be able to do it, Am i missing something in ClickOnce. >> >Thanks >Irfan >> >> >> >> > > This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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, which scares me!) but to be
installed on the start menu, it seems I don't have permission to call
CheckForUpdate()!
I understand that if I'm not a full trust app, I can't read the filesystem
etc., but not being able to update myself seems a bit...
|
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: Alex Bögli |
last post by:
Hi
I have a rather advanced deployment scenario and wanted to know, if anyone
has an idea how to accomplish that with ClickOnce:
We are deploying a 3-tier application with a client connecting to web
services, which then connect to a database. The tiers are all on different
nodes and we have around 1000 client users. We currently deploy the web
services with Wise and adjust the database (cluster) manually. The clients
should be...
|
by: Ronald S. Cook |
last post by:
I have a Win app that references a class library project. Within the
latter, there is a remoting.config file.
When I publish my app using ClickOnce, it errors telling me it can't find
the remoting.config file.
How do I get this thing to "go along" with the project?
Of course, its impossible to see what ClickOnce actually copies to the
client hard drive as is so cryptic and hidden from what I remember.
|
by: Peter Wyss |
last post by:
Hello!
I've a few questions about ClickOnce in VisualStudio 2005. The
installation of my application works fine, I published the files on a
webserver and installed the app on a winxp client, updates works also
fine. But here's my first question:
- Our app produces xml-files on startup, which stores several
informations like gui-settings etc...now when I publish a new version
and my app updates, this xml-files rested in the old folder...
| |
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: 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?QXZpc2hheSBCZW4tWnZp?= |
last post by:
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_...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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.
| |