Windows Server 2008 R2 Standard 64
I am using the Microsoft IIS Examples, which makes me think its a server config error. I get the error when calling either GetUsers or CreateUser.
public
static bool CreateUser(string userName, string password)
{
try
{
ManagementUserInfo info=ManagementAuthentication.CreateUser(userName, password);
if (info != null)
return true;
else
return false;
}
catch (Exception ex)
{
throw new HostingManagementException(ex.Message, ex);
}
}
EDIT: The administration.config on my local machine does NOT have the system.webServer/management/authentication tags, yet works fine. The administration.config on the remote test server DOES have these tags, but does not work - and complains the config section cannot be read because it is missing a section delcaration..??
When I try to remove these tags from the remote .config, I get an Internal Server Error 500 message, and it won't even load up.