configuration

Installing Powershell on 600 client computers - Recommended settings.

I want to install Powershell to 600 xp computers and use it as the main processing shell, for example replacing batch scripts, VB scripts some other little programs. The installation process is not a problem. Some issues I think I'm going to come across are 1) Changing permissions to allow powershell to run scripts 2) The speed of po...

IIS Error: Cannot connect to the configuration database.

After rebooting the Windows 2003 Server with the IIS I receive the follow error message Cannot connect to the configuration database. in the browser. The error occur on different pages and with different clients. that I think it is a server problem. What can I do to solve this error? ...

Simplest way to have a configuration file in a Windows Forms C# Application

I'm really new to .NET and I still didn't get the hang about how config files work. Every time I search on google about it I get results about web.config, but I'm writing a windows forms application. I figured out that I need to use the System.Configuration namespace but I'm kinda dumb and the documentation isn't helping. How do I def...

Which configuration method do you prefer in .net? Why?

You can use App.config; but it only supports key/value pairs. You can use .Net configuration, configuration sections; but it can be really complex. You can use Xml Serialization/Deserialization by yourself; your classes-your way. You can use some other method; what can they be? ... Which of these or other methods (if there are) do you...

Can you suggest something a little more advanced than java.util.Properties?

Do you know any libraries similar to java.util.Properties that support more advanced features like grouping properties, storing arrays, etc? I am not looking for some heavy super-advanced solution, just something light and useful for any project. Thanks. ...

ssl_error_rx_record_too_long and Apache SSL

I've got a customer trying to access one of my sites, and they keep getting this error > ssl_error_rx_record_too_long They're getting this error on all browsers, all platforms. I can't reproduce the problem at all. My server and myself are located in the USA, the customer is located in India. I googled on the problem, and the main sou...

How can I redirect and modify extension-less URLs via ASP.NET?

We have redesigned the structure to a website which has several business units. Now I want to redirect (301) to the new page. IE: was www.example.com/abc now www.example.com/default.aspx?article=abc I have tried to use Global.asax to do this, and it works properly when I debug through it. if (Request.RawUrl.Contains("abc"))...

SQL Server Management Studio 2005 - Change Default Directory for Backup Location

Using MS SQL Server Management Studio 2005 - To Restore a Database: Restore Database (*) From Device: Click "..." Button Backup media: File Click "Add" Button Popup Window: "Locate Backup File" That window Defaults to C:\Program Files\Microsoft SQL Server\MSSQL.1\Backup How do I configure MS SQL Server Management Studio to look i...

What is the best way to change the credentials of a Windows service using C#

I need to change the credentials of an already existing Windows service using C#. I am aware of two different ways of doing this. ChangeServiceConfig, see ttp://www.pinvoke.net/default.aspx/advapi32.ChangeServiceConfig ManagementObject.InvokeMethod using Change as the method name. Neither seems a very "friendly" way of doing this and...

Should I allow 'allow_url_fopen' in PHP?

We have a couple of developers asking for 'allow_url_fopen' to be enabled on our server. What's the norm these days and if libcurl is enabled is there really any good reason to allow? Environment is: Windows 2003, PHP 5.2.6, FastCGI Thanks Kev ...

How to avoid storing passwords in the clear for tomcat's server.xml Resource definition of a DataSource?

The resource definition in tomcat's server.xml looks something like this... <Resource name="jdbc/tox" scope="Shareable" type="javax.sql.DataSource" url="jdbc:oracle:thin:@yourDBserver.yourCompany.com:1521:yourDBsid" driverClassName="oracle.jdbc.pool.OracleDataSource" username="tox" password="toxbaby" maxIdle="3" maxActive="10" removeAba...

Getting Spring Application Context

Is there a way to statically/globally request a copy of the ApplicationContext in a Spring application? Assuming the main class starts up and initializes the application context, does it need to pass that down throw the call stack to any classes that need it, or is there a way for a class to ask for the previously created context? (Whi...

Can I use DoxyGen to document ActionScript code?

How do I Configuring DoxyGen to document ActionScript files? I've included the *.as and *.asi files in doxygen's search pattern, but the classes, functions and variables don't show there. ...

HTTPHandler tag in Web.Config breaks asmx Files...

hey all, In my ASP.Net 1.1 application, i've added the following to my Web.Config (within the System.Web tag section): <httpHandlers> <add verb="*" path="*.bcn" type="Internet2008.Beacon.BeaconHandler, Internet2008" /> </httpHandlers> This works fine, and the HTTPHandler kicks in for files of type .bcn, and does its thing.. however...

How do you treat the deployment of configuration files on different systems in Subversion?

Subversion is a great way to update our web applications on our servers. With a simple svn update all changed files get... well, changed. Except for the omnipresent configuration files such as config.php which hold the database access configuration, server paths etc. And are therefore different on my local development system and the rem...

ASP.Net Medium Trust setup

I am trying to configure the IPermission node as part of medium trust. However I am unable to find the valid values list for the PathDiscovery attribute on the node <IPermission class="FileIOPermission" version="1" Read="$AppDir$" Write="$AppDir$" Append="$AppDir$" PathDiscovery="$AppDir$"/> I need to set the permission so that the ac...

Password encryption in Delphi

I need to store database passwords in a config file. For obvious reasons, I want to encrypt them (preferably with AES). Does anyone know a Delphi implementation that is easy to introduce into an existing project with > 10,000 lines of historically grown (URGH!) source code? Clarification: Easy means adding the unit to the project, addin...

Problem encrypting membership element in web.config

I am trying to encrypt the "system.web.membership" element within the Web.Config of our .Net application to secure username and password to Active Directory. I am using the aspnet_regiis command to encrypt, and have tried several different strings for the value of the "pe" option with no success. I have successfully encrypted the "connec...

What parts of application you prefer to be externalized as configuration and why?

What parts of your application are not coded? I think one of the most obvious examples would be DB credentials - it's considered bad to have them hard coded. And in most of situations it is easy to decide if you want something to be externalized or coded.For me the rules are simple. Some part of the application should be externalized if:...

What does AllowLocation="true" do in System.Web section of Web.Config?

We have a .NET 2.0 application which we normally run on IIS6, and used to run fine on IIS7, but recently after installing SP1 for Vista IIS7 seems to be choking on a line in the Web.Config file: <system.web AllowLocation="true"> Is it safe to remove the AllowLocation attribute? What does this attribute do? ...