Programminf for ASP.NET

S

Steve

Is there a way to progammatically detect if ASP.NET is installed? Also is
there a way to programmatically detect if ASP.NET Web Services Extensions are
'Allowed' vs 'Prohibited'?

Thanks in advance.
 
D

Dan Rogers

Hi Steve,

On the server, you can look to see if ASP.net is installed, yes. This can
be done by looking for the correct registry keys are set up. This is how
the IIS installer determines whether ASP.net is present. Offhand, I don't
have the details for this. You can also think about methods involving
looking to see if a .NET CLR runtime is installed (if not, then you know
ASP.net is not going to work).

As for detecting the configuration settings for web service extensions, you
should look into the structure of the machine.config file - this is
documented on MSDN. This holds the policy statements governing web service
extensions. For the most part, the default is that they are enabled, but
require attribution in the code or entries in the config file(s) to make
specific web service extensions active. Writing a program that finds out
if any WSE are present anywhere would take knowlege of all of the
applications on the machine, and a scan of the config files that are nested
from each application on into the machine config file. I know of no
implementation of such a tool.

I hope this helps

Dan Rogers
Microsoft Corporation
--------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top