VS 2005 Application Config Files?
Dec 3, 2009
I have an application Bbb.exe. I found that there are two configurations.Bbb.exe.config and Bbb.vshost.exe.config. They are exactly same.For some reason, I changed Bbb.exe.config and keep Bbb.vshost.exe.config unchanged.
View 1 Replies
ADVERTISEMENT
Jan 15, 2010
I'm trying to make a application that allows the person to script config files for an open game server project so they don't have to do it manually... I'm starting with 3 groups. Those groups are "NPC NAMES", "MONSTER NAMES", and "MONSTER WALK POSITIONS"... I want the user to be able to add as many items to the group as they want... Right now I'm using a listbox, but its very messy... I want the user to be able to add items to these groups, and then add the items of each group to a .txt file.
View 5 Replies
Jan 12, 2009
If I create a windows application. Where is the file for app.config? Can I modify it?
View 9 Replies
Jan 18, 2010
is there any tool to validate configuration file?
View 1 Replies
Aug 14, 2009
I have an .net addin that loads w/outlook. Being a .NET assembly, I naturally have a .config file that you would expect. From my previous research, I named my app.config file to be Outlook.exe.config because outook is the executing assembly, and naturally, that's where you would expect that. This for the most part is fine.
In some installations, and I am not sure as to the conditions why, My addin will hunt for the config file under the dll name in another directory. So, more clearly stated, Office is in its directory, and my addin dll is in its own. So: MyAddin.dll.config vs. Outlook.exe.config. So, fine, I just made 2 copies of the config file and covered both cases. Now, I find that the addin is hunting for Outlook.exe.config in MY program directory (not the outlook dir)
FYI I log which config file is being used using: [Code] So, can someone tell me WHERE it is determined where the config file is read from, and if I can "Force" it to be used from a certain location?
View 1 Replies
Jun 27, 2012
I have inherited a rather large project consisting of an application written in VB6 and several DLL's and ActiveX controls written in VB6, VB.NET 1.1 and VB.NET 2. I want to change one of the settings for one of the DLL's written in VB.NET 2 that is in its application.dll.config file, but it seems to be having no effect.My main VB6 application (I will call it Alpha) has a configuration file (Alpha.exe.cnfig) which contains settings used by my VB.NET 1.1 DLL (which I will call Bravo). After calling Bravo, Alpha calls Charlie (my VB.NET 2 DLL). However, even though I have changed the application settings in Charlie.dll.config in the subdirectory where the DLL lives, it has no effect. I have tried putting Charlie's settings in Alpha's config file but this causes Bravo to fail with an automation error (which I think is because the format of the config files changed from .NET 1.1 and .NET 2).[code]If I try putting the applicationSettings section under directly beneath the appSettings section (i.e. as another child element of the configuration element) in Alpha.exe.config then Bravo.dll fails.
View 1 Replies
Sep 4, 2010
I'm writing an application that will be used to generate reports from a database and I want to have several predefined reports/queries built in but also offer the user the option to create their own query and be able to save it and run it whenever they want without having to set the query up again each time.
So I figured I would just store the query parameters in an XML file for the ones that a user has created themselves and I would store these XML files (one for each query) in the user's Application Data folder.
I'm wondering what I should do with the built in queries though (bear in mind that the parameters of these built in queries should not be configurable). As I see it, these are my options:
1. Have the query parameters hard coded in the application
2. Store the query parameters in XML files in the location where the app is stored (ie Program Files) - the installer would create these files when the app is installed
3. Store the query parameters in XML files in the user's Application Data folder with any queries they have created themselves.
I'm leaning towards option 2 for the following reasons: All queries (user defined or predefined) would then be in the exact same format and the program could then run them all in the exact same way. Option 1 would mean I would have to release a new version of the application if I ever wanted to change these parameters. Option 3 would mean that the program would have to create the XML files each time it was launched by a new user so it would be a bit pointless and the values for the parameters would still have to be hard coded in the application so that it could create the files correctly.
View 8 Replies
Dec 2, 2011
I have organized some configuration in folders within Visual studio project explorer. When I release the application those files are copied into the same directory (including sub folders) as the exe.Consequently I can access those files with My.Application.Info.DirectoryPathDuring debug VS does not copy the files into the Debug-folder, consequently my files cannot be accessed with DirectoryPath
View 4 Replies
May 19, 2010
Say I have a Class Library project with its own .dll.config, and a forms application. I want to confirm that it is impossible to reference the .dll.config file from the .exe.config file and still use My.Settings.
For example: I have SomeClassLibrary project, with SomeSetting that I can access through My.Settings.SomeSetting. I also have SomeFormsApp project. This is what I want my SomeFormsApp.exe.config to look like:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
[Code].....
From my readings, this seems impossible. I either need to copy the content of SomeClassLibrary.dll.config into SomeFormsApp.exe.config, which is tedious and error prone when copying from multiple class libraries, or I need to use ConfigurationManager, which bypasses My.Settings and its typed, Intellisensed goodness.
View 9 Replies
Aug 28, 2010
I need to read the keys from several external applications .config files, is it possible to specify the file for AppSettingsReader?
View 1 Replies
Nov 11, 2010
Not sure if this has been asked before (couldn't find an answer), but is there a way to reuse a user.config file from a previous version of the application? For example a user.config file is stored in:
C:UsersJohnnyAppDataLocalCompanyApplicationName.exe_Url_wxcnyrmstqy3oj1qwckdjq3gjqkq4fel1.0.0.0user.config After a new version is installed it gets stored in:
C:UsersJohnnyAppDataLocalCompanyApplicationName.exe_Url_wglmejvw01nagu5t1y5yl12chynjomny1.0.0.1user.config The user then has to enter all settings again, even if the new version does not save more settings. An other problem is that although the user.config file is very small, it does get messy after a while when newer versions of the application get installed. Is there a way to clean up the unused user.config files and their folders?
It's the same problem with System.Windows.Forms.Application.LocalUserAppDataPath, that I'd like to use to save other files (containing Listview data), which points to:
C:UsersJohnnyAppDataLocalCompanyApplication1.0.0.0 The Listview data and other files created by the app can't be used anymore.This can be solved by getting the user's appdata folder with Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) and creating a new folder there with the name of the application. But this means there's one folder where the application is installed (user can choose this folder in the installer), one folder to save my own files to and one folder where VB stores the user.config file.
Can something be done about this "mess" or is this just something I have to live with?
View 2 Replies
Jan 8, 2011
How do you write config files for vb programs? Like .xml files, Seen some examples but didn't fully grasp them. Say I had a program that launched programs and I wanted it to save the:Program Name, Program Location, Program Site, etc..So I am guessing the xml would looking something like:
<?xml version="1.0" encoding="utf-8"?>
<Configuration>
<Path>
[code]....
how to load the settings from these configs. The reason I want to write it to an external config is because I plan to add an updating feature and I want the configs outside of the program.
View 12 Replies
Oct 23, 2011
How to set app config file so we can set app config file after installation of the software.
View 3 Replies
Aug 4, 2011
I am working on an existing vb#.net 2008 windows form application that has a large number of project files in one solution. This solution can be executed many ways depending upon what the startup project is. However there is one project file that is generally the main 'startup project'. This application also has no setup and deployment currently.
What I am trying to do is to determine what exes, dll's, config files are needed to be combined together so I can deploy them? Is there certain directory paths I can use to determine what files I need? Is there some kind of a way I can test the combined files to determine what files work together so I can deploy them?
View 5 Replies
Mar 30, 2010
i'm creating a system now using vb.net 2005, .net framework 3.5. I'm using MySQL 5.1 as my backend and I've created a role so that I'll grant the specific user if he fits with the current role. My question is how can i modify the username and password of my database connection located at machine.config file under connectionStrings? The system will be used by different users and every user has its own account in the database.
Example:
I have a user named perry. The connection string would be like this:
<add name="LocalMySqlServer" connectionString="server=localhost;user id=perry;password=pass1234;database=mysql"/>
Another user named harris:
<add name="LocalMySqlServer" connectionString="server=localhost;user id=harris;password=harRis101;database=mysql"/>
View 1 Replies
Feb 15, 2010
I want to save picture in app.config file,first time when i start my application picture will come from database then all the time it will come from the app.config file.I also update app.config file from front end with two fields user name and user picture
View 3 Replies
May 10, 2009
I have used the following code to update the app.config file. The code works fine and didnt shown any exceptions, but values are not storing to app.config ?
[Code]...
View 1 Replies
Aug 4, 2009
Dim SQLData = System.Configuration.ConfigurationManager.AppSettings("FixedLineProvisioningConnectionString")
[code].....
View 1 Replies
Dec 9, 2010
know open an xml file into a datagrid. The xml file is stored in a secured ftp with username and password. Just as an example if the site ftp.mysitesite.com, with username "xxx" and the password "XXX" has the file 123.xml, then how do I load 123 into a datagrid. Is it possible to store these info to a variable in app.Config and use that variable to access the site?
View 5 Replies
Nov 25, 2009
Can values from web.config be read completely at runtime or does the application make a copy of the current web.config upon initialization.
Essentially, I'm wandering if I make a change to web.config if it will take effect on the users next postback or if they would need to initialize an entirely new page load. In particular, I'm interested in sections of the web.config like sesssionState and when a change to timeout would take effect.
View 2 Replies
Dec 31, 2011
I've never thought about it before; but I recently learned how I could modify the app.config file to add/remove trace listeners (for example, to redirect all of the Trace.WriteLine output to a text file).But I don't quite understand how it works? I know the corresponding C# code to do the same as the config (in this example) - does that code get generated/executed before my application's entry point?
View 3 Replies
Oct 23, 2011
As a practice exercise at my college we have to make a simple room booking system, complete with its own config file. We're not allowed to use the one built into VB.NET (the professor wants us to adapt to not relying on things like that) so I've made my own. This is a sample:
// Config file.
// First column is the variable name that will be used to
// reference the value in the second column. Seperate each
[code].....
View 4 Replies
Nov 17, 2009
I want to ask that where to store connection string in VB.Net.AS in ASP.net we can store connection string in web.config file and access it in the foll. way [code]In VB.net where to store conn. string on form_Load or any other place???
View 1 Replies
Jan 19, 2011
I have a question about the App.Config file. My understanding is that the connection string is stored within this file. I have setup my application so that the App.Config file is not only written to c:users<username>appdatalocal but also to c:users<username>appdataoaming. I plan to encrypt the connection string, my question at this point is will it encrypt the connection string in ALL copies of the App.Config file? It looks like at this point that the App.Config file is stored in two places on the hard drive.
View 2 Replies
Sep 27, 2010
Well the title says it all im using a asp.net 4.0 project.My file structure looks like this [code]Now the WebService seems to get some parts of the web.config from the RootSite, the problem here is <configuration><system.webServer>..So i tryed to place this around that section <location path="." inheritInChildApplications="false"> but that had the result of making a httpHandler only to function in the root directory.So is there any solution to this? i don't understand why my webservice's web.config is inheriting from the root's web.config..
View 1 Replies
Nov 24, 2010
In my solution I have 3 project and I want to create the single config file for all project, I mean instance of creating config file for all the 3 project I am creating one config file in the solution level that serve the purpose of all the project.
Now when i am reading the config file I am writing like this , in one of the project-
System.Configuration.ConfigurationManager.AppSettings("CREATEDBY")
but this return me noting always.
App.Config file location - D:ProjectCommunico_SCEPMS Outlook Add-in
and the project location where I am to accessing the app.config file- D:ProjectCommunico_SCEPMSFileViewEPMSFileView
This is my config file
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
[Code]....
View 2 Replies
Feb 4, 2012
How to secure App.config file. As it contains all the passwords that connections use so any body can see the data in my databases. If we donot save the password at the time of making connection string, will it still be able to connect with the DB the same way?
View 1 Replies
May 15, 2010
Can someone tell me where this is? Most places on the net say it's in same folder as the .exe, but when I look in there I don't see it. There is an .xml file in there but that doesn't look like it's it.
View 5 Replies
Dec 20, 2011
I have VB.net console application. I would like to read the (ConnectionString) from a web.config.
Web.config is located at a particular path in my virtual PC, say "C:/mywebConfig"
<add name="MY_DB" connectionString="Data Source=DATASOURCE;Initial Catalog=DB;Persist
Security Info=False; User ID=***;Password=****;" providerName="System.Data.SqlClient" />
My code:
Dim connString As String = String.Empty
connString = ConfigurationManager.ConnectionStrings("MY_DB").ConnectionString
Whenever I try to access it, i get the error not set to an instance of an object or something like that :)
I tried to add the web.config in my Project, but still get the error.
View 3 Replies
Aug 18, 2010
I'm trying to use the following command:
Dim xmlFilePath As String = _
System.Configuration.ConfigurationManager.AppSettings("XmlFilePath")
to retrieve the following setting:
<applicationSettings>
<MySolution.WebProject.My.MySettings>
<setting name="XmlFilePath" serializeAs="String">
[Code]....
However, xmlFilePath shows up as Nothing after that line of code is run.
What's the correct code to get a setting out of the web.config file in an ASP.NET application?
NOTE: Although you can add keys individually to the <appsettings> tag, I'm trying to figure out how to use it with the "Settings" tab in the project's properties.
View 2 Replies