Search

You searched for the word(s): userid:695233

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 »