configuration-files

App.Config Custom configuration section problem

纵饮孤独 提交于 2019-12-10 14:56:37
问题 I've created a custom config section for my application. For some reason Visual Studio 2010 isn't picking up and of my custom properties. I'm getting warnings similar to this for all the "add" keys: Could not find schema information for the element 'urlFilterSection' CONFIG FILE: <configSections> <section name="urlFilterSection" type="BotFinderApp.Models.UrlFilterSection, BotFinder" /> </configSections> <urlFilterSection> <urlFilterCollection> <add url="urlhere.com.au" numberOfIpsToExtract=

Where can I find the file my.cnf or my.ini file? [closed]

与世无争的帅哥 提交于 2019-12-10 14:42:51
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 8 years ago . I've read about MySQL replication and i need to change some configuration but I can't find the file my.cnf or my.ini. I don't know which MySQL version I have but I've downloaded it a long time ago, as a .zip. My box runs Windows 7 64. Where can i find this file? Should I create it? Where? Thank you. 回答1: I do

Gradle multi-project with shared logging config

 ̄綄美尐妖づ 提交于 2019-12-10 13:45:24
问题 Is there a standard way to share a logging config (for log4j or logback for example) across all sub projects in a gradle project layout? What I do right now is put a copy of logback.xml (or log4j.properties ) in src/main/resources in each sub-project but this results in a lot of unnecessary duplication of this config file 回答1: This can be easily overcome using multiple working sets in gradle. Add a new folder in the root of the project, example "shared-resources" put our configs inside it,

Opencart Fatal error: Call to a member function get() on a non-object

跟風遠走 提交于 2019-12-10 12:38:09
问题 Trying to move from local host to new server. Fresh install worked fine, no problems. When I uploaded my files mydomain.com/admin comes up with a white screen and mydomain.com produces this error: Fatal error: Call to a member function get() on a non-object in /home4/pawpostc/public_html/index.php on line 103. So I took a look at index.php line 103: if ($config->get('config_error_display')) { echo '<b>' . $error . '</b>: ' . $errstr . ' in <b>' . $errfile . '</b> on line <b>' . $errline . '<

How to manage spring-boot application configuration for different environmnets?

泄露秘密 提交于 2019-12-10 12:08:27
问题 I have a spring-boot application which runs in different environments (dev,qa,prod). In order to generate immutable builds which can run on all environments without any modification i have packaged environment specific configuration files into generated jar itself. But this creates another problem of exposing production database credentials to development team too. I can use external config server, but that's overkill for me for now. How can i manage these configuration files to avoid this

Modify settings after calling RemoteConfiguration.Configure(configFile)?

让人想犯罪 __ 提交于 2019-12-10 11:49:23
问题 My application calls RemotingConfiguration.Configure() to set up .NET Remoting. But since I need the portName attribute of the channels element to be different each time the application is run, I have to configure this particular setting programatically. It sounds very simple (and probably is - but I've been searching Google all day for an answer). So far I have: RemotingConfiguration.Configure(Program.ConfigFilePath, false); IChannel[] regChans = ChannelServices.RegisteredChannels;

loading multiple properties with config-server

旧时模样 提交于 2019-12-10 10:14:24
问题 I have successfully tested loading properties from SVN repository, currently in my config server i have provided the URI and default-label: trunk and i have application specific property under trunk . below is the contents of my consuming application's application.yml and able to pull the properties successfully spring: application: name: foo-development cloud: config: uri: http://localhost:${config.port:8888} now i have a shared property in different folder thats shared across other

Check if a configuration profile is installed on iOS

我的未来我决定 提交于 2019-12-10 10:09:52
问题 I'm trying to check if .mobileconfig file installed on the iOS device. I've tried an approach which described by this link http://blog.markhorgan.com/?p=701, but I'm fail with it. Maybe someone have other ideas or whatever ... ? Thank in advance. 回答1: Why do you need to know if a configuration profile is installed on the device? Apple doesn't provide API to check if configuration profiles are installed as it would be a privacy invasion of the app into the user's setup (unless the

Log4j2 - how to convert XML configuration to .properties format for JDBC appender

自闭症网瘾萝莉.ら 提交于 2019-12-10 07:27:48
问题 How do I convert this log4j2.xml config fragment to log4j2.properties format? I cannot use XML format in my maven + netbeans project as I simply cannot get log4j2 to parse and respond to a log4j2.xml file - no matter where I place it in my project, it is ignored by log4j2. However log4j2.properties in main/resource IS parsed and responded to so I -HAVE- to use .properties...: <JDBC name="databaseAppender" tableName="LOGGING.APPLICATION_LOG"> <ConnectionFactory class="log4j_tutorial

Configuration System Failed To Initialize

十年热恋 提交于 2019-12-10 02:15:58
问题 In my application when I try to get the connection string by using this code : System.Configuration.ConfigurationManager.ConnectionStrings["ConStr"].ConnectionString; It throws an exception that "Configuration System Failed To Initialize". Where is the format of app.config wrong ? <?xml version="1.0"?> <configuration> <connectionStrings> <add name="ConStr" connectionString="Integrated Security=false;Persist Security Info=False;User ID=funny;password=veryfunny;Initial Catalog=vegimanager;Data