Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

IIS default web site asp page permission problem

287 views
Skip to first unread message

Z.K.

unread,
Jul 24, 2009, 3:12:03 PM7/24/09
to
I just set up IIS in Windows XP Pro, but I keep getting the error below
when going to the localhost site.

HTTP 500.100 - Internal Server Error - ASP error
Internet Information Services

Error Type:
Microsoft VBScript runtime (0x800A0046)
Permission denied: 'GetObject'
/localstart.asp, line 40

Page:
GET /localstart.asp


I have looked at localstart.asp and determined by commenting out that
line 40 which is:

Set oDefSite = GetObject(sPath)

is the problem. Somehow I do not have permission using the GetObject()
subroutine. Every other subroutine in the file works just fine. How do
I change permissions in IIS to get permission to use GetObject()?

Z.K.

Paul Baker [MVP, Windows Desktop Experience]

unread,
Jul 24, 2009, 3:47:18 PM7/24/09
to
This KB article looks like it will probably answer your question. The line
number is different, but it may be that it's a different version for which
it still applies in general.

Permission Denied Error on Local Default Web Page
http://support.microsoft.com/kb/251361

I have seen this myself. I looked at the ProgID of the object it was trying
to create, and remembered being unsuprised. However, I do not recall what
that ProgID was. What do you have on line 40?

Paul

"Z.K." <nos...@nospam.net> wrote in message
news:OzYMQLJD...@TK2MSFTNGP05.phx.gbl...

Z.K.

unread,
Jul 24, 2009, 5:29:07 PM7/24/09
to
37 ' Using ADSI, get the list of default documents for this Web site.
38
39 sPath = "IIS://" & sServername & "/W3SVC/" & sServerinst
40 Set oDefSite = GetObject(sPath)
41 sDefDoc = LCase(oDefSite.DefaultDoc)
42 aDefDocs = split(sDefDoc, ",")

-------------------------------------------------------

Paul Baker [MVP, Windows Desktop Experience]

unread,
Jul 27, 2009, 3:56:01 PM7/27/09
to
Hmm, that sounds like an administrator kind of a thing to do. So if the
authentication is anonymous or if you are authenticating as a user who is
not an administrator, this is not suprising.

You don't need to be concerned about it. In fact, I would just delete
localstart.asp.

You only need to be concerned if you add pages of your own that don't work
as you intended.

Paul

"Z.K." <nos...@nospam.net> wrote in message

news:%235tR2XK...@TK2MSFTNGP04.phx.gbl...

Z.K.

unread,
Jul 27, 2009, 6:51:22 PM7/27/09
to
Ok, thanks.


Z.K.

Z.K.

unread,
Aug 4, 2009, 5:38:21 PM8/4/09
to

Thanks I managed to get everything working now. I just uncomment the
two lines about GetObject.

Paul Baker [MVP, Windows Desktop Experience]

unread,
Aug 6, 2009, 10:34:13 AM8/6/09
to
ZK,

I am curious. Why do you even want a /localstart.asp page? It's just a "site
under construction" kind of page shown only to those on the local host for
people who don't know what to do.

Paul

0 new messages