tags:

views:

26

answers:

0

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.