Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:695233
More Search Options
RSS Available
Matching Posts
Re: (Writing to Web.config file dynamically
I'm sorry you still have one more thing to do, add //ns: before NodeLocation on that previous line, so you'll have: NodeLocationDim appSettingsNode As XmlNode = xmlDoc.SelectSingleNode( "//ns:" + NodeLocation, XmlNamespaceManager) appSettingsNode = appSettingsNode.FirstChild I tried your code with this and it worked.
Posted to
Configuration and Deployment
(Forum)
by
hannous
on 7/2/2008
Re: (Writing to Web.config file dynamically
Your problem is that the node "configuration/appSettings" is not being recognized because of the namespace. What you need to do is first go the node "configuration" then go to "appSettings". To do so, set the NodeLocation first to "configuration" (without /appSettings), then, after this line: Dim appSettingsNode As XmlNode = xmlDoc.SelectSingleNode(NodeLocation, XmlNamespaceManager) try: appSettingsNode = appSettingsNode.FirstChild Then keep the rest of the
Posted to
Configuration and Deployment
(Forum)
by
hannous
on 6/30/2008
Re: (Writing to Web.config file dynamically
Hi, No that's not the problem. Actually I forgot to tell you that you should add NameSpaceManager to SelectSingleNode, therefore changing: Dim appSettingsNode As XmlNode = xmlDoc.SelectSingleNode(NodeLocation) to: Dim appSettingsNode As XmlNode = xmlDoc.SelectSingleNode(NodeLocation, XmlNamespaceManager)
Posted to
Configuration and Deployment
(Forum)
by
hannous
on 6/27/2008
Re: (Writing to Web.config file dynamically
To care for the namespace, add the following: After: xmlDoc.Load(FileLocation) Add: Dim XmlNamespaceManager As System.Xml.XmlNamespaceManager = New System.Xml.XmlNamespaceManager(xmlDoc.NameTable) XmlNamespaceManager.AddNamespace( "ns" , "http://schemas.microsoft.com/.NetConfiguration/v2.0" )
Posted to
Configuration and Deployment
(Forum)
by
hannous
on 6/25/2008
Re: FIX - DataSet Error "Could not find a non generic method"
I would not call this a bug in Visual Studio as much as something misleading. I found the following to be the neatest way to fix the problem while keeping everything else logical. That means I did not add a meaningless parameter (that will not be used) to my update method nor change the ReadOnly property of the Id to False. I kept my function as it is. [ex. public bool UpdateText(string text, int id)] and I went to the ObjectDataSource's UpdateParameters collection and removed the Id parameter
Posted to
Tips & Tricks
(Forum)
by
hannous
on 5/11/2008
Filed under: non-generic method that has parameters, OldValuesParameterFormatString
Re: (Writing to Web.config file dynamically
Are you sure you have write access to that path?
Posted to
Configuration and Deployment
(Forum)
by
hannous
on 9/18/2007
Re: how to get list of processes running on remote machine?
I have the same problem. Any help would be appreciated. My machine is on a LAN. On some remote machines I get this exception and on others not. Exception Details: "System.InvalidOperationException: Couldn't connect to remote machine. ---> System.InvalidOperationException: Couldn't get process information from performance counter. ---> System.ComponentModel.Win32Exception: Access is denied at System.Diagnostics.PerformanceMonitor.Init() at System.Diagnostics.PerformanceMonitor.
Posted to
Free For All
(Forum)
by
hannous
on 9/17/2007
Filed under: GetProcessesByName, .NET processes on remote machine
Re: How to create an IIS application from a folder. (Orca?)
I have found a useful function at http://www.vbforums.com/showthread.php?t=347207 that I can base my code on and use as a custom action DLL with my web setup project. Thanks.
Posted to
Configuration and Deployment
(Forum)
by
hannous
on 4/26/2007
How to create an IIS application from a folder. (Orca?)
The issue I am facing is that I have one directory in my web application that I need to make as a stand-alone application for security reasons (it controls Windows services and reads process information). This can be done manually by opening IIS, browsing to the application directory and going to the properties then clicking create application (then going to directory security to change authentication settings). I am looking for a way to make the MSI installer do that automatically, like it creates
Posted to
Configuration and Deployment
(Forum)
by
hannous
on 4/26/2007
Filed under: Orca, IIS application
Re: Web.Config Authentication
I haven't used VS 2003 but never saw an <authentication> section in VS 2005. What did it do?
Posted to
Configuration and Deployment
(Forum)
by
hannous
on 4/26/2007
Page 1 of 6 (56 items) 1
2
3
4
5
Next >
...
Last »
TechNet Edge:
DNS Security (DNSSec) Overview
Silverlight:
Silverlight 4 demos from my PDC Keynote now available
Channel 9:
Channel 9 Live at PDC09: Dave Campbell
Channel 9:
Channel 9 Live at PDC09: Yousef Khalidi
Channel 9:
Twitter App for Zune Launches
WindowsClient:
Incarnate
WindowsClient:
Track Fedex packages with Bing
Channel 9:
Marty O'Donnell - The man behind the Halo Music
Channel 10:
Twitter App for Zune Launches
WindowsClient:
Rotate your text in the WPF DataGrid Column Headers
WindowsClient:
New gameplay video with D&D on Surface
WindowsClient:
ViewModel Pattern and Speech as UI. Help me Obi Wan, where’s the View?
Channel 9:
Karsten Januszewski and Tim Aidlin: Introducing Incarnate
Channel 9:
Reactive Extensions API in depth: Retry
Channel 10:
iBing uBing: Bing iPhone App Arrives
WindowsClient:
Migrating an Outlook Client to .NET Framework 4 in Visual Studio 2010
Channel 10:
A Look Behind Mouse 2.0
WindowsClient:
Using Speech Synthesis in .NET 4 and Windows 7
Channel 10:
Office 2010 "5 Rules" Presentation
Channel 10:
30% off Expression Web 3 until Dec 28th
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online