configuration

eclipse ini configuration

Hello Friends actually i and my friend are trying to learn and use eclipse 3.4 and we are having some heap memory issue while working, and my friend suggested to increase the memory allocation to eclipse ide as he has 4GB RAM and he wants to allocate enough heap, allocate decent perm size, and enable parallel garbage collection to this ...

Use XML includes or config references in app.config to include other config files' settings

I have standard logging, nhibernate, etc configuration blocks in my app.config and I'd like to extract them into a common xml file that can be included as a reference by all of my applications' app.config files. Is this possible? ...

WCF Configuration - Split it out of app.config

Hi all, I have a specific requirement to remove all client WCF configuration (<system.serviceModel>) out of the main app.config file, and into a separate XML file. The behaviour I would like to see is similar to that available in the appSettings section using the File="" directive. In fact, I'd ideally like to be able to specify a s...

Can .NET load and parse a properties file equivalent to Java Properties class?

Is there an easy way in C# to read a properties file that has each property on a separate line followed by an equals sign and the value, such as the following: ServerName=prod-srv1 Port=8888 CustomProperty=Any value In Java, the Properties class handles this parsing easily: Properties myProperties=new Properties(); FileInputStream fi...

Configuration in a File or a Database?

I'm not really asking whether I should use either a RDBMS or config files for 100% of my application configuration, but rather what kind of configuration is best addressed by each method. For example, I've heard that "any kind of configuration that is not changeable by the end-user" should be in config files rather than the database. ...

How to dynamically configure an application?

When I say "configure" I mean where to save those values that could change very often (constants values like taxes rates or something similar) and then when you need to change them you don't want to re-compile your application. Where to save those values? Database? XML File? Flat File? ...

Can ActiveScaffold be configured to show the search form before displaying a list?

When I ask ActiveScaffold to show me a very long list (for example the list of products sold), it runs the database query to get the first page of data and it displays it. If the list has a few relations, this query might take some time to execute (over a second). Most of the time, I'm not interested in this "unfiltered" list: the firs...

ASP.NET MVC and httpRuntime executionTimeout

I would like to increase the httpruntime executionTimeout for a subsection of an ASP.NET MVC application. In a regular Web App, you could use <configuration> <location path="UploadPage.aspx"> <httpRuntime executionTimeout="600"/> </location> </configuration> however there really is not the idea of "Folders" in ASP.NET MVC, so how wo...

Different domains to different pages in IIS7

I have a Default Web Site and another web application (let's call it Application2) inside the Default Web Site in IIS7. I have 2 registered domain names, let's say www.example.com and www.example.net. I would like to configure things that when I open www.example.com I get Default Web Site, when I open www.example.net I get Default Web ...

Synchronizing External Configuration Between IIS Servers in a Web Farm

I have been struggling with the best way to make sure that the certain XML configuration files stay synchronized between multiple servers in a Web Farm. I am not necessarily concerned about the Web.Config, as much as I am concerned about some of the other configuration files that are present in the application. For example, we store ca...

How to configure multiple modules using .net configuration files

I have a few .net modules/libraries I am referencing from my main application. Each of the modules/libraries can be configured and after I build them they each have a configuration file such as MyModule1.dll.config, MyModule2.dll.config. When I build my main application an app.config file is outputted to the output directory. I am wond...

qt configuration on windows

I'm having some trouble installing and configuring qt on my vista laptop. I'm trying to setup a development environment on my laptop where I compile from the command line, because that's how the environment is setup on my university's linux machines, so I don't want to tie myself to some IDE .. (plus, real programmers use the command li...

Unable to launch the ASP.NET Development server because port '1900' is in use.

I don't know what has got into my computer today. I was developing just fine in VS 2008 and testing my ASP.NET web site on my development server. Then suddenly, out of the blue, I can't run my web site any more! As soon as I hit F5, the message appears: Unable to launch the ASP.NET Development server because port '1900' is in use. An...

Configuration strategy for multiple modules

Are there different strategies for configuration when you have multiple modules in the same application? I have an application that uses a CommonLib library which is maintained by some other in-house group, then we are using some 3rd party tools as well that need to be configured. Everything seems to depend on configuration settings bein...

Deny access on particular folder in IIS 7 in php application

Hi, I'm having an PHP application running on IIS7. I want to secure particular folder by modifying web.config. I don't want to use tag in config as this will redirect users to login page. Rather then, I'd like to implement HttpNotFoundHandler. Say for example, http://domain.com/SecureFolder is the directory on which I want to implemen...

change connection string & reload app.config at run time

when i change connection string through this code it not reload app.config at runtime how we reload app config config.ConnectionStrings.ConnectionStrings["JVVNL_NEW.Properties.Settings.JVVNL_NEWConnectionString1"].ConnectionString = ConString; config.ConnectionStrings.ConnectionStrings["CMS_NEW.Properties.Settings.JVVNL_NEWConnectionStr...

EpiServer CMS 5 R2: Custom Page Provider refuses to load.

I've recently started work on a new project using EpiServer which I am totally new to. One of my tasks requires me to write a custom page provider. I have got the sample page provider working and loaded. I've also ensured that I have a Enterprise Developer licence as the functionality is only available with this licence. So I've done ...

Loading custom configuration files

Hi all, I know I can open config files that are related to an assembly with the static ConfigurationManager.OpenExe(exePath) method but I just want to open a config that is not related to an assembly. Just a standard .NET config file... Thanks for taking time to read this and I look forward to your answers! Adam ...

Why would you want Dependency Injection without configuration?

After reading the nice answers in this question, I watched the screencasts by Justin Etheredge. It all seems very nice, with a minimum of setup you get DI right from your code. Now the question that creeps up to me is: why would you want to use a DI framework that doesn't use configuration files? Isn't that the whole point of using a DI...

Can I get Nginx to log certain types of requests differently?

I want Nginx to log requests that start with /path to a certain log file. like this: http://domain.com/path/to/dir = Logged http://www.domain.com/to/some/dir/path/ = Not Logged http://sub.domain.com/ = Not Logged Sorry if this is vague, but I'm new to the nginx config biz. Feel free to ask questions about what I'm doing, I'll answer...