473,770 Members | 7,213 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

reading com/iis settings values using c#

Hi,
Is there a way to read Component Services /IIS settings values using c# ? I
am specifically interested in the COM Transaction timeout value and the IIS
connection timeout value. Are these in any Registry keys or config files
that I can read ?

Thanks in advance
Aniket
Nov 16 '05 #1
2 4140
Hi Aniket:

Both IIS and COM+ settings are readable and writable through a set of
COM objects.

For the COM+ catalog these are the COMAdmin objects:
http://msdn.microsoft.com/library/de...admin_4ylj.asp

In Visual Studio you'll want to select Add Reference and go to the COM
tab. Find the COM+ 1.0 Admin Type Library (comadmin.dll).

For IIS you can use classes in System.Director yServices:
http://msdn.microsoft.com/library/de...asp?frame=true

HTH,

--
Scott
http://www.OdeToCode.com

On Mon, 16 Aug 2004 17:24:01 -0400, "Aniket Sule" <as***@meridium .com>
wrote:
Hi,
Is there a way to read Component Services /IIS settings values using c# ? I
am specifically interested in the COM Transaction timeout value and the IIS
connection timeout value. Are these in any Registry keys or config files
that I can read ?

Thanks in advance
Aniket


Nov 16 '05 #2
Thanks. This is what i was looking for

"Scott Allen" <bitmask@[nospam].fred.net> wrote in message
news:lb******** *************** *********@4ax.c om...
Hi Aniket:

Both IIS and COM+ settings are readable and writable through a set of
COM objects.

For the COM+ catalog these are the COMAdmin objects:
http://msdn.microsoft.com/library/de...admin_4ylj.asp
In Visual Studio you'll want to select Add Reference and go to the COM
tab. Find the COM+ 1.0 Admin Type Library (comadmin.dll).

For IIS you can use classes in System.Director yServices:
http://msdn.microsoft.com/library/de...asp?frame=true
HTH,

--
Scott
http://www.OdeToCode.com

On Mon, 16 Aug 2004 17:24:01 -0400, "Aniket Sule" <as***@meridium .com>
wrote:
Hi,
Is there a way to read Component Services /IIS settings values using c# ? Iam specifically interested in the COM Transaction timeout value and the IISconnection timeout value. Are these in any Registry keys or config files
that I can read ?

Thanks in advance
Aniket

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
12750
by: Suresh Kumaran | last post by:
Hi All, Does anybody know the sytax in VB.NET to write the contents of a multiline text box to a text file? Appreciate help. Suresh
5
12950
by: Dhilip Kumar | last post by:
Hi All, I'm writing a Windows Service app using C#. I need to read some configuration settings before the service starts up. These settings will be used by the service in its operation. Question is, which is the best way to store & retrieve the settings? I'm thinking of storing it in the registry in HKLM\Software\ServiceName and access it using the Registry class in the "public ServiceName()" method. I'm instructing the service...
5
8958
by: Scott M. Lyon | last post by:
I've just discovered a bug in some code I wrote a little while ago, and I need you guys' help to fix it. My program imports data from a standard Excel Spreadsheet (just with specific column headers). I used ODBC in my VB.NET program to read that spreadsheet into a dataset, to make it easy to manipulate. The code I use to read it is as the bottom of this posting.
2
20790
by: GS | last post by:
How do I use My.Settings equivalent in C#? Below is part of MSDN documentation about accessing settings file. I wrote C# console application using VS 2005 and .NET 2.0 and would like to use new settings file in 2.0 and can not find any documentation about using c#, there is some for VB.NET. This section contains topics describing the My.Settings object and the tasks it enables you to accomplish.
3
3039
by: Søren M. Olesen | last post by:
Hi I've created a Class library (myClasses.dll), and added a settings.settings to it using designer. However when I use this class library, it doesn't seem to read the settings myClasses.dll.config file, instead I just get then initial values I used when creating the settings.settings section. What do I have to do to get the classlibrary to read the associated .config
8
3517
by: Andrew Robert | last post by:
Hi Everyone. I tried the following to get input into optionparser from either a file or command line. The code below detects the passed file argument and prints the file contents but the individual swithces do not get passed to option parser.
3
1797
by: Aussie Rules | last post by:
Hi, I want to store some data in the registry, however I have not been able to do this, and think my logic maybe flawed. Firstly I try to open the registry and read in any existing values. Dim aKey As RegistryKey aKey = Registry.CurrentUser.OpenSubKey("software\myApplication") I then attempt to read in any existing values
1
2298
by: nitusa | last post by:
Hi All, First time poster, and newbie C# programmer so be patient with my ignorance. :) For my current project I need to store some information (install dir., file names, passwords, ect.) and then have my program access those values. I choose to store the information in an XML file based on a recommendation from a peer. I am also new to XML but my current file setup looks like this: <?xml version="1.0" encoding="utf-8" ?>...
5
92335
by: ShadowLocke | last post by:
This class makes use of System.Collections.Hashtable to enumerate all the settings in an INI file for easy access. Its very simplistic, and completely re-useable. Solid addition for any app that requires a settings file. using System; using System.IO; using System.Collections; public class IniParser { private Hashtable keyPairs = new Hashtable(); private String iniFilePath;
0
9592
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10230
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10004
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8886
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7416
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6678
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5313
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5450
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3972
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.