Click here to Skip to main content
15,915,864 members
Home / Discussions / C#
   

C#

 
AnswerRe: Unzip files Pin
Luc Pattyn30-Dec-06 2:23
sitebuilderLuc Pattyn30-Dec-06 2:23 
QuestionAlternate control for DSO Framer in .net Pin
indian14329-Dec-06 19:38
indian14329-Dec-06 19:38 
QuestionNewbie struggling with calling other methods Pin
JHR129-Dec-06 17:43
JHR129-Dec-06 17:43 
AnswerRe: Newbie struggling with calling other methods Pin
Luc Pattyn29-Dec-06 18:46
sitebuilderLuc Pattyn29-Dec-06 18:46 
AnswerRe: Newbie struggling with calling other methods Pin
Luc Pattyn30-Dec-06 2:42
sitebuilderLuc Pattyn30-Dec-06 2:42 
AnswerMain is a static method Pin
Ennis Ray Lynch, Jr.30-Dec-06 17:48
Ennis Ray Lynch, Jr.30-Dec-06 17:48 
GeneralRe: Main is a static method Pin
JHR12-Jan-07 6:13
JHR12-Jan-07 6:13 
QuestionFailed to edit web.config [modified] Pin
Johny Ng29-Dec-06 14:15
Johny Ng29-Dec-06 14:15 
Hello,

My question may be very dumb Frown | :-( but I couldn't change my web.config using the the following code:

XmlDocument doc = new XmlDocument();
doc.XmlResolver = null;
doc.Load(@"C:\Web.config");
XmlNode node = doc.SelectSingleNode("/configuration/appSettings");
I don't know why it always returns null.
Do you know what I stupidly did wrong?

Thanks,
Johnny

Here is my file

<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<appSettings>
<add key="AuthorizationContext" value="Office" />
</appSettings>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="false">
<assemblies>
<add assembly="System.Transactions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Management, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.DirectoryServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
</assemblies>
</compilation>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="abc" />
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.

<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
<!-- Increase the timeout to 2 hours. -->
<httpRuntime executionTimeout="7200" />
<webServices>
<protocols>
<add name="AnyHttpSoap" />
<remove name="HttpGet" />
<remove name="HttpPost" />
<remove name="HttpPostLocalhost" />
<remove name="Unknown" />
</protocols>
<soapExtensionTypes>
</soapExtensionTypes>
</webServices>
</system.web>
</configuration>



-- modified at 20:25 Friday 29th December, 2006
AnswerRe: Failed to edit web.config Pin
Mircea Puiu29-Dec-06 23:11
Mircea Puiu29-Dec-06 23:11 
QuestionBin to Dec & Dec to Bin Pin
CodeItWell29-Dec-06 11:20
CodeItWell29-Dec-06 11:20 
AnswerRe: Bin to Dec & Dec to Bin Pin
Paul Conrad29-Dec-06 14:08
professionalPaul Conrad29-Dec-06 14:08 
GeneralRe: Bin to Dec & Dec to Bin Pin
CodeItWell29-Dec-06 22:27
CodeItWell29-Dec-06 22:27 
GeneralRe: Bin to Dec & Dec to Bin Pin
Luc Pattyn30-Dec-06 2:26
sitebuilderLuc Pattyn30-Dec-06 2:26 
GeneralRe: Bin to Dec & Dec to Bin Pin
CodeItWell30-Dec-06 3:27
CodeItWell30-Dec-06 3:27 
GeneralRe: Bin to Dec &amp; Dec to Bin Pin
User 665830-Dec-06 3:41
User 665830-Dec-06 3:41 
GeneralRe: Bin to Dec & Dec to Bin Pin
Paul Conrad30-Dec-06 5:44
professionalPaul Conrad30-Dec-06 5:44 
AnswerRe: Bin to Dec & Dec to Bin Pin
Martin#24-Jan-07 10:40
Martin#24-Jan-07 10:40 
QuestionForcing a C# form Datagrid to repaint Pin
Vernware29-Dec-06 9:43
Vernware29-Dec-06 9:43 
AnswerRe: Forcing a C# form Datagrid to repaint Pin
axos8830-Dec-06 1:04
axos8830-Dec-06 1:04 
GeneralRe: Forcing a C# form Datagrid to repaint Pin
Vernware30-Dec-06 4:22
Vernware30-Dec-06 4:22 
Questionassigning location of object Pin
dsl/fahk29-Dec-06 9:39
dsl/fahk29-Dec-06 9:39 
AnswerRe: assigning location of object Pin
Colin Angus Mackay29-Dec-06 9:44
Colin Angus Mackay29-Dec-06 9:44 
Question"Background Printing" Pin
Beringer29-Dec-06 9:12
Beringer29-Dec-06 9:12 
AnswerRe: "Background Printing" Pin
Mircea Puiu29-Dec-06 23:16
Mircea Puiu29-Dec-06 23:16 
QuestionForeach loop Pin
JMichael246829-Dec-06 7:15
JMichael246829-Dec-06 7:15 

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.