Click here to Skip to main content
15,899,313 members
Home / Discussions / XML / XSL
   

XML / XSL

 
AnswerRe: looping in Xml nodes in C# [modified] Pin
George L. Jackson21-Jun-07 12:26
George L. Jackson21-Jun-07 12:26 
AnswerRe: looping in Xml nodes in C# Pin
George L. Jackson21-Jun-07 14:00
George L. Jackson21-Jun-07 14:00 
Questionencoded image into excel xml file using xsl Pin
ksrs19-Jun-07 3:54
ksrs19-Jun-07 3:54 
AnswerRe: encoded image into excel xml file using xsl Pin
George L. Jackson21-Jun-07 12:35
George L. Jackson21-Jun-07 12:35 
QuestionRe: encoded image into excel xml file using xsl Pin
ksrs21-Jun-07 13:27
ksrs21-Jun-07 13:27 
AnswerRe: encoded image into excel xml file using xsl Pin
George L. Jackson21-Jun-07 13:42
George L. Jackson21-Jun-07 13:42 
GeneralRe: encoded image into excel xml file using xsl Pin
ksrs22-Jun-07 15:55
ksrs22-Jun-07 15:55 
QuestionXML in app.config file in VB 2005 Pin
steve_rm19-Jun-07 3:03
steve_rm19-Jun-07 3:03 
Hello,

I am developing a VB .Net 2005 project.

I have a problem, i have a app.config file which I have entered connection strings and other setting from the project properties tab. This has automatically generated the app.config file for me.

I have edited the app.config myself and entered a new section which I did manually. However, now that I have done this the existing code in the app.config doesn't work.

Summary: If I add my own manually entered config sections with what has been automatically generated. But parts don't work.

If I just add my own manually entered and commit out the rest my own manually works fine.

It doesn't work with both. I was thinking of adding a new app.config file, which has the default name of app1.config.

But I am sure how I would reference each one when the program runs.

The config file is below, my manual section is the appUpdater, at the bottom.

Is there a way that I can include my own manual entered sections?
<code>
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="CodeRed.My.MySettings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup>
</configSections>

<connectionStrings>
<add name="CodeRed.My.MySettings.ServiceMasterConnectionString"
connectionString="Data Source=dev01;Initial Catalog=ServiceMaster;Integrated Security=True"
providerName="System.Data.SqlClient" />
</connectionStrings>

<system.diagnostics>
<sources>
<!-- This section defines the logging configuration for My.Application.Log -->
<source name="DefaultSource" switchName="DefaultSwitch">
<listeners>
<add name="FileLog"/>
<!-- Uncomment the below section to write to the Application Event Log -->
<!--<add name="EventLog"/>-->
</listeners>
</source>
</sources>
<switches>
<add name="DefaultSwitch" value="Information" />
</switches>
<sharedListeners>
<add name="FileLog"
type="Microsoft.VisualBasic.Logging.FileLogTraceListener, Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"
initializeData="FileLogWriter"/>
<!-- Uncomment the below section and replace APPLICATION_NAME with the name of your application to write to the Application Event Log -->
<!--<add name="EventLog" type="System.Diagnostics.EventLogTraceListener" initializeData="APPLICATION_NAME"/> -->
</sharedListeners>
</system.diagnostics>


<applicationSettings>
<CodeRed.Mail>
<setting name="MailSetting" serializeAs="String">
<value>MAPI</value>
</setting>
</CodeRed.Mail>
</applicationSettings>
<userSettings>
<CodeRed.My.MySettings>
<setting name="MailSetup" serializeAs="String">
<value />
</setting>
</CodeRed.My.MySettings>
</userSettings>


<!-- My manaul settings -->
<configSections>
<section name="appUpdater"
type="Microsoft.ApplicationBlocks.ApplicationUpdater.UpdaterSectionHandler,Microsoft.ApplicationBlocks.ApplicationUpdater" />
</configSections>


<appUpdater>
<UpdaterConfiguration>
<polling type="Seconds" value="120" />

<logListener logPath="G:\Reality Solutions Projects\CodeRed Application\CodeRed\UpdaterLog.txt" />

<downloader
type="Microsoft.ApplicationBlocks.ApplicationUpdater.Downloaders.BITSDownloader"
assembly="Microsoft.ApplicationBlocks.ApplicationUpdater,Version=1.0.0.0,Culture=neutral,PublicKeyToken=null"/>

<validator
type="Microsoft.ApplicationBlocks.ApplicationUpdater.Validators.RSAValidator"
assembly="Microsoft.ApplicationBlocks.ApplicationUpdater,Version=1.0.0.0,Culture=neutral,PublicKeyToken=null">
<key>
<RSAKeyValue>
<Modulus>4+xKqMoUfQDi+6ckQGHdPgW/QFPxR27VbRldQqAeftE1Xzbb5sOFdehaUF98oAisifDtn8D/UJ1WwK0wpOPLYtxyU2Nzsn6eOSJ12hnGVzgxq64F+Lz3tcMF4ji1RE8EWD8pn1yVGHjoowW2dKmlcumv1r7/vW7ZlhiEOrBL/AU=</Modulus>
<Exponent>AQAB</Exponent>
</RSAKeyValue>
</key>
</validator>

<application
name="CodeRed"
useValidation="true">
<client>
<baseDir>G:\Reality Solutions Projects\CodeRed Application\CodeRed</baseDir>
<xmlFile>G:\Reality Solutions Projects\CodeRed Application\CodeRed\AppStart.exe.config</xmlFile>
<tempDir>G:\Reality Solutions Projects\CodeRed Application\CodeRed\newFiles</tempDir>
</client>

<server>
<xmlFile>http://localhost/ServerNorthUpdater/Manifest.xml</xmlFile>
<xmlFileDest>G:\NorthUpdater\Manifest.xml</xmlFileDest>
<maxWaitXmlFile>60000</maxWaitXmlFile>
</server>
</application>
</UpdaterConfiguration>
</appUpdater>
</configuration>
</code>
AnswerRe: XML in app.config file in VB 2005 Pin
George L. Jackson21-Jun-07 12:55
George L. Jackson21-Jun-07 12:55 
QuestionXml Schema question Pin
Jamie Nordmeyer18-Jun-07 13:05
Jamie Nordmeyer18-Jun-07 13:05 
AnswerRe: Xml Schema question Pin
George L. Jackson20-Jun-07 12:46
George L. Jackson20-Jun-07 12:46 
GeneralRe: Xml Schema question Pin
Jamie Nordmeyer20-Jun-07 12:56
Jamie Nordmeyer20-Jun-07 12:56 
AnswerRe: xml data source used for navigation. [modified] Pin
S Douglas16-Jun-07 22:14
professionalS Douglas16-Jun-07 22:14 
QuestionCalculating DigestValue for SignedInfo Pin
Andy H16-Jun-07 0:36
Andy H16-Jun-07 0:36 
Questionxml data source used for navigation. Pin
newbie1234567891015-Jun-07 3:58
newbie1234567891015-Jun-07 3:58 
AnswerRe: xml data source used for navigation. Pin
Stefan Troschuetz15-Jun-07 21:59
Stefan Troschuetz15-Jun-07 21:59 
Questionspecial character are coming while generating a XML File. Pin
saymajum14-Jun-07 17:12
saymajum14-Jun-07 17:12 
AnswerRe: special character are coming while generating a XML File. Pin
Stefan Troschuetz15-Jun-07 3:04
Stefan Troschuetz15-Jun-07 3:04 
Questionhow to attach database object to textwriter Pin
ksrs13-Jun-07 8:07
ksrs13-Jun-07 8:07 
QuestionRe: how to attach database object to textwriter Pin
Brendan Vogt21-Jun-07 17:41
Brendan Vogt21-Jun-07 17:41 
AnswerRe: how to attach database object to textwriter Pin
ksrs22-Jun-07 15:52
ksrs22-Jun-07 15:52 
QuestionIs there anything wrong in this statement [modified] Pin
saymajum13-Jun-07 7:55
saymajum13-Jun-07 7:55 
AnswerRe: Is there anything wrong in this statement Pin
Stefan Troschuetz13-Jun-07 10:29
Stefan Troschuetz13-Jun-07 10:29 
AnswerRe: Is there anything wrong in this statement Pin
Christian Graus15-Jun-07 17:50
protectorChristian Graus15-Jun-07 17:50 
AnswerRe: Is there anything wrong in this statement Pin
BoneSoft19-Jun-07 8:39
BoneSoft19-Jun-07 8:39 

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.