I'm doing some active directory work with c# and I'm getting this error on my page
System.IO.FileNotFoundException: Could not load file or assembly 'Interop.ActiveDs, Version=1.0.0.0, Culture=neutral, PublicKeyToken=46db4b78e98e1c9d' or one of its dependencies. The system cannot find the file specified.
newRoleGroup.Properties["groupType"].Value = ActiveDs.ADS_GROUP_TYPE_ENUM.ADS_GROUP_TYPE_UNIVERSAL_GROUP;
You'd be far better off not taking the reference to the COM library and instead just declaring the proper constants in your code e.g.:
enum ADS_GROUP_TYPE_ENUM {
public long ADS_GROUP_TYPE_GLOBAL_GROUP = 0x00000002,
public long ADS_GROUP_TYPE_DOMAIN_LOCAL_GROUP = 0x00000004,
public long ADS_GROUP_TYPE_LOCAL_GROUP = 0x00000004,
public long ADS_GROUP_TYPE_UNIVERSAL_GROUP = 0x00000008,
public long ADS_GROUP_TYPE_SECURITY_ENABLED = 0x80000000
}