Our product is a website in IIS and the site uses windows authentication. Our code uses GetObject("IIS://localhost/W3SVC") to get the IIS admin object to check some IIS settings. We often use a user in administrators group to run the feature. It works in most of our customer's environment but failed to create the IIS admin object in one of our customer's environment. The exception is: Cannot create ActiveX component.
For this customer, I wrote a console application which use the same code. I ran it using the same admin user and it can be executed without error.
I guess there may be some IIS or OS settings that makes GetObject failed when it is running in IIS thread.
Can anyone help?