David
Tue Jul 12 16:11:16 CDT 2005
Only a few user accounts (by default, only privileged accounts like
Administrators, System, and IIS_WPG) are allowed to read/write to IIS
configuration (what you are accessing via GetObject( "IIS://..." ) ).
Permission denied means the user identity which authenticated and is running
the ASP page does not have permissions to access IIS configuration.
You need to state what authentication methods are enabled on that web page
as well as what user identity is actually used to run that web page. Then,
make sure that identity has privilege to read/write IIS configuration. If
you correctly configured IIS, the same code should work on IIS5 and IIS6.
--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"greg" <info@ebsdevelopmentNOSPAM.com> wrote in message
news:%23WQg8KyhFHA.3164@TK2MSFTNGP15.phx.gbl...
Continuation:
still does not work
if I leave only one line it returns:
permission denied: GetObject
!!??? what permission
____ first post with localhost changed to 127.0.0.1 ______________
we have code that inserts host headers
it worked fine on w2k server
But on w2003 it produces error on GetObject
code is
++++++++++++++++++++++++++++++++++++
Dim WebServerObj
Set WebServerObj = GetObject("IIS://127.0.0.1/W3SVC/4")
hosts = WebServerObj.Get("ServerBindings")
..........
++++++++++++++++++++++++++++++++++++++