Click here to Skip to main content
15,904,817 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Discover private key with value and hashed value? Pin
Dave Kreskowiak8-Apr-08 7:11
mveDave Kreskowiak8-Apr-08 7:11 
GeneralRe: Discover private key with value and hashed value? Pin
Mark J. Miller8-Apr-08 7:17
Mark J. Miller8-Apr-08 7:17 
GeneralRe: Discover private key with value and hashed value? Pin
Dave Kreskowiak8-Apr-08 8:10
mveDave Kreskowiak8-Apr-08 8:10 
GeneralRe: Discover private key with value and hashed value? Pin
Mark J. Miller8-Apr-08 8:18
Mark J. Miller8-Apr-08 8:18 
GeneralRe: Discover private key with value and hashed value? Pin
Mark Churchill10-Apr-08 20:00
Mark Churchill10-Apr-08 20:00 
QuestionIs there a easy Forum creator that can be easily integrated into a .NET environment? Pin
humblepgmr8-Apr-08 3:54
humblepgmr8-Apr-08 3:54 
AnswerRe: Is there a easy Forum creator that can be easily integrated into a .NET environment? Pin
Pete O'Hanlon8-Apr-08 4:30
mvePete O'Hanlon8-Apr-08 4:30 
QuestionApp.Config with xi:include Pin
K.L.K7-Apr-08 14:26
K.L.K7-Apr-08 14:26 
Hi,

I have several related applications that all use Apache's log4net logging package. This package can use an XML configuration file to configure options. Furthermore, this configuration file can be embedded into the application's general App.config file by doing the following:

<configuration>
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/>
</configSections>
<log4net>
<!--CONFIGURATION STUFF GOES HERE-->
</log4net>
</configuration>

Now, I don't want to have to copy the log4net.config file contents into each of the App.config files, as it is large and would make things more difficult to maintain.

I found that XML has an XInclude extension (see http://www.w3.org/TR/2003/WD-xinclude-20031110)

If I did my googling right, this means that an XML document can specify the content of another XML document to be embedded within it. Therefore, I could theoretically use XInclude to include the contents of my log4net.config file in each App.config file. Below is my attempt:

<configuration xmlns:xi="http://www.w3.org/2001/XInclude">
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/>
</configSections>
<xi:include href ="log4net.config" parse="xml" />
</configuration>

However, this does not work - when the code is run the log4net configurator very obviously does not find the embedded content.

Does anyone have any suggestions for how to format the xml file to make this work? Is this even possible within .NET framework?

-klk
GeneralRe: App.Config with xi:include Pin
K.L.K7-Apr-08 15:00
K.L.K7-Apr-08 15:00 
GeneralMigrating issue Pin
soniasan7-Apr-08 8:58
soniasan7-Apr-08 8:58 
GeneralRe: Migrating issue Pin
Dave Kreskowiak7-Apr-08 10:17
mveDave Kreskowiak7-Apr-08 10:17 
GeneralRe: Migrating issue Pin
soniasan8-Apr-08 1:09
soniasan8-Apr-08 1:09 
GeneralRe: Migrating issue Pin
Dave Kreskowiak8-Apr-08 1:40
mveDave Kreskowiak8-Apr-08 1:40 
QuestionNon-static method as a thread function....How CLR do that? Pin
Secret_Garden7-Apr-08 4:28
Secret_Garden7-Apr-08 4:28 
AnswerRe: Non-static method as a thread function....How CLR do that? Pin
Mark Salsbery7-Apr-08 5:21
Mark Salsbery7-Apr-08 5:21 
AnswerRe: Non-static method as a thread function....How CLR do that? Pin
Mike Dimmick7-Apr-08 5:28
Mike Dimmick7-Apr-08 5:28 
GeneralRe: Non-static method as a thread function....How CLR do that? Pin
Secret_Garden7-Apr-08 6:02
Secret_Garden7-Apr-08 6:02 
QuestionIntegration with IPLANET throw LDAP Pin
arajeh7-Apr-08 2:12
arajeh7-Apr-08 2:12 
GeneralClickOnce and https Pin
l.m.k7-Apr-08 0:37
l.m.k7-Apr-08 0:37 
AnswerRe: ClickOnce and https Pin
Arjun Marwaha13-Apr-08 19:36
Arjun Marwaha13-Apr-08 19:36 
GeneralConnecting a client and server program using .NET framework but different source code Pin
Kogee San6-Apr-08 14:56
Kogee San6-Apr-08 14:56 
GeneralRe: Connecting a client and server program using .NET framework but different source code Pin
Mark Salsbery6-Apr-08 17:04
Mark Salsbery6-Apr-08 17:04 
GeneralRe: Connecting a client and server program using .NET framework but different source code Pin
Kogee San6-Apr-08 17:26
Kogee San6-Apr-08 17:26 
GeneralRe: Connecting a client and server program using .NET framework but different source code Pin
Mark Salsbery6-Apr-08 17:44
Mark Salsbery6-Apr-08 17:44 
GeneralRe: Connecting a client and server program using .NET framework but different source code Pin
Kogee San6-Apr-08 18:58
Kogee San6-Apr-08 18:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.