C#, where is the App.config come from?
I inherited a simple C# project without a App.config file. I need it now. How should I create one? manually or VS 2008 can do it for me? ...
I inherited a simple C# project without a App.config file. I need it now. How should I create one? manually or VS 2008 can do it for me? ...
If we can have more than one .config files, we can share one config file with other projects and put private configuration into another. Visual Studio 2008 will be confused? ...
Assume I have a directory structure like this ~j/p1/src/ /Doxyfile1 /ss1/ /f1.c /f2.c ~j/p2/src/ /Doxyfile1 /ss1/ /f1.c /f2.c The contents of ~j/p1 and the contents of ~j/p2 were created as workspaces for the same part of a single Subversion repos...
I just downloaded PHP and I tried running mySQL with the command: C:\Program Files\EasyPHP-5.3.2i\mySQL\bin\mysql.exe And I got the error: ERROR 1045 (28000): Acess denied for user 'ODBC'@localhost' (using password: YES) I found a solution online with linux, but I'm running vista on this machine and have no clue what all of that me...
private void Form1_FormClosing(object sender, FormClosingEventArgs e) { Properties.Settings.Default.Save(); } I used Application Settings and When Form was load i see value in control but i can't use its when Form load event. how to use value that bind from Application Settings when event Form1_Loa...
I have a .settings file (containing both User and Application settings) that I would like to contain different values if built in Debug mode. Is there a supported or recommended way to do this? ...
Hi there, I've created a ComVisible assembly to be used in a classic-asp application. The assembly should act as a wcf client and connect to a wcf service host (inside a windows service) on the same machine using named pipes. The wcf service host works fine with other clients, so the problem must be within this assembly. In order to ge...
Hi, I want to be able to redirect my visitors from http://www.example.com and http://example.com to http://example.com/blog. How can I do that, I saw some examples but any of them works for me. Thanks. ...
I have some application settings that I'd like to add to my configuration file, but I'd like to group them outside of the normal "appSettings" section. My thought was that I would just create another "section" element within the "configSections" node of the config file, setting the "type" equal to "System.Configuration.AppSettingsSection...
When writing inline code in an .aspx file and some lines down closing a statement with <% } %>, Visual Studio tries to be nice but messes it up by rewriting it all. Is there any way of turning this rewriting off, but only for inline code? ...
I had a boss, past-tense, who decided to put svn branches in the same folder as trunk. Normally, this wouldn't affect me that much but since I'm using git-svn things are going so well. After I did a fetch it created a folder for each branch in my root folder so I have three folders, drupal, trunk, and client. The drupal folder is git's m...
We have javascript files that are environment specific, and so I was thinking of going down the path of creating a generic way to read in an XML (config) file to store different environment specific settings. I was curious to know if anybody else on here does that (or if not, is there a reason why you don't)? ...
Similar to question 198365, I'm trying to access serverURL in Config.groovy, during bootstrap. Using code from that question/answer, I'm getting a value of null. Is there something else I'm missing? import org.codehaus.groovy.grails.commons.ConfigurationHolder; def serverURL = ConfigurationHolder.config.grails.serverURL; ...
It is my understanding I can configure AutoMapper in the following way and during mapping it should format all source model dates to the rules defined in the IValueFormatter and set the result to the mapped model. ForSourceType<DateTime>().AddFormatter<StandardDateFormatter>(); ForSourceType<DateTime?>().AddFormatter<StandardDateFormat...
I'm trying to run Microsoft's .NET Framework Configuration Tool (Mscorcfg.msc). I have Visual Studio 2008 installed. I also have the following installed on my PC: Microsoft .Net Framework v1.0.3705 Microsoft .Net Framework 2.0 Service Pack 2 Microsoft .Net Framework 3.0 Service Pack 2 Microsoft .Net Framework 3.5 SP1 Microsoft .Net Fra...
Does Autofac have an equivalent to StructureMap's AssertConfigurationIsValid method? Or does configuration validation occur when creating the container? I believe the AssertConfigurationIsValid method checks that the container can create all the configured services. Obviously it can't pick up more subtle configuration mistakes - related...
I want to generate a database script without having an actual database connection string declared. To do this for now i use NHibernate ExportSchema bases on a NHibernate configuration generated with Fluent NHibernate this way (during my ISessionFactory creation method): FluentConfiguration configuration = Fluently.Configure(); ...
hi all, in /etc/openldap/slapd.conf I have this acl and works: access to dn.subtree="ou=users,dc=domain" by group/groupofuniquenames/uniquemember="cn=partner,ou=groups,dc=domain" write by users read When I want to configure it in OpenSuSE 11.1 Yast2 LDAP server configuration it generates me file /etc/openldap/slap.d/cn=conf...
I am writing a custom configuration section, and I would like to validate a configuration property with a callback, like in this example: using System; using System.Configuration; class CustomSection : ConfigurationSection { [ConfigurationProperty("stringValue", IsRequired = false)] [CallbackValidator(Type = typeof(CustomSec...
Hi all, I'm having a strange situation here. I got it working, but I don't understand why. Situation is as follows: There is a WCF service which my application (a website) has to call. The WCF service exposes a netTcpBinding and requires Transport Security (Windows). Client and server are in the same domain, but on different servers....