configuration

ASP.NET application only partially reading external configuration

I have an ASP.NET web app and am attempting to reference an external config (using enterprise application blocks configuration) for some of the configuration but it is not entirely working. I previously had all of the configuration info in the web.config (and it was working), but we are wanting to share some of this configuration inform...

Config trouble on first IIS7 setup on localhost

Hey. So I want to set up IIS7 for development on my local machine. I created a blank directory, added it to the host file, and created index.html with basic hello-world information. I browse to http:// blank/ and it works fine. However when I drop in the files for another .net site that is currently working fine in Visual Web Develop...

Editing AppName.dll.config in Production - changes aren't picked up.

Background: I have an ASP.NET dll which I'm referencing from a classic ASP web application. [Pause for groaning.] I've added the dll to the GAC and registered it with regasm and so forth, per various articles here at SO and elsewhere. It all works: the object is created, a database is called, everything ends well. The problem, thou...

What happens if a bean attempts to load the Spring application context in its constructor?

Given the following Spring application context and class A, what happens when you run class A? applicationContext.xml (in classpath): <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframew...

Can I set the app.config 'useLegacyV2RuntimeActivationPolicy' attribute progamatically?

I had to migrate a .NET 3.5 to 4.0 but some dll's were not loading, after googling I found that creating an app.config would solve it: <?xml version="1.0" encoding="utf-8" ?> <configuration> <startup useLegacyV2RuntimeActivationPolicy="true"> <supportedRuntime version="v4.0" /> </startup> </configuration> I would like to setup...

How to configure Netbeans code entry point when you use mod-rewriting

I am developing a website in PHP and I am using mod-rewrite rules. I want to use the Netbeans Run Configuration (under project properties) to set code entry points that looks like http://project/news or http://project/user/12 It seems Netbeans have a problem with this and needs an entry point to a physical file like http://project/use...

Smart command line encryption method for app.config sections searched

ASP.NET contains a simple method to encrypt sections of web.config files. It is simple to do this by code and it is simple to do this by command line with the aspnet_regiis tool for web.config files. And although the underlying API isn’t ASP.NET specific, there is no tool like aspnet_regiis for app.config files. I am aware of the workaro...

Old dll.config problem !

Since 2005 as I googled it's a problem for who needs to read the configuration of an assembly from it's config file "*.dll.config" and Microsoft didn't do anything yet. Story: If you try to read a setting from a class library (plug-in) you fail. Instead the main application domain (EXE which is using the plug-in) config is read and beca...

Logging to ProgramData folder with Enterprise Library

How do I configure the Enterprise Library Logging Application Block to place the log files in the ProgramData folder? AFAIK it's only possible to use relative paths (from the installation directory) or absolute paths to set the location in EntLib configuration. ...

.Net 3.5 DLL XML dependency

Hi, I wrote a class library in C# that uses a external XML file to store some data. I use this data (encoded rules) directly in the class library to do some substitutions within a text parser. The rules within the XML: <rule> <word>h e l l o</word> <sub>Hello</sub> </rule> When I share the lib, I also have to share the XML. T...

How to limit a request execution time of WCF service?

Is there something in WCF configuration that defines a timeout for executing a request at service side? E.g. WCF service will stop executing request after some time period. I have a service which make some work depending on client input. In some cases a such call may take too much time. I want to limit the execution time of such requests...

tokens in visual studio: HACK, TODO... any other?

what tokens do you find useful in visual studio? (visual studio 2010 → environment → task list → tokens) currently i have only: HACK - low REVIEW - high TODO - normal WTF - high (only these - deleted some default ones) are you using any others? are you covering any other important thing with comment tokens? any best practices? th...

Configuration and Views

Hi all, I've been developing an application using asp.net MVC, and I have some configurations that influences in process of render a view. For example, a user can choose (in an configuration of system) if a field should appear for a management of records in an area of the system. So, I have an class called AppConfiguration has some prope...

CakePHP ROOT constant

The CakePHP ROOT constant, where should it point to? ...

One configuration per domain name on the same application. How to easily access config values from models?

Hi, I run a Ruby on Rails website that have multiple domain names. I have a "Website" table in the database that stores the configuration values related to each domain name: Website - domain - name - tagline - admin_email - etc... At the moment, I load the website object at the start of each request (before_filter) ...

Redmine configuration - Rake: Don´t know how to build task environment.

Hi, I´m configuring Redmine for the first time. Everything works fine except for the incoming emails part. I have downloaded the latest version of email.rake and I´m invoking it using the following command: rake -f "C:\Archivos de programa\BitNami Redmine Stack\apps\redmine\lib\tasks\email.rake" RAILS_ENV=production redmine:email:receiv...

HSQLdb permissions regarding OpenJPA

Hi! I'm (still) having loads of issues with HSQLdb & OpenJPA. Exception in thread "main" <openjpa-1.2.0-r422266:683325 fatal store error> org.apache.openjpa.persistence.RollbackException: user lacks privilege or object not found: OPENJPA_SEQUENCE_TABLE {SELECT SEQUENCE_VALUE FROM PUBLIC.OPENJPA_SEQUENCE_TABLE WHERE ID = ?} [code=-5501,...

How can I create a custom NHibernate configuration property?

I'm currently working on creating a custom connection provider for HNibernate very similar to the one mentioned here. In it, they specify a separate connection string within the hibernate.cfg.xml parameters. However, when I go to add this new parameter, like so... <?xml version="1.0" encoding="utf-8" ?> <hibernate-configuration xmlns=...

CherryPy configuration tools.staticdir.root problem

Hi there, How can I make my static-file root directories relative to my application root folder (instead of a hard-coded path)? In accordance with CP instructions (http://www.cherrypy.org/wiki/StaticContent) I have tried the following in my configuration file: tree.cpapp = cherrypy.Application(cpapp.Root()) tools.staticdir.root = cpap...

C#: Use NUnit to test classes that use Nhibernate

I have a project with a lot of classes that use Nhibernate. Now I want to use NUnit to test those classes. Are there specific things I need to consider? ...