Re: Create IIS Web Site via ADSI scripting - ISAPI Error
From: David Wang [Msft] (someone_at_online.microsoft.com)
Date: 05/07/04
- Next message: Patrick: "Re: SSL Errors"
- Previous message: David Wang [Msft]: "Re: Cannot read from current IIS 6.0 log"
- In reply to: StephenMcC: "Create IIS Web Site via ADSI scripting - ISAPI Error"
- Next in thread: StephenMcC: "Re: Create IIS Web Site via ADSI scripting - ISAPI Error"
- Reply: StephenMcC: "Re: Create IIS Web Site via ADSI scripting - ISAPI Error"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 7 May 2004 01:41:19 -0700
You did not show the code snippet of how you added the Filter.
Are you saying that when you do all the configuration manually through the
UI that everything works? That is, the application works, the Filter works,
etc. When you try to script the configuration, then nothing works?
The reason why your hand-created filter does not show any status (even when
you've made a request), while when running in IIS5 Isolation mode it shows
priority/status is due to an obscure interaction between the design of the
UI, worker process, and service runtime state over the last 6 years. You
only see this if you hand-create the website in the manner you did -- if you
used the ADSI function CreateWebSite, this would not happen, and that is my
recommended solution to having the filter status show up in the UI in both
IIS6 modes.
As for your claim of "but still the app fails!?" -- I have no idea how you
are customizing server behavior with ISAPI and what "fails" means, so I
really cannot help further. Does the app work when you manually configure
it on IIS6, or does it fail regardless.
--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"StephenMcC" <anonymous@discussions.microsoft.com> wrote in message
news:6DD8915C-EDC5-40F2-A1A2-37E8234B671E@microsoft.com...
Hi All,
I need to create an IIS Web Site but I want to script this and as part of
the scripting process I want to add an ISAPI filter.
When I create the IIS web site manually it all works swimmingly, but when I
script the app it doesn't work.
I have a sinking feeling that the script isn't creating the web site with
the correct properties, ie when creating via the IIS create web site
dialogue, on step 4 (i tink) I set the 'Read, Run and Execute ( ... For
ISAPI dll's ... )' properties.
When I look at the ISAPI filter it has a prority of 'Unknown', which from
what I read is the default until a request is made on the site, but the site
isn't working as the ISAPI dll is used to authenticate access etc. So I'm
knida' fecked!
When I run IIS in 'Run WWW service in IIS 5.0 isolation mode' the ISAPI dll
comes up with a priority of 'High' with a green arrow, but still the app
fails!?
I'm running on 2003 and using ADSI script (.vbs) to create the IIS (6.0)
web. I've droped some sample script below to give u an idea of how i'm doin'
tings!
Has anyone else come across this problem ??
Thanx 2 All,
Stephen.
----
----
Get the IIS:w3svc obj/collection and get an instance for the new web
----
----
Set NewWebServer = w3svc.Create("IIsWebServer", intCount)
NewWebServer.ServerComment = sComment
NewWebServer.ServerBindings = NewBindings
NewWebServer.KeyType = "IIsWebServer"
NewWebServer.AuthAnonymous = True
NewWebServer.AccessRead = True
NewWebServer.AccessExecute = True
NewWebServer.AccessScript = True
NewWebServer.SetInfo
' --------------------------------------------------------------------
' CREATE ROOT DIRECTORY
' now create the root directory object.
' --------------------------------------------------------------------
Set NewDir = NewWebServer.Create("IIsWebVirtualDir", "Root")
NewDir.Path = sRootDir
Call NewDir.AppCreate(True)
NewDir.AppFriendlyName = "Root"
NewDir.KeyType = "IIsWebVirtualDir"
NewDir.AuthAnonymous = True
NewDir.AccessRead = True
NewDir.AccessExecute = True
NewDir.AccessScript = True
NewDir.SetInfo
NewDir.Start
.
- Next message: Patrick: "Re: SSL Errors"
- Previous message: David Wang [Msft]: "Re: Cannot read from current IIS 6.0 log"
- In reply to: StephenMcC: "Create IIS Web Site via ADSI scripting - ISAPI Error"
- Next in thread: StephenMcC: "Re: Create IIS Web Site via ADSI scripting - ISAPI Error"
- Reply: StephenMcC: "Re: Create IIS Web Site via ADSI scripting - ISAPI Error"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|