Hello ,
I am using AppCmd
appcmd set config "Default Web Site/Test/App1" -section:system.webServer/security/authentication/anonymousAuthentication /enabled:"True" /commit:apphost
to enable anonymous authentication for that particular application. This is being called through a Custom Action in my installer. It works fine if i run my installer using GUI method. But when run using commandline/silently it gives me below error:
CustomAction APPHOST_ANONYMOUSAUTH returned actual error code 1168 (note this may not be 100% accurate if translation happened inside sandbox)
MSI (s) (58:24) [15:43:39:389]: Product: -- Error 1722. There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor. Action APPHOST_ANONYMOUSAUTH,
location: C:\Windows\SysWOW64\, command: inetsrv\appcmd set config "Default Web Site/Test/App1" -section:system.webServer/security/authentication/anonymousAuthentication /enabled:"True" /commit:apphost
Could someone please help out?
I already checked the website name, its Default Web Site. Also checked the WWW and WAS services, looks good.