public void init() { myCore.Logging.log("Extension Server Lib loading ...", 0, myCore.LogType.Information); myCore.Logging.log("Starting log server ...", 1, myCore.LogType.Information); myCore.PipeLoggingServer pl = new myCore.PipeLoggingServer(); myCore.Logging.log("Deploying QARs ...", 1, myCore.LogType.Information); myCore.Logging.log("Connecting to QVS ...", 2, myCore.LogType.Information); try { myQv.QMSClientEnhanced qvClient = myQv.QMSClientFactory.getClient(new Uri("http://localhost")); Guid qvsId = qvClient.GetServices(frqtlib.QMSAPI.ServiceTypes.QlikViewServer)[0].ID; string path = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location); foreach (string fileName in Directory.EnumerateFiles(Path.Combine(path, "Extensions"), "*.QAR")) { myCore.Logging.log("Initiating upload for {0} ...", 2, myCore.LogType.Information, fileName); try { this.deployExtension(qvClient, qvsId, fileName); } catch (System.Exception) { myCore.Logging.log("Unable to deploy {0} ... Retrying ...", 2, myCore.LogType.Error, fileName); try { this.deployExtension(qvClient, qvsId, fileName); } catch (System.Exception e) { myCore.Logging.log("Unable to deploy {0} ... ", 2, myCore.LogType.Error, fileName); throw e; } } } } catch (System.Exception e) { myCore.Logging.log("Unable to connect to local QMS API ... Manually deploy extensions or add current user to QlikView Management Service API group ...", 2, myCore.LogType.Error); } }