96 references to Tool
ComSvcConfig (96)
ComAdminWrapper.cs (15)
86throw Tool.CreateException(SR.GetString(SR.AmbiguousApplicationName, appidOrName), null); 103throw Tool.CreateException(SR.GetString(SR.ApplicationNotFound, appid.ToString("B")), null); 130throw Tool.CreateException(SR.GetString(SR.ApplicationNotFound, appIdOrName), null); 229throw Tool.CreateException(SR.GetString(SR.CouldNotGetPartition), e); 257throw Tool.CreateException(SR.GetString(SR.FailedToDetermineTheBitnessOfApplication, applicationID), ex); 287throw Tool.CreateException(SR.GetString(SR.FailedToGetRegistryKey, Wcf30RegistryKey, "3.0"), null); 324throw Tool.CreateException(SR.GetString(SR.FailedToCreateTypeLibrary), ex); 387throw Tool.CreateException(SR.GetString(SR.CannotFindServiceInitializerModuleInRegistry), null); 406throw Tool.CreateException(SR.GetString(SR.CouldNotInstallListener), ex); 568throw Tool.CreateException(SR.GetString(SR.CouldNotSetPartition), e); 578throw Tool.CreateException(SR.GetString(SR.ApplicationNotFound, appidOrName), null); 780throw Tool.CreateException(SR.GetString(SR.FailedToGetRuntime, appClrVersion.ToString()), null); 786throw Tool.CreateException(SR.GetString(SR.FailedToGetRuntime, appClrVersion.ToString()), null); 811throw Tool.CreateException(SR.GetString(SR.AmbiguousComponentName, classNameOrGuid), null); 888throw Tool.CreateException(SR.GetString(SR.AmbiguousInterfaceName, interfaceNameOrGuid), null);
ComplusEndpointConfigContainer.cs (12)
51throw Tool.CreateException(SR.GetString(SR.ApplicationDirectoryDoesNotExist, appDir), null); 138if (!Tool.Options.ShowGuids) 156if (!Tool.Options.ShowGuids) 164if (!Tool.Options.ShowGuids) 265Tool.CreateException(SR.GetString(SR.FailedToCommitChangesToCatalog), ex); 365throw Tool.CreateException(SR.GetString(SR.CannotFindAppInfo, appId.ToString("B")), null); 371throw Tool.CreateException(SR.GetString(SR.CannotFindClassInfo, clsid.ToString("B")), null); 377throw Tool.CreateException(SR.GetString(SR.CannotFindInterfaceInfo, iid.ToString("B")), null); 399throw Tool.CreateException(SR.GetString(SR.CannotFindAppInfo, appId.ToString("B")), null); 405throw Tool.CreateException(SR.GetString(SR.CannotFindClassInfo, clsid.ToString("B")), null); 574if (!Tool.Options.ShowGuids) 581if (!Tool.Options.ShowGuids)
ComplusTypeValidator.cs (22)
86ToolConsole.WriteError(SR.GetString(SR.IsInternalInterfaceAndCannotBeExposedOverWebService, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name), ""); 88ToolConsole.WriteWarning(SR.GetString(SR.IsInternalInterfaceAndCannotBeExposedOverWebService, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name)); 106string exceptionMessage = SR.GetString(SR.TypeResolutionForInterfaceFailed, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name, e.InnerException.Message); 123ToolConsole.WriteError(SR.GetString(SR.InterfaceHasNoMethods, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name), ""); 125ToolConsole.WriteNonVerboseWarning(SR.GetString(SR.InterfaceHasNoMethods, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name)); 141ToolConsole.WriteError(SR.GetString(SR.ParameterOfMethodInInterfaceHasANonCompliantType, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name, method.Name, parameter.Name, typeMismatchDetails), ""); 143ToolConsole.WriteNonVerboseWarning(SR.GetString(SR.ParameterOfMethodInInterfaceHasANonCompliantType, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name, method.Name, parameter.Name, typeMismatchDetails)); 151ToolConsole.WriteError(SR.GetString(SR.InvalidWebServiceReturnValue, method.ReturnType.Name, method.Name, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name, typeMismatchDetails), ""); 153ToolConsole.WriteNonVerboseWarning(SR.GetString(SR.InvalidWebServiceReturnValue, method.ReturnType.Name, method.Name, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name, typeMismatchDetails)); 183ToolConsole.WriteWarning(SR.GetString(SR.TypeResolutionForInterfaceFailed, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name, e.InnerException.Message)); 212ToolConsole.WriteError(SR.GetString(SR.IsInternalInterfaceAndCannotBeExposedOverWebService, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name), ""); 214ToolConsole.WriteWarning(SR.GetString(SR.IsInternalInterfaceAndCannotBeExposedOverWebService, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name)); 233ToolConsole.WriteError(SR.GetString(SR.TypeResolutionForInterfaceFailed, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name, e.InnerException.Message), ""); 235ToolConsole.WriteWarning(SR.GetString(SR.TypeResolutionForInterfaceFailed, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name, e.InnerException.Message)); 243ToolConsole.WriteError(SR.GetString(SR.InterfaceHasNoMethods, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name), ""); 245ToolConsole.WriteWarning(SR.GetString(SR.InterfaceHasNoMethods, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name)); 267ToolConsole.WriteError(SR.GetString(SR.ParameterOfMethodInInterfaceHasANonCompliantType, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name, method.Name, parameter.Name, typeMismatchDetails), ""); 269ToolConsole.WriteWarning(SR.GetString(SR.ParameterOfMethodInInterfaceHasANonCompliantType, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name, method.Name, parameter.Name, typeMismatchDetails)); 277ToolConsole.WriteError(SR.GetString(SR.InvalidWebServiceReturnValue, method.ReturnType.Name, method.Name, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name, typeMismatchDetails), ""); 279ToolConsole.WriteWarning(SR.GetString(SR.InvalidWebServiceReturnValue, method.ReturnType.Name, method.Name, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name, typeMismatchDetails)); 287throw Tool.CreateException(SR.GetString(SR.MethodNotFoundOnInterface, Tool.Options.ShowGuids ? interfaceInfo.Iid.ToString("B") : interfaceInfo.Name, methodName), null);
EndpointConfigContainer.cs (5)
440if (comContract.PersistableTypes.Count == 0 && Tool.Options.AllowReferences && methodsAdded) 461if (newComContract.PersistableTypes.Count == 0 && Tool.Options.AllowReferences) 698throw Tool.CreateException(SR.GetString(SR.OperationAbortedDuetoClrVersion), null); 717if (Tool.Options.Hosting == Hosting.Complus || Tool.Options.Hosting == Hosting.NotSpecified)
Options.cs (11)
119throw Tool.CreateArgumentException(Cmd.Contract, this.component.ToString() + "," + itf.ToString(), SR.GetString(SR.AllInterfacesAlreadySelected, this.component.ToString()), null); 133throw Tool.CreateArgumentException(Cmd.Contract, this.component.ToString() + ",*", SR.GetString(SR.CannotSpecifyAllInterfaces), null); 230throw Tool.CreateException(SR.GetString(SR.IISNotInstalled, argValue), null); 234throw Tool.CreateException(SR.GetString(SR.UnknownHostingSpecified, argValue), null); 293throw Tool.CreateException(SR.GetString(SR.MultipleModeArguments), null); 301throw Tool.CreateException(SR.GetString(SR.MultipleModeArguments), null); 312throw Tool.CreateException(SR.GetString(SR.ModeArgumentMissing), null); 348throw Tool.CreateArgumentException(Cmd.Contract, argVal, SR.GetString(SR.MalformedInterfaceString), null); 360throw Tool.CreateArgumentException(Cmd.Contract, argVal, SR.GetString(SR.CannotSpecifyInterfaceForAllComponents), null); 391throw Tool.CreateException(SR.GetString(SR.BadMethodParameter, argVal), null); 395throw Tool.CreateException(SR.GetString(SR.NoMethodsSpecifiedInArgument, argVal), null);
SafeNativeMethods.cs (11)
44throw Tool.CreateException(SR.GetString(SR.FailedToOpenRegistryKey, ""), null); 56throw Tool.CreateException(SR.GetString(SR.FailedToOpenRegistryKey, ""), null); 67throw Tool.CreateException(SR.GetString(SR.FailedToOpenRegistryKey, ""), null); 83throw Tool.CreateException(SR.GetString(SR.UnableToDetermineHiveBitness), null); 103throw Tool.CreateException(SR.GetString(SR.UnableToDetermineHiveBitness), null); 117throw Tool.CreateException(SR.GetString(SR.UnableToDetermineHiveBitness), null); 131throw Tool.CreateException(SR.GetString(SR.FailedToOpenRegistryKey, ""), null); 148throw Tool.CreateException(SR.GetString(SR.FailedToOpenRegistryKey, ""), null); 164throw Tool.CreateException(SR.GetString(SR.FailedToOpenRegistryKey, ""), null); 199Tool.CreateException(SR.GetString(SR.FailedToCreateSubKey, subKey), null); 207Tool.CreateException(SR.GetString(SR.FailedToSetValue, valName), null);
SvcFileManager.cs (2)
170throw Tool.CreateException(SR.GetString(SR.CannotFindAppInfo, appid.ToString("B")), null); 176throw Tool.CreateException(SR.GetString(SR.CannotFindClassInfo, clsid.ToString("B")), null);
Tool.cs (8)
188throw Tool.CreateException(SR.GetString(SR.MexOnlyComponentHasNoExposedInterface, options.MexOnlyComponent), null); 190throw Tool.CreateException(SR.GetString(SR.NoneOfTheComponentsSatisfiedTheAddCriteria), null); 674ToolConsole.WriteWarning(SR.GetString(SR.NoneOfTheSpecifiedInterfacesForComponentWereFoundSkipping, Tool.Options.ShowGuids ? classInfo.Clsid.ToString("B") : classInfo.Name)); 713ToolConsole.WriteWarning(SR.GetString(SR.CannotFindComponentInApplicationSkipping, inComp.Component, Tool.Options.ShowGuids ? appInfo.ID.ToString("B") : appInfo.Name)); 798throw Tool.CreateException(SR.GetString(SR.NoComponentContainsInterface, missingInterface), null); 813ToolConsole.WriteWarning(SR.GetString(SR.CannotFindComponentInApplicationSkipping, inComp.Component, Tool.Options.ShowGuids ? appInfo.ID.ToString("B") : appInfo.Name)); 928Tool.options = Options.ParseArguments(args); 1150ToolConsole.WriteWarning(SR.GetString(SR.CannotExposePrivateComponentsSkipping, Tool.Options.ShowGuids ? classInfo.Clsid.ToString("B") : classInfo.Name));
WasEndpointConfigContainer.cs (10)
42throw Tool.CreateException(SR.GetString(SR.WebDirectoryPathNotFound, webDirectoryName, webDirectoryPath), null); 113if (!Tool.Options.ShowGuids) 127if (!Tool.Options.ShowGuids) 134if (!Tool.Options.ShowGuids) 216throw Tool.CreateException(SR.GetString(SR.CannotFindAppInfo, appId.ToString("B")), null); 222throw Tool.CreateException(SR.GetString(SR.CannotFindClassInfo, clsid.ToString("B")), null); 228throw Tool.CreateException(SR.GetString(SR.CannotFindInterfaceInfo, iid.ToString("B")), null); 297if (!Tool.Options.ShowGuids && !string.IsNullOrEmpty(appName) && !string.IsNullOrEmpty(componentID) && !string.IsNullOrEmpty(interfaceName)) 382if (!Tool.Options.ShowGuids) 389if (!Tool.Options.ShowGuids)