configuration

WCF Error - Could not find a base address that matches scheme...

I'm trying to get a WCF web service to work with SSL, as you can imagine it works on my machine, however when I run it on the production environments I get this instead: Could not find a base address that matches scheme http for the endpoint with binding BasicHttpBinding. Registered base address schemes are [https]. Despite many h...

Unity: pass parameters to custom lifetime constructor, in xml configuration file

I wrote my CustomLifetimeManager like this: public class CustomLifetimeManager <T> : LifetimeManager { private readonly string _arg; public CustomLifetimeManager(string arg) { _arg = arg; } } Now, it works easy configuring the container programmatically, but how add it in configuration file like the following? ...

How to change "site_name" in Drupal 6

Hi. This is probably a really obvious question, but it's driving me nuts. We have a drupal installation and we need to change the site_name and site_slogan variables. It sounds like it should be easy, but I just can't find an option anywhere in the admin panels to do it. The only place I can find is in the initial installation script ...

ConfigurationManager Class and On Demand configuration changes

Are there any events that will fire if someone edited my custom made application config? I wanted to know such changes and apply it on my application. ...

Will ConfigurationManager.AppSettings["blah"] throw an exception if "blah" doesn't exist?

Will ConfigurationManager.AppSettings["blah"] throw an exception if "blah" doesn't exist in the web/app.config? Sincere apologies for the super lazy question. ...

How to include milliseconds in a DateTime user setting?

I have the following user setting defined in app.config: <userSettings> <MyProject.Properties.Settings> <setting name="LastProcessedDate" serializeAs="String"> <value>07/06/2010 13:05:10</value> </setting> </MyProject.Properties.Settings> </userSettings> Is there a way to specify that this setting s...

Is there any way to do a conditional in a NLog layout?

I'm trying to create a NLog layout config like so: layout = "${callsite} > ${message} (${exception:format=tostring})" The output for this layout is (when I test it): TestProject.Program.Main > exception thrown (System.Exception: exception message) However, if I try to output a message that doesn't have an exception, it shows up ...

Web-Based Configuration Interface for Console Applications

I've been using app.Config and INI files to configure my applications but I wanted to make it more user-friendly. I've already encountered some applications ( most of them are java based ) that its configurations are via web interface ( I think the application is hosting jsp ). How can I do this on .net platform fast and easy? Thanks ...

CXF SSL Spring configuration - Empty client certificate chain

Hi everybody, I am trying to build a SSL secured Web Service client using CXF Spring configuration and I wonder how is it possible to tell to CXF to use this client certificate in my keystore. This should exists because if my keystore holds plenty of certificate how does CXF is supposed to do to find the good one? Here is my configurat...

revision vs. version

I am kicking off some process improvements at a new company. One of the areas to concentrate on first is CM. I was asked during a briefing of what I am doing what is the difference between revision and version. I gave my explanation and then followed up with an email of the following link: http://www.product-lifecycle-management.com/...

Enforcing web.config authorization entries

Ultimate goal is to provide protection against programming mistakes. I want to make sure that every page in a portion of my web application has a role specified like below. Ideally I would like to programatically check all requests coming in ( think IHttpModule ) and make sure that the page being requested has a role specified. I can'...

Mercurial - How did my commit get split off (see pic)?

What's going on with the line that split out on it's own? I did a commit and then I did a pull for the repository and then an update. What caused this? How do I get that split part back into the main line? ...

How does MAMP know to look in /opt for web applications?

I've installed a PHP web application that's in /opt/webapp name. However, I'd like to be able to tell MAMP pull the PHP files from something like /username/localdevversion/. The problem is that I can't figure out what tells MAMP to look for PHP files in /opt. I've looked in /Applications/MAMP/conf/apache/httpd.conf and /Applications/MAM...

Where do you keep the configuration files for your stack?

For the website(s) I am a developer for we have a number of different technologies which make up our stack, each with a different set of configurations etc. This is a Rails stack, so we're running things including: Nginx w/ Passenger Varnish Redis Memcached MySQL MongoDB As we're continually tweaking our configs and changing them to...

PHP5 doesn't work an a custom DocumentRoot

Hi, I am currently struggling with the following problem. I have successfully installed Apache2 and PHP5. And it works until I change the DocumentRoot of the Apache2 to something different than /var/www. I want to set the DocumentRoot to /home//wwwroot, but after doing this all php pages are just white. (no download message or sth.) H...

"Launch Configuration" Shows up Blank When Trying to Export Runnable Jar?

Hey everyone, I've gotten this to work in the past, but now whenever I choose File > Export... > Runnable JAR File and select the drop-down menu "Launch Configuration", all I get is a blank bar. How can I get my main class to show up? Many Thanks, Justian ...

Write xml cofiguration file and C# parser for ado.net query .

I wont to write a xml configuration file that containg query to the same db, only query to view. The "query node" must have the filters parameter. How i can write this xml file and the C# Parser , and QueryBuilder classes. I wont some thinl like this: <Query Name="Application Approval by Month" src="APPLICATION_APPROVAL_COUNT_BY_MONT...

Refresh/clear cache of app.config

I'm trying to get update values from app.config while it's running. I tried several methods but it still uses old values. How can I get correctly refresh it? I tried these but it didn't work: MessageBox.Show(Properties.Settings.Default.MyValue); Properties.Settings.Default.Reload(); Properties.Settings.Default.Upgrade(); Properties.Sett...

hibernate startup error

I am getting a weird message printed to standard our when hibernate starts up and i am having trouble diagnosing it. here is the message that prints out (it shows up red in my eclipse console, so i believe that means it was written to standard error): initialPoolSize-> coercedPropVal: 1 maxIdleTime-> coercedPropVal: 1500 maxPoolSize-> ...

Suggest a good approach for targeting different databases and configurations for dev/test/qa with Maven2?

Hi I'm starting a new web development project with my team using Hibernate and Spring MVC. We will be building with Maven2 and use the NetBeans IDE. Our past projects have used ant for the build system. We will be using Atlassian Bamboo for our CI server. My question relates to the best practice for switching between dev/test/qa/product...