using (TrimImpersonationScope impersonate = new TrimImpersonationScope())
{
try
{
this.Token = impersonate.BeginImpersonationAdmin();
_db = new Database();
_db.WebServerWorkPath = _serverWorkPath;
_db.SetAsWebService();
_db.WorkgroupServerPort = _port;
_db.Id = _dbid;
_db.WorkgroupServerName = _svrname;
if (TrimImpersonationScope.ImpersonationEnum == TrimImpersonationEnum.ConnectUsingUserNamePassword)
_db.ConnectAs(this.Token, TrimImpersonationScope.Password);
else
_db.Connect();
}
}
the below error occuring the connect trim seever. corecreatemutexaccesiblebyeveryone: create/openmutex failed. the system cannot find the file specified. (0x00000002). - access is denied. (0x00000005). - the system cannot find the file specified. (0x00000002).
User contributions licensed under CC BY-SA 3.0