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