我正在执行代码(正常创建bitvise ssh server -user)(无需以管理员身份运行Visual Studio),然后给出Retrieving the COM class factory for component with CLSID {730D6BA1-01B1-5074-7182-990EF773DB5F} failed due to the following error: 80080005 Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE)).
之类的错误
虽然打开应用程序使用运行管理员视觉工作室然后它的工作,请告知我如何设置此设置运行此代码而不以管理员视觉工作室运行。,下面是我的代码片段。
using BssCfg726Lib;
try
{
var cfg = new CBssCfg726("BssCfg726.BssCfg726");
cfg.SetSite("Bitvise SSH Server");
cfg.LockServerSettings();
cfg.LoadServerSettings();
cfg.settings.access.winAccountsEx.@new.winDomain = "Domain_Name_from_SCI_DEPOLYE1";
cfg.settings.access.winAccountsEx.@new.winAccount = "Domain_Name_from_SCI_DEPOLYE1";
cfg.settings.access.winAccountsEx.@new.loginAllowed = cfg.DefaultYesNo.yes;
cfg.settings.access.winAccountsEx.@new.xfer.mountPointsEx.Clear();
cfg.settings.access.winAccountsEx.@new.xfer.mountPointsEx.@new.realRootPath = "C:\\Sftp\\User";
cfg.settings.access.winAccountsEx.@new.xfer.mountPointsEx.NewCommit();
cfg.settings.access.winAccountsEx.NewCommit();
cfg.UnlockServerSettings();
cfg.SaveServerSettings();
}
catch (Exception ex)
{
throw ex;
}