configuration

How to put Apache website to 503 "temporary down"?

RFC2616, 503 Service Unavailable The server is currently unable to handle the request due to a temporary overloading or maintenance of the server How to configure Apache 2.2 to serve particular name based virtualhost 503 code with custom HTML page? ...

Assembly's App.Config is being ignored; Machine.config being read instead.

In running my VS2008 unit integration tests against my DAL, I have found that the assembly is reading machine.config instead of the assembly's app.config. Here's the rundown on the call stack: Unit Test Project has method calling into a DataLayer Project MyDataLayer class inherits from a base class. Method is called GetStuff() Base c...

Cross-domain policy not taking effect

Hi, I've created a ClientAccessPolicy.xml that looks like this: <?xml version="1.0" encoding="utf-8"?> <access-policy> <cross-domain-access> <policy> <allow-from> <domain uri="*"/> </allow-from> <grant-to> <resource path="/" include-subpaths="true"/> </grant-to> </policy> </cross-domai...

Load and Query Web Configuration

Is it somehow possible to load a web.config file in a WinForms app and query the resulting configuration, instead of using XML to find some less than semantic 'add' element? ...

How to write to the main exe's .config userSettings section?

Is there any supported API in .NET 2.0 for writing to the userSettings section of the main exe's .config file? The scenario is: Winforms 2.0 application. I have a setting (a database connection string, if you need to know) that has user level scope. This means that each user has a user.config file created by .net when the user saves t...

.Net default proxy setting

Hello everyone, If I have a client application which needs to call a web service. I want to know the pros/cons and impact if I set default proxy property to true or false in app.config file? Thanks! Here is the property I am talking about. http://msdn.microsoft.com/en-us/library/kd3cf2ex.aspx regards, George ...

Automatically add properties when running JUnit in Eclipse

In order to run my unit tests on my Eclipse, I need to set some properties for the VM. Thus, when I first run my JUnit test, I go in "Open Run Dialog", then in my JUnit configuration for this test, I go in "Arguments" tab and put everything I need in the "VM arguments" text area. Is there a way to automatically add a set of properties ...

DNS: Do the NS names set for a zone have to match the NS names reported by the upstream TLD servers?

I've noticed that several service providers are operating DNS services for their clients' domains with NS names set for the zone and returned by the authoritative name server (in authority section / NS & SOA records) that don't match the NS names returned by the upstream server (e.g. TLD servers) and which were used for the lookup. Exam...

Visual Studio won't make debug DLL

Visual Studio won't make a debug DLL when I select Debug for the configuration. Instead it makes a release version. The output window show it's making a release version, even with a Debug configuration selected. The release DLL it produces has the current date. When I save the project in the Debug configuration and reload it, it has ...

What would be the correct design for keeping configuration settings in c++?

Say I have ini/json to store configuration setting of my desktop application,Will it be ok to have a static object with all property loaded at startup/when ever it is required or is there any other better alternative? Since this is the very first time I am doing this ,so just wanted to know whether static object is fine or singleton pat...

Tomcat 6.x Administration

With the Administration tool was not ported from Tomcat 5.x to Tomcat 6.x, how do people manage Tomcat configuration? Are there other 3rd party Admin applications available? Or is all configuration done through editing xml files. Thanks ...

Eclipse line numbers

How can I show line numbers BY DEFAULT in eclipse!? ...

CSS Friendly Control Adapters causes security error?

I just added a reference to the CSS Friendly Control Adapters dll and added the following file (CSSFriendlyAdapters.browser) to my "App_Browsers" folder: <browsers> <browser refID="Default"> <controlAdapters> <adapter controlType="System.Web.UI.WebControls.TreeView" adapterType="CSSFriendly.TreeViewAdapter" />...

What's the best Perl module for hierarchical and inheritable configuration?

If I have a greenfield project, what is the best practice Perl based configuration module to use? There will be a Catalyst app and some command line scripts. They should share the same configuration. Some features I think I want ... Hierarchical Configurations to cleanly maintain different development and live settings. I'd like t...

At what point does a config file become a programming language?

I have been mulling over config files and their relationship to code for a while now and depending on the day and direction of the wind my opinions seem to change. More and more though I keep coming back to the realization I first had while learning Lisp: there is little difference between data and code. This seems doubly true for conf...

log4net configuration with [assembly:]

I was curious how the following line works for configuring log4net in an assembly: [assembly: log4net.Config.XmlConfigurator(Watch=true)] I'm guessing this gets called sometime before the runtime invokes "main()" but when does this occur, and what are the implications? Are there other frameworks/libraries that use this assembly attri...

Can't establish connection on local ASP.NET development web server?

I am using Visual Studio 2008, and I had an ASP.NET dev configuration working fine, but today when I try to launch any ASP.NET project within the development web server, the browser opens, but I get an error Can't establish a connection to localhost:64428 (port varying at each attempt). The problem is happening even with a newly created...

WCF - client proxy config does NOT match service web.config

I have a simple WCF Service that needs to handle large datastreams, so I have the a lot of the config values bumped up above the defaults. I've recently been moving all of my code into a new, restructured solution, and I just moved over the service. However, when I try to generate a client proxy (using either WCFTestClient.exe or "Add ...

Internet facing Windows Server 2008 -- is it secure?

I really know nothing about securing or configuring a "live" internet facing web server and that's exactly what I have been assigned to do by management. Aside from the operating system being installed (and windows update), I haven't done a thing. I have read some guides from Microsoft and on the web, but none of them seem to be very com...

FitNesse configuration files

I'm using FitNesse as a functional testing framework. I'm running into trouble when FitNesse runs code that needs configuration. If I need to get a connection string from the configuration file, I can get it to work by adding it to the FitServer.exe.config. However, I don't like that solution. I would like FitNesse to load my own config...