Comments
Sort by recent activity
gtrevor wrote:
I'm having all sorts of issues trying to connect to a server on a Trial instance of SQL Monitor.
I've tried numerous configurations of accounts for the Host Machine and SQL Server instance credentials.
Currently I have it set to the default for the Host Machine (eg: NT AUTHORITYSYSTEM) and am using SQL Server credentials for the SQL server.
I'm getting the following warning in the logs and nothing else. Can I lower the log level to debug? Where is that possible
2017-02-13 03:34:42,370 [ 68] WARN RedGate.Response.Common.Utilities.UserAccountHelper - Error asking Active Directory for current user's principal name
System.InvalidCastException: Unable to cast object of type 'System.DirectoryServices.AccountManagement.GroupPrincipal' to type 'System.DirectoryServices.AccountManagement.UserPrincipal'.
at System.DirectoryServices.AccountManagement.UserPrincipal.FindByIdentity(PrincipalContext context, IdentityType identityType, String identityValue)
at System.DirectoryServices.AccountManagement.UserPrincipal.get_Current()
at RedGate.Response.Common.Utilities.UserAccountHelper.GetUsername()System.InvalidCastException: Unable to cast object of type 'System.DirectoryServices.AccountManagement.GroupPrincipal' to type 'System.DirectoryServices.AccountManagement.UserPrincipal'.
at System.DirectoryServices.AccountManagement.UserPrincipal.FindByIdentity(PrincipalContext context, IdentityType identityType, String identityValue)
at System.DirectoryServices.AccountManagement.UserPrincipal.get_Current()
at RedGate.Response.Common.Utilities.UserAccountHelper.GetUsername()
I have exactly the same issue. Have you found any solution?
I've searched on other forums but couldn't find anything. / comments
gtrevor wrote:
I'm having all sorts of issues trying to connect to a server on a Trial instance of SQL Monitor.
I've tried numerous configurations of accounts for the Host Machine and SQL Server...