我有一個「嵌入」到C#應用程序中的MSPL腳本。直接在前端運行MSPL腳本可以正常工作,但部署過程相當複雜和冗長。當我嘗試用C#應用程序相同的前端,我總是得到下面的異常Lync MSPL應用程序不可信
申請未授權
內部異常:隊列無法創建。
這是我的代碼:
// Handler for MSPL Callbacks
LyncSIPHandler serverApplication = new LyncSIPHandler();
// Load the app manifest from a file.
ApplicationManifest manifest = ApplicationManifest.CreateFromFile("msplscript.am");
try {
manifest.Compile();
Util.Log(manifest.ApplicationUri);
}
catch (CompilerErrorException ex) {
Util.Log("#2 MSPL Compile: " + ex.Message);
}
ServerAgent agent = null;
try {
agent = new ServerAgent(serverApplication, manifest);
}
catch (Exception ex) {
Util.Log("#3 " + ex.Message);
}
當我嘗試與編譯腳本創建ServerAgent
拋出異常。 日誌#1(manifest.ApplicationUri)的輸出是[...URL...]/LyncToolApp
。當我在服務器上運行Get-CSServerApplication
(2013的Lync)我得到以下輸出
Identity : Service:Registrar:[...server...]/LyncToolApp
Priority : 6
Uri : [...url...]/LyncToolApp
Name : LyncToolApp
Enabled : True
Critical : False
ScriptName :
Script :
我有什麼遺漏,使應用程序運行?
注:我以下this MSPL Tutorial。
以管理員身份運行絕對不應該被要求。我在普通服務帳戶上運行多個MSPL服務器應用程序。 – 2014-10-30 08:41:29
它似乎是阻止應用程序工作的唯一因素。也許「管理員」帳戶有一些權限或「管理員」帳戶沒有的組。 – Kirschi 2014-10-30 13:05:38