|
Home > Archive > IIS Server > June 2005 > IIS6.0: programtically determine the status of a web service extension
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
IIS6.0: programtically determine the status of a web service extension
|
|
| laxmikanth 2005-06-27, 7:55 am |
| Hi,
From an application install point of view I am interested to know a
mechanism to programmatcially check if a particular web service extension is
enabled or not on IIS 6.0
I read the following article
http://www.microsoft.com/technet/pr...d/13_s3iis.mspx
but am not quite sure if this is the way to go.
Moreover, when the ASP extension is allowed the registry key value for
iis_asp still reads 0.
thanks.
| |
| Egbert Nierop \(MVP for IIS\) 2005-06-27, 7:55 am |
| "laxmikanth" <alkreddy@hotmail.com> wrote in message
news:O$%23EQVveFHA.1680@TK2MSFTNGP09.phx.gbl...
> Hi,
>
> From an application install point of view I am interested to know a
> mechanism to programmatcially check if a particular web service extension
> is
> enabled or not on IIS 6.0
The setting you refer to is only updated (it seems so) during the
installation of IIS.
To check whether or not a setting is enabled, use the metabase.
InProcessIsapiApps
http://www.microsoft.com/windows200...sp/apro3ppv.htm
and
WebSvcextRestrictionList
http://msdn.microsoft.com/library/e...0fc4dd11f9d.asp
ps: I used search.msn.com to find this info for you.
Dim lWebSvcExtRestrictionList
Set IIsWebServiceObj = GetObject("IIS://localhost/W3SVC")
' Store original value:
lWebSvcExtRestrictionList = IIsWebServiceObj.Get("WebSvcExtRestrictionList")
WScript.Echo "Before: WebSvcExtRestrictionList="
For ValueIndex = 0 To UBound(IIsWebServiceObj.WebSvcExtRestrictionList)
WScript.Echo IIsWebServiceObj.Get("WebSvcExtRestrictionList")(ValueIndex)
Next
' Enable ASP and all ISAPIs:
IIsWebServiceObj.EnableWebServiceExtension "ASP"
IIsWebServiceObj.EnableExtensionFile "*.exe"
IIsWebServiceObj.SetInfo
WScript.Echo "After: WebSvcExtRestrictionList="
IIsWebServiceObj.GetInfo
For ValueIndex = 0 To UBound(IIsWebServiceObj.WebSvcExtRestrictionList)
WScript.Echo IIsWebServiceObj.Get("WebSvcExtRestrictionList")(ValueIndex)
Next
' Restore to original value:
IIsWebServiceObj.Put "WebSvcExtRestrictionList", lWebSvcExtRestrictionList
IIsWebServiceObj.SetInfo
WScript.Echo "Restored: WebSvcExtRestrictionList="
For ValueIndex = 0 To UBound(IIsWebServiceObj.WebSvcExtRestrictionList)
WScript.Echo IIsWebServiceObj.Get("WebSvcExtRestrictionList")(ValueIndex)
Next
--
compatible web farm Session replacement for Asp and Asp.Net
http://www.nieropwebconsult.nl/asp_session_manager.htm
>
> I read the following article
> http://www.microsoft.com/technet/pr...d/13_s3iis.mspx
> but am not quite sure if this is the way to go.
>
> Moreover, when the ASP extension is allowed the registry key value for
> iis_asp still reads 0.
>
> thanks.
>
>
| |
| David Wang [Msft] 2005-06-27, 7:55 am |
| Wrote a blog entry to answer your question:
http://blogs.msdn.com/david.wang/ar...>
e_Status.aspx
--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"laxmikanth" <alkreddy@hotmail.com> wrote in message
news:O$%23EQVveFHA.1680@TK2MSFTNGP09.phx.gbl...
Hi,
From an application install point of view I am interested to know a
mechanism to programmatcially check if a particular web service extension is
enabled or not on IIS 6.0
I read the following article
http://www.microsoft.com/technet/pr...d/13_s3iis.mspx
but am not quite sure if this is the way to go.
Moreover, when the ASP extension is allowed the registry key value for
iis_asp still reads 0.
thanks.
| |
| laxmikanth 2005-06-28, 2:53 am |
| Thanks David
"David Wang [Msft]" <someone@online.microsoft.com> wrote in message
news:elHgh6weFHA.1136@TK2MSFTNGP12.phx.gbl...
> Wrote a blog entry to answer your question:
>
http://blogs.msdn.com/david.wang/ar...>
e_Status.aspx
>
> --
> //David
> IIS
> http://blogs.msdn.com/David.Wang
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> //
> "laxmikanth" <alkreddy@hotmail.com> wrote in message
> news:O$%23EQVveFHA.1680@TK2MSFTNGP09.phx.gbl...
> Hi,
>
> From an application install point of view I am interested to know a
> mechanism to programmatcially check if a particular web service extension
is
> enabled or not on IIS 6.0
>
> I read the following article
>
http://www.microsoft.com/technet/pr...d/13_s3iis.mspx
> but am not quite sure if this is the way to go.
>
> Moreover, when the ASP extension is allowed the registry key value for
> iis_asp still reads 0.
>
> thanks.
>
>
>
>
| |
| laxmikanth 2005-06-28, 2:53 am |
| Thanks Egbert.
that helps!
"Egbert Nierop (MVP for IIS)" <egbert_nierop@nospam.invalid> wrote in
message news:eS4fvaweFHA.3280@TK2MSFTNGP09.phx.gbl...
> "laxmikanth" <alkreddy@hotmail.com> wrote in message
> news:O$%23EQVveFHA.1680@TK2MSFTNGP09.phx.gbl...
extension[vbcol=seagreen]
>
>
> The setting you refer to is only updated (it seems so) during the
> installation of IIS.
> To check whether or not a setting is enabled, use the metabase.
>
> InProcessIsapiApps
> http://www.microsoft.com/windows200...sp/apro3ppv.htm
>
> and
> WebSvcextRestrictionList
>
http://msdn.microsoft.com/library/e...0fc4dd11f9d.asp
>
> ps: I used search.msn.com to find this info for you.
>
> Dim lWebSvcExtRestrictionList
> Set IIsWebServiceObj = GetObject("IIS://localhost/W3SVC")
>
> ' Store original value:
> lWebSvcExtRestrictionList =
IIsWebServiceObj.Get("WebSvcExtRestrictionList")
>
> WScript.Echo "Before: WebSvcExtRestrictionList="
> For ValueIndex = 0 To UBound(IIsWebServiceObj.WebSvcExtRestrictionList)
> WScript.Echo
IIsWebServiceObj.Get("WebSvcExtRestrictionList")(ValueIndex)
> Next
>
> ' Enable ASP and all ISAPIs:
> IIsWebServiceObj.EnableWebServiceExtension "ASP"
> IIsWebServiceObj.EnableExtensionFile "*.exe"
> IIsWebServiceObj.SetInfo
>
> WScript.Echo "After: WebSvcExtRestrictionList="
> IIsWebServiceObj.GetInfo
> For ValueIndex = 0 To UBound(IIsWebServiceObj.WebSvcExtRestrictionList)
> WScript.Echo
IIsWebServiceObj.Get("WebSvcExtRestrictionList")(ValueIndex)
> Next
>
> ' Restore to original value:
> IIsWebServiceObj.Put "WebSvcExtRestrictionList", lWebSvcExtRestrictionList
> IIsWebServiceObj.SetInfo
>
> WScript.Echo "Restored: WebSvcExtRestrictionList="
> For ValueIndex = 0 To UBound(IIsWebServiceObj.WebSvcExtRestrictionList)
> WScript.Echo
IIsWebServiceObj.Get("WebSvcExtRestrictionList")(ValueIndex)
> Next
>
> --
> compatible web farm Session replacement for Asp and Asp.Net
> http://www.nieropwebconsult.nl/asp_session_manager.htm
>
>
>
http://www.microsoft.com/technet/pr...d/13_s3iis.mspx[vbcol=seagreen]
>
|
|
|
|
|