configuration-files

How to create a WCF client without settings in config file?

安稳与你 提交于 2019-11-30 17:33:58
I just start work on WCF a month ago. Please forgive me if I ask something already answered. I try to search first but found nothing. I read this article, WCF File Transfer: Streaming & Chunking Channel Hosted In IIS. It works great. Now I like to integrate client side code to be part of my application, which is a dll running inside AutoCAD. If I want to work with config file, I have to change acad.exe.config which I don't think is a good idea. So I think if it possible, I want to move all code in config file to code. Here is config file: <?xml version="1.0" encoding="utf-8" ?> <configuration>

Automatically load a config.php file for all pages before anything else

爱⌒轻易说出口 提交于 2019-11-30 17:18:45
Does anyone know how to set up something where a specific file can be loaded automatically for all pages before anything else? For example if I have a config.php file and I want this file to be loaded anytime anyone visits a page on my website. In here I would have some configuration info that is required to load prior to anything else. I don't want to do any includes on another php file for this I just want this to be loaded every time automatically before anything else. Basically a universal include. cryptic ツ You want to use auto_prepend_file . Set this directive in your php.ini or

Change Microsoft Config File Encryption Method From TripleDES

余生长醉 提交于 2019-11-30 16:28:02
When encrypting ("protecting") Microsoft config sections, you get something that looks like the XML below. It follows (at least partially) the W3 spec for XML Encryption. However, in the XML below you'll see that the EncryptionMethod under the EncryptedData section is "tripledes-cbc". We would like to be able to change that to a more-secure alternative, specifically AES, which is specified in the aforementioned W3 spec as well. In many calls with Microsoft's support engineers, they are nowhere near understanding the question, much less answering it. Is there a way to change this encryption

Global variables And Application Variables Defining in Spring boot project

匆匆过客 提交于 2019-11-30 16:12:01
I am trying to develop micro service by using spring and spring boot. In my project , I am converting monolithic to service oriented architecture. Project contain 20 Micro services.I these I need to set application variables and global variables. I have confusions related to this , And I am adding those confusions here, Is possible to declare my global variables in application.properties file? If not possible where I can define my global variables? If I am using spring config server for global configuration, How I can import those properties conditionally to client project? Can I set different

Loading the WCF configuration from different files on the client side

拟墨画扇 提交于 2019-11-30 15:45:43
问题 A common problem in WCF that many people face is the impossibility of loading the client configuration from different configuration files. This is a common scenario when the developer wants to deploy some binaries with along with an independent configuration file (Which may be in a resource file also or another configuration file) to avoid modifying the main configuration file. I have found two references: http://weblogs.asp.net/cibrax/archive/2007/10/19/loading-the-wcf-configuration-from

Loading the WCF configuration from different files on the client side

旧时模样 提交于 2019-11-30 15:30:52
A common problem in WCF that many people face is the impossibility of loading the client configuration from different configuration files. This is a common scenario when the developer wants to deploy some binaries with along with an independent configuration file (Which may be in a resource file also or another configuration file) to avoid modifying the main configuration file. I have found two references: http://weblogs.asp.net/cibrax/archive/2007/10/19/loading-the-wcf-configuration-from-different-files-on-the-client-side.aspx http://social.msdn.microsoft.com/forums/en-US/wcf/thread/f33e620a

Get connection string in class library project in a solution

孤者浪人 提交于 2019-11-30 14:37:24
In my .net 4 solution, i have two different projects- an web application project and a class library project. In web application project, database connection string is in web.config file. I would like to access that connection string from class library project. Is it possible? if yes, how? If there is any better approach to get connection string, please let me know. To access it from your class library add a reference to System.Configuration then use System.Confinguration.ConfigurationManager.ConnectionStrings . It's not ideal to read this from a class library. After all, can you say that your

How to update external config files without rebuilding war file in Grails

荒凉一梦 提交于 2019-11-30 14:14:23
问题 How to update external config files (e.g.: config-ex.groovy , config-ex.properties ) without rebuilding the war file in Grails? Restarting the application server will apply the new updates from external config files. 回答1: If I understand well you want to externalized Grails config outside the war. You can define an external config in your config.groovy like this grails.config.locations = ["file:path/to/your/Configfile.groovy"] See the Grails doc 4.4 Externalized Configuration 回答2: Define your

my_config.ini vs my_config.php

主宰稳场 提交于 2019-11-30 11:17:45
At work we use a .ini file to set variables prior to calling the rest of the framework (I think it goes function getConfigVars(){ //read my_config.ini file .... //call framework } and I have always wondered if there was a benefit to doing it that way. It seems to me that you then have to write access rules to stop people from looking at it from the web and php has to parse it and understand it. So, why use my_config.ini rather than my_config.php? It is not like anyone should be touching it after it is set up and it seems more convenient to just call the variables and be able to have your IDE

Why does Visual Studio tell me that the AddJsonFile() method is not defined?

…衆ロ難τιáo~ 提交于 2019-11-30 10:40:33
I'm developing an ASP.NET 5 WebAPI project using VS Ultimate 2015 Preview. I'm trying to configure the app in this way (line numbers are just guides): 1 using Microsoft.Framework.ConfigurationModel; 2 3 public IConfiguration Configuration { get; private set; } 4 5 public Startup() 6 { 7 Configuration = new Configuration() 8 .AddJsonFile("config.json") 9 .AddEnvironmentVariables(); 10 } Line 8 gives me an error: 'Configuration' does not contain a definition for 'AddJsonFile'... What is wrong? Lonig You need to include the Microsoft.Extensions.Configuration.Json NuGet package if you want to call