Windows Server 2008 R2: ASP queries to IIS fail with UAC enabled

Posted by MisterZimbu on Stack Overflow See other posts from Stack Overflow or by MisterZimbu
Published on 2010-06-18T14:19:34Z Indexed on 2010/06/18 14:23 UTC
Read the original article Hit count: 381

Filed under:
|
|
|
|

I have some ASP code that creates a virtual directory in IIS.

However, when running on IIS7 in Windows Server 2008 R2, the call to GetObject fails with "permission denied". This only occurs when UAC is enabled; the entire process works perfectly if UAC is disabled.

Set objIIS = GetObject("IIS://localhost/W3SVC/" & siteNumber & "/Root")

siteNumber itself is a valid parameter (as the system works fine if UAC is off). Any ideas of a workaround I can make for this? Unfortunately turning off UAC at this point is not an option.

© Stack Overflow or respective owner

Related posts about iis

Related posts about iis7