コード例 #1
0
        internal static string GetTraceFolderPath()
        {
            string tracePath = RegistryHelper.EvaluateString("TraceDirectory", CrmRegistryPath);

            if (tracePath == null)
            {
                string installPath = RegistryHelper.EvaluateString("CRM_Server_InstallDir", CrmRegistryPath);

                tracePath = Path.Combine(installPath, "Trace");
            }

            return(tracePath);
        }
コード例 #2
0
 /// <summary>
 /// Gets the local or network path for the web.config directory
 /// </summary>
 /// <returns></returns>
 private string GetWebConfigDirectoryPath()
 {
     return(RegistryHelper.EvaluateString("WebSitePath", @"Software\Microsoft\MSCRM"));
 }