473,397 Members | 2,068 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

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 4120
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.DirectoryServices:
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.com...
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.DirectoryServices:
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
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
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. ...
5
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...
2
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...
3
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...
8
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...
3
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....
1
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...
5
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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,...
0
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...

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.