app-config
Reading from specific configuration file
I have an application that contain one exe file and several dlls. In one of the classes in my dll file I use ConfigurationManager.OpenExeConfiguration to read settings that declare in the main exe fil[详细]
2023-04-04 23:49 分类:问答How to programmatically change an endpoint's identity configuration?
I am trying to create a tool to modify my service\'s app.config file programmatically. The code is something like this,[详细]
2023-04-04 19:13 分类:问答using Environment variables to set enterpriseLibrary filepath
I want to set the enterprise library(3.1) path to use Environment variables something like <add name=\"ExternalEntLibConfig\" type=\"Microsoft.Practices.EnterpriseLibrary.Common.Configuration.File[详细]
2023-04-04 17:33 分类:问答How do you configure a WCF client in production?
There are numerous resources available on WCF and configuration (both programmatic and via app.config).However, I have not seen a good resource on practical management of this configuration, particula[详细]
2023-04-04 04:10 分类:问答Shared configuration between an .exe and a .dll
I\'m trying to work with a settings.settings f开发者_JS百科ile in my project.There are values that need to be shared between the .exe file and various DLLs.I\'d rather not just pass these values aroun[详细]
2023-04-03 19:23 分类:问答Is ConfigurationManage -> section.SectionInformation.ProtectSection() machine dependent?
in the code Configuration config = ConfigurationManager.OpenExeConfiguration (Application.ExecutablePath);[详细]
2023-04-03 14:49 分类:问答Error when using service: "Could not find default endpoint element that references contract"
I\'m trying to switch my WCF service from TCP bindings to HTTP bindings by modifying app.config, but when I try consuming the WCF service from a test console application, I get this error:[详细]
2023-04-03 08:31 分类:问答NHibernate - Unrecognized configuration section hibernate-configuration
I have the following configuration file in a application console: <?xml version=\"1.0\"?> <configuration>[详细]
2023-04-03 02:05 分类:问答VS 2010: <system.web><compilation debug="false" /></system.web> for non-web-apps?
In web apps, there are these nodes and attributes: <system.web> <compilation debug=\"false\" />[详细]
2023-04-01 22:29 分类:问答WCF config files - and the famous "string content length quota (8192)" error
Folks, Thanks for your help with my previous WCF config file issue.Here\'s a new one. My project is a WinForms app client (.NET 4.0) that pulls data from (and saves it to) a WCF services hosted on I[详细]
2023-04-01 11:16 分类:问答