I have a console application that is trying to load a CustomConfigurationSection from a web.config file.
The custom configuration section has a custom configuration element that is required. This means that when I load the config section, I expect to see an exception if that config element is not present in the config. The problem is t...
I'm developing a small content management solution than can be used in any ASP.NET 3.5 website. The website references some dll's and then lets the aspx's inherit my page baseclass. Some configuration in web.config is also needed, but thats it.
Now I'm building a standalone Silverlight editor for the CMS. My idea is that it should commu...
I'm looking for a list of hibernate configuration settings with the defaults listed.
I found a good list of settings here:
http://docs.jboss.org/hibernate/core/3.3/reference/en/html/session-configuration.html
...but the default settings are not listed.
...
I'm reviewing a .NET project, and I came across some pretty heavy usage of .ini files for configuration. I would much prefer to use app.config files instead, but before I jump in and make an issue out of this with the devs, I wonder if there are any valid reasons to favor .ini files over app.config?
...
I have a co-worker who is trying to get log4j to behave as follows:
Log to Stdout
By default, disable most output
Show only messages from java.sql.PrepareStatement at level debug and up
He's getting caught up in the 'level' vs 'priority'. Here is his config file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration ...
Hello,
Is there a way I can figure out which my.cnf mysql is currently using? The reason is because it's using the correct socket file to connect, but I can't figure out exactly which (if any) my.cnf it's using or trying to use so I can manually set the correct path on my local machine.
...
Suppose I have a line of code that starts like the following:
Func1(Func2(Func3
Is it possible to set up Visual Studio (2005, 2008, 2010) IDE, so that when I hit ';' it will auto-complete all the brackets. I am only interested in brackets, nothing fancier. It doesn't have to be ';' key, it can be another key that auto-completes both b...
After much research and trial and error I found how to store the items for a ListBox and ComboBox in the app.Config. I am heavily indebted to Jon Rista, who wrote a series of articles about the Net 2.0 Configuration classes. I constructed a (large!) code snippet that will generate all the code you need by just inserting three strings!
En...
Is it possible to have security in ASP.NET MVC configurable at runtime? For example, if I have a controller that has been marked as
[Authorize(Roles="Admin")]
Is there a way to add/remove roles at runtime? Or, do you have to change it in code and re-compile?
...
Hi
On a Terminal Server install of my .NET 2.0 WinForms app, one of my clients gets the following exception on startup:
"Unrecognized configuration section connectionStrings"
This is occurring in myapp.exe.config but I can't figure out why. Runs perfectly everywhere else, only difference between this install and any other is the connect...
I'm building a plugin assembly and I would like to provide an accompanying config file.
Deployed assembly is probably copied somewhere, don't know where, and would like to know where does the ConfigurationManager looks for a .config file. I do not wish to load .config from an explicit location, just put it where it is being looked for....
I'm trying to set up Subversion on Ubuntu Linux. It seems to be working, except that when I made one change and tried svn status, I found about 100 files had been changed, in the .metadata directory.
My ~/.subversion/config file currently contains the following line:
global-ignores = *.o *.lo *.la *.al .libs *.so *.so.[0-9]* *.a *.pyc...
Hi,
I am using sql server integration services(SSIS) in sql server business intelligent devolopment studio.
I need to do a task --that is.
I have to read from a source database and put it into a destination flat file.But the same time the source databse should be configurable.
That means in the Oledbconnection manager connection str...
I have a .net Console Application called FooConsole. When I build and deploy it, I see that the App.config file from my project is deployed to FooConsole.exe.config.
How can I deploy the .config file to Foo.config instead of FooConsole.exe.config and still have it read as the default .config file?
UPDATE: I realize this sounds like an...
Is it possible to install the beta iPhone SDK as well as the latest "official release"?
Is this even necessary, or can i just use the beta for iPhone/iPod development as well as iPad dev?
...
I am having difficulty with managing configuration of an ASP.Net application to deploy for different clients. The sheer volume of different settings which need twiddling takes up large amounts of time, and the current configuration methods are too complicated to enable us to push this responsibility out to support partners.
Any suggesti...
Hi,
I have a product built out of multiple processes. Each process uses internally commons configuration.
Does anyone have an idea how to manage the config? I.e. we do not want to duplicate variables so each process will be able to read them.
Additionally, DB solution is no good, as we do not want to be dependent on DB for somethin...
I've got aConfiguration object that I can easily read and write settings from and call Save(ConfigurationSaveMode.Minimal, true) on and that typically works just fine.
However, I now have a config file that has a custom sectionGroup defined of type System.Configuration.NameValueSectionHandler (I didn't write that part and I can't chan...
I'm often faced with the problem of storing, in memory, a few (possibly complex) configuration settings loaded from files on the filesystem. I'm wondering if there's a better way to architect a pattern to this problem, however, than what I've been using.
Essentially, my current solution involves three steps.
Build a singleton. Since d...
I'm using the following function to create an IIS7 Application and/or Virtual Directory.
How would I also set the Application to use a different Application Pool?
Private Sub CreateVirtualDir(ByVal WebSite As String, ByVal AppName As String, ByVal Path As String, Optional ByVal IsApplication As Boolean = True, Optional ByVal RunScript...